
/* Design System Variables */
:root {
    /* Green Theme (Primary) */
    --green-primary: #2a9d8f;
    --green-secondary: #264653;
    --green-light: #a8dadc;
    --green-dark: #1e7e34;
    
    /* Blue Theme (Events) */
    --blue-primary: #3498db;
    --blue-secondary: #2980b9;
    --blue-light: #85c1e9;
    --blue-dark: #1f618d;
    
    /* Neutral Colors */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
}


.event-details {
    font-size: 0.9rem;
    color: #666;
}


/* ===== FORM SYSTEM ===== */
.form-container {
    max-width: 600px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    width: 90%;
}

.form-container h2 {
    margin-bottom: 1.5rem;
    color: var(--gray-800);
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--gray-50);
    color: var(--gray-800);
}

.form-control:focus {
    outline: none;
    border-color: var(--green-primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.1);
}

.form-control.error {
    border-color: var(--error);
}

.error {
    color: var(--error);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #2a9d8f 0%, #264653 100%) !important;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

.btn-submit {
    width: 100% !important;
    background: linear-gradient(135deg, #2a9d8f 0%, #264653 100%) !important;
    color: white !important;
    border: none !important;
    padding: 14px 24px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin-top: 10px !important;
    display: block !important;
    text-decoration: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 1 !important;
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(42, 157, 143, 0.3);
    color: white !important;
    text-decoration: none !important;
}

/* .btn-submit:active {
    transform: translateY(0);
} */

/* ===== CARD SYSTEM ===== */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-secondary));
    color: white;
}

.card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    padding: 1rem 1.25rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Event Cards (Blue Theme) - Consistent with browse events */
.event-card {
    background: #fff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    margin-bottom: 1rem !important;
    border: none !important;
}

.event-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1) !important;
}

.event-header {
    padding: 20px !important;
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
    color: white !important;
}

.event-title {
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    margin: 0 0 10px 0 !important;
    color: white !important;
}

.event-details {
    padding: 20px !important;
}

.event-info {
    margin-bottom: 15px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: #666 !important;
}

.event-info i {
    color: #3498db !important;
    width: 20px !important;
    text-align: center !important;
}

.event-description {
    color: #666 !important;
    line-height: 1.6 !important;
    margin: 15px 0 !important;
}

.event-footer {
    padding: 15px 20px !important;
    background: #f8f9fa !important;
    border-top: 1px solid #e9ecef !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.view-details {
    padding: 8px 16px !important;
    background-color: #3498db !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.view-details:hover {
    background-color: #2980b9 !important;
    transform: translateY(-2px) !important;
    color: white !important;
    text-decoration: none !important;
}

/* ===== UTILITY CLASSES ===== */
.text-primary { color: var(--green-primary) !important; }
.bg-primary { background-color: var(--green-primary) !important; }
.border-primary { border-color: var(--green-primary) !important; }

.text-blue { color: var(--blue-primary) !important; }
.bg-blue { background-color: var(--blue-primary) !important; }
.border-blue { border-color: var(--blue-primary) !important; }

/* ===== ALERT SYSTEM ===== */
.alert {
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid transparent;
    margin-bottom: 1rem;
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: var(--error);
    color: var(--error);
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
    color: var(--success);
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.1);
    border-color: var(--info);
    color: var(--info);
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    border-color: var(--warning);
    color: var(--warning);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .form-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .event-card {
        margin-bottom: 1rem;
    }
    
    .navbar .links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Navigation bar */
.navbar {
    background: linear-gradient(135deg, #2a9d8f, #264653);
    color: white;
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: nowrap;
    min-height: 60px;
}

.navbar .logo {
    flex: 0 0 auto;
    margin-right: 20px;
    margin-left: 10px;
}

.navbar .links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    margin-left: auto;
    margin-right: 40px; /* Move login-sign-up links further to the left */
}

.navbar .links > * {
    display: flex;
    align-items: center;
}

.navbar .links a {
    display: inline-flex;
    align-items: center;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
    display: inline-block;
    flex-shrink: 0;
    padding: 5px 0;
}

.navbar a:hover {
    text-decoration: underline;
}

/* Ensure dropdown doesn't break layout */
.messages-dropdown {
    display: inline-block;
    position: relative;
}

.messages-dropdown .messages-link {
    display: flex;
    align-items: center;
    gap: 5px;
}

.messages-dropdown:hover .messages-submenu {
    display: block !important;
}

.messages-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 200px;
    display: none;
    z-index: 1000;
}

.submenu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    color: #333 !important;
    text-decoration: none;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s;
}

.submenu-item:last-child {
    border-bottom: none;
}

.submenu-item:hover {
    background-color: #f8f9fa;
}

.submenu-title {
    font-weight: 500;
}

.submenu-badge {
    background: #ff4444;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    min-width: 16px;
    text-align: center;
}

/* Content area */
.content {
    padding: 20px;
    width: 100%;
    margin: 0;
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: auto;
}

/* Make footer sticky to bottom */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content {
    flex: 1;
}

.footer a {
    color: #2a9d8f;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #a8dadc;
    text-decoration: underline;
}

/* Social Links */
.social-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2a9d8f !important;
    text-decoration: none !important;
    font-weight: bold;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(42, 157, 143, 0.1);
}

.social-link:hover {
    color: #a8dadc !important;
    background: rgba(168, 218, 220, 0.2);
    transform: translateY(-2px);
    text-decoration: none !important;
}

.social-link svg {
    transition: transform 0.3s ease;
}

.social-link:hover svg {
    transform: scale(1.1);
}

#landing {
padding: 50px 20px;
text-align: center;
background-color: #f4f4f4;
}

.landing-header {
    margin-bottom: 40px;
    text-align: center;
}

.landing-header h1 {
    font-size: 2.5em;
    color: #333;
}

.landing-header p {
    font-size: 1.2em;
    color: #666;
}

.landing-buttons {
    margin-bottom: 40px;
    margin-right: 30px; /* Move login-sign-up links to the left */
}

.landing-buttons .btn {
    display: inline-block;
    padding: 15px 30px;
    margin: 10px;
    background: linear-gradient(135deg, #2a9d8f, #264653);
    color: white;
    font-size: 1.1em;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.landing-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    color: white;
}

.landing-features {
    margin-top: 40px;
    text-align: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.landing-features h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 20px;
}

.landing-features ul {
    list-style: none;
    padding: 0;
}

.landing-features li {
    font-size: 1.1em;
    color: #555;
    margin: 10px 0;
}

/* Features Grid Layout */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
    align-items: start;
}

.feature-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 200px;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.feature-card h3 {
    font-size: 1.3em;
    color: #2a9d8f;
    margin-bottom: 15px;
    font-weight: 600;
    text-align: center;
    margin-top: 0;
    flex-shrink: 0;
}

.feature-card p {
    color: #555;
    line-height: 1.6;
    margin: 0;
    text-align: center;
    padding: 0 10px;
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.landing-footer {
    margin-top: 60px;
    font-size: 1em;
    color: #777;
}


  
/* Container for the form */
.form-container {
max-width: 500px;
margin: 50px auto;
background: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
text-align: center;
}

/* Form Heading */
.form-container h2 {
margin-bottom: 20px;
color: #444;
font-size: 1.8rem;
font-weight: 600;
}

/* Form Styles */
.event-form {
display: flex;
flex-direction: column;
gap: 15px;
}

/* Form Input Fields */
.event-form input,
.event-form select,
.event-form textarea {
width: 100%;
padding: 12px;
font-size: 1rem;
border: 1px solid #ccc;
border-radius: 4px;
background-color: #f5f5f5;
transition: border-color 0.3s ease, background-color 0.3s ease;
}

/* Input Field Focus Effect */
.event-form input:focus,
.event-form select:focus,
.event-form textarea:focus {
border-color: #007bff;
background-color: #fff;
outline: none;
}

/* Submit Button */
.btn-submit {
padding: 12px 20px;
font-size: 1rem;
font-weight: bold;
color: #fff;
background-color: #007bff;
border: none;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-submit:hover {
background-color: #0056b3;
transform: translateY(-2px);
}

.btn-submit:active {
transform: translateY(0);
}


.sub-title {
margin-left: 12rem;
}


/* Small Screen Responsiveness */
@media (max-width: 600px) {
.form-container {
    padding: 15px;
}

.form-container h2 {
    font-size: 1.5rem;
}

.btn-submit {
    font-size: 0.9rem;
}

.features-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    align-items: start;
}

.feature-card {
    padding: 20px;
    min-height: 180px;
}
}


.profile-container {
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.profile-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    /* max-width: 400px; */
    width: 100%;
    padding: 20px;
    text-align: center;
}

.profile-header {
    margin-bottom: 20px;
}

.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.profile-name {
    font-size: 1.8rem;
    margin: 10px 0;
    color: #333333;
}

.profile-bio {
    font-style: italic;
    color: #777777;
    margin: 0 0 15px;
}

.profile-details {
    text-align: left;
    margin-bottom: 20px;
}

.profile-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-details li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #555555;
}

.profile-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #2a9d8f 0%, #264653 100%) !important;
    color: white !important;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    color: white !important;
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

.edit-btn {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
}

.edit-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
}


.menu {
    position: relative;
    display: inline-block;
}


.submenu {
    display: none;
    position: absolute;
    top: 100%;              /* Always open BELOW the parent */
    left: 0;
    background-color: white;
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    z-index: 1000;          /* ensure it stays on top */
    overflow: hidden;       /* nice rounded edges */
}


.submenu a {
    color: #333;
    padding: 10px 15px;
    display: block;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}

.submenu a:hover {
    background-color: #f5f5f5;
}

/* Show submenu on hover */
.menu:hover .submenu {
    display: block;
}

.menu > a {
    cursor: pointer;
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 12px;
    display: inline-block;
}


  