@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* === GLOBAL DESIGN SYSTEM === */
:root {
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-200: #bae6fd;
    --primary-300: #7dd3fc;
    --primary-400: #38bdf8;
    --primary-500: #0ea5e9;
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --primary-800: #075985;
    --primary-900: #0c4a6e;
    
    --secondary-50: #fdf4ff;
    --secondary-100: #fae8ff;
    --secondary-200: #f5d0fe;
    --secondary-300: #f0abfc;
    --secondary-400: #e879f9;
    --secondary-500: #d946ef;
    --secondary-600: #c026d3;
    --secondary-700: #a21caf;
    --secondary-800: #86198f;
    --secondary-900: #701a75;
    
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    --success-500: #10b981;
    --warning-500: #f59e0b;
    --error-500: #ef4444;
    
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--secondary-50) 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--gray-800);
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* === MODERN HOMEPAGE === */
.modern-homepage {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.hero-content h1.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p.hero-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin: 0.5rem 0 0 0;
    font-weight: 400;
}

.settings-btn {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    border: none;
    background: white;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--gray-600);
}

.settings-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-600);
}

.quick-stats {
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
}

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

.highlight-card {
    background: linear-gradient(135deg, var(--warning-500), #f97316);
    color: white;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-content h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-content p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.875rem;
}

.btn-link {
    background: none;
    border: none;
    color: white;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
}

.navigation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.nav-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: height 0.3s ease;
}

.nav-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.nav-card:hover::before {
    height: 8px;
}

.primary-card::before { background: linear-gradient(90deg, var(--primary-500), var(--primary-600)); }
.secondary-card::before { background: linear-gradient(90deg, var(--secondary-500), var(--secondary-600)); }
.tertiary-card::before { background: linear-gradient(90deg, var(--success-500), #059669); }
.quaternary-card::before { background: linear-gradient(90deg, var(--warning-500), #f97316); }

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: relative;
    color: white;
    flex-shrink: 0;
}

.primary-card .card-icon { background: linear-gradient(135deg, var(--primary-500), var(--primary-600)); }
.secondary-card .card-icon { background: linear-gradient(135deg, var(--secondary-500), var(--secondary-600)); }
.tertiary-card .card-icon { background: linear-gradient(135deg, var(--success-500), #059669); }
.quaternary-card .card-icon { background: linear-gradient(135deg, var(--warning-500), #f97316); }

.notification-dot {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--error-500);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.card-content {
    flex: 1;
}

.card-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
}

.card-content p {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.875rem;
    line-height: 1.5;
}

.card-arrow {
    color: var(--gray-400);
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.nav-card:hover .card-arrow {
    color: var(--primary-600);
    transform: translateX(4px);
}

.footer-section {
    text-align: center;
    margin-top: auto;
    padding: 2rem 0;
}

.footer-text {
    color: var(--gray-600);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-600);
    color: var(--primary-600);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline:hover {
    background: var(--primary-600);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* === MODERN AUTHENTICATION FORMS === */
/* Modern Register Page Layout */
.modern-register-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-50), var(--secondary-50));
}

.register-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.register-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.register-header .header-content {
    max-width: 600px;
    margin: 0 auto;
}

.register-header .page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.register-header .page-subtitle {
    color: var(--gray-600);
    font-size: 1.125rem;
    margin: 0;
    line-height: 1.6;
}

.register-form-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 3rem;
    margin-bottom: 2rem;
}

.form-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.form-column {
    min-width: 0;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section:last-child {
    margin-bottom: 0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-100);
}

.section-title i {
    color: var(--primary-600);
    font-size: 1.125rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.profile-upload-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.profile-picture-upload {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px dashed var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.profile-picture-upload:hover {
    border-color: var(--primary-500);
    transform: scale(1.02);
}

.profile-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.profile-picture-upload:hover .upload-overlay {
    opacity: 1;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 0.875rem;
    font-weight: 500;
}

.upload-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--gray-400);
}

.submit-section {
    margin-top: 2rem;
}

.login-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.login-text {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin: 0;
}

.login-text a {
    color: var(--primary-600);
    text-decoration: none;
    font-weight: 500;
}

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

/* Legacy auth styles for login page */
.modern-auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--secondary-50) 100%);
}

.auth-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 3rem;
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin: 0;
}

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

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

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: white;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-100);
}

.form-input::placeholder {
    color: var(--gray-400);
}

.btn-primary-modern {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.btn-primary-modern:hover {
    background: linear-gradient(135deg, var(--primary-700), var(--primary-800));
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.auth-link-text {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin: 0;
}

.auth-link a {
    color: var(--primary-600);
    text-decoration: none;
    font-weight: 500;
}

.auth-link a:hover {
    text-decoration: underline;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-600);
}

.checkbox-group label {
    margin: 0;
    font-size: 0.875rem;
    color: var(--gray-600);
    cursor: pointer;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .modern-homepage {
        padding: 1rem;
    }
    
    .hero-section {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-content h1.hero-title {
        font-size: 2rem;
    }
    
    .navigation-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .nav-card {
        padding: 1.5rem;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    /* Register page mobile styles */
    .modern-register-page {
        padding: 1rem;
    }
    
    .register-container {
        padding: 1rem;
    }
    
    .register-header {
        margin-bottom: 2rem;
        padding: 1rem 0;
    }
    
    .register-header .page-title {
        font-size: 2rem;
    }
    
    .register-header .page-subtitle {
        font-size: 1rem;
    }
    
    .register-form-card {
        padding: 2rem 1.5rem;
    }
    
    .form-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 1.125rem;
    }
}

/* Register Page Desktop Layout */
.register-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.register-form-grid .form-column {
    min-width: 0; /* Prevents grid overflow */
}

.profile-section {
    margin-bottom: 1rem;
}

/* Mobile responsive for register grid */
@media (max-width: 768px) {
    .register-form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Modern Event Discovery Styles */
.modern-event-discovery {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 80vh;
}

.discovery-header {
    text-align: center;
    margin-bottom: 3rem;
}

.discovery-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.discovery-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.loading-state, .empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--primary-100);
    border-top: 4px solid var(--primary-600);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: var(--gray-600);
    font-size: 1.125rem;
    margin: 0;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 0.5rem 0;
}

.empty-message {
    color: var(--gray-600);
    font-size: 1rem;
    margin: 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.category-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    height: 280px;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.category-image {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    transition: all 0.3s ease;
}

.category-card:hover .category-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
}

.category-icon {
    position: relative;
    z-index: 2;
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transform: scale(1);
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 0.5rem 0;
}

.category-description {
    color: var(--gray-600);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0 0 1rem 0;
    flex: 1;
}

.category-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.5rem;
    border-top: 1px solid var(--gray-200);
}

.action-text {
    font-weight: 500;
    color: var(--primary-600);
    font-size: 0.875rem;
}

.action-arrow {
    color: var(--primary-600);
    transition: transform 0.3s ease;
}

.category-card:hover .action-arrow {
    transform: translateX(4px);
}

.discover-footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--gray-200);
    margin-top: 2rem;
}

.footer-text {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Event Discovery Responsive Design */
@media (max-width: 768px) {
    .modern-event-discovery {
        padding: 1rem;
    }
    
    .discovery-title {
        font-size: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .category-card {
        height: 260px;
    }
}

/* Modern Events Page Styles */
.modern-events-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 100vh;
}

/* Header Section */
.events-header {
    text-align: center;
    margin-bottom: 3rem;
}

.events-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.events-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Search Section */
.search-section {
    margin-bottom: 2rem;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: var(--gray-500);
    z-index: 2;
}

.modern-search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    box-shadow: var(--shadow-sm);
}

.modern-search-input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

/* Filters Section */
.filters-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
}

.filters-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modern-select, .modern-input {
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.modern-select:focus, .modern-input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modern-filter-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.modern-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
}

/* Radio Group */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.radio-option:hover {
    background-color: var(--gray-50);
}

.radio-text {
    font-size: 0.875rem;
    color: var(--gray-700);
}

.location-input-wrapper {
    margin-top: 0.5rem;
}

/* Selected Categories */
.selected-categories {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

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

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--secondary-100), var(--secondary-200));
    color: var(--secondary-800);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--secondary-300);
}

.remove-tag-btn {
    background: none;
    border: none;
    color: var(--secondary-600);
    cursor: pointer;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.remove-tag-btn:hover {
    background-color: var(--secondary-300);
    color: var(--secondary-800);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modern-modal {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background-color: var(--gray-100);
    color: var(--gray-700);
}

.modal-body {
    padding: 2rem;
    max-height: 400px;
    overflow-y: auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.category-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.category-checkbox:hover {
    border-color: var(--primary-300);
    background-color: var(--primary-50);
    transform: translateY(-1px);
}

.category-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.category-checkbox input[type="checkbox"]:checked + .checkmark {
    background-color: var(--primary-500);
    border-color: var(--primary-500);
}

.category-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.category-name {
    font-weight: 500;
    color: var(--gray-700);
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
}

/* Events Grid */
.events-content {
    margin-bottom: 3rem;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

@media (max-width: 1200px) {
    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0;
        margin: 0;
    }
    
    .modern-events-page {
        padding: 1rem 0.5rem;
    }
    
    .filters-container-inline {
        margin: 0 0.5rem 1rem 0.5rem;
        padding: 0.5rem;
        gap: 0.75rem;
        flex-wrap: wrap;
    }
    
    .events-header {
        padding: 0.5rem;
    }
    
    .search-section {
        padding: 0;
        margin-bottom: 0.5rem;
    }
    
    .search-container {
        padding: 0 0.5rem;
    }
}

.event-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    height: 450px;
    display: flex;
    flex-direction: column;
}

/* Removed unused .event-card-background styles */

.event-background-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
}

.event-date-badge {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 0.75rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    text-align: center;
    min-width: 80px;
}

.event-date-badge .date-day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-600);
    line-height: 1;
}

.event-date-badge .date-month {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-date-badge .date-year {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 2px;
}

.event-content-overlay {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
    margin-top: auto;
    backdrop-filter: blur(5px);
}

.event-title-overlay {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.event-description-overlay {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1rem 0;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-meta-overlay {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.event-location-overlay,
.event-time-overlay {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.event-location-overlay i,
.event-time-overlay i {
    color: var(--primary-300);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.event-category-overlay {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.category-badge-overlay {
    background: var(--primary-500);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-200);
}

.event-card:hover .event-hover-indicator {
    opacity: 1;
    transform: translateX(0);
}

.event-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-image {
    transform: scale(1.05);
}

.event-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 0.75rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.date-day {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-600);
    line-height: 1;
}

.date-month {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.date-year {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--gray-500);
    line-height: 1;
}

.event-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.event-description {
    color: var(--gray-600);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0 0 1rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.event-location, .event-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.event-location i, .event-time i {
    color: var(--primary-500);
    width: 16px;
}

.event-category {
    display: flex;
    justify-content: flex-start;
}

.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, var(--secondary-100), var(--secondary-200));
    color: var(--secondary-800);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.event-hover-indicator {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%) translateX(10px);
    background: var(--primary-500);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

/* Empty State */
.empty-events-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-500);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--gray-400);
}

.empty-events-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-700);
    margin: 0 0 0.5rem 0;
}

.empty-events-state p {
    font-size: 1rem;
    margin: 0;
}

/* Pagination */
.pagination-section {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.pagination-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn {
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    background: white;
    color: var(--gray-700);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary-300);
    background-color: var(--primary-50);
    color: var(--primary-700);
    transform: translateY(-1px);
}

.pagination-btn.active {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    border-color: var(--primary-500);
    color: white;
    box-shadow: var(--shadow-md);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-ellipsis {
    padding: 0.75rem 0.5rem;
    color: var(--gray-500);
}

/* Load More */
.load-more-section {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.load-more-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--secondary-500), var(--secondary-600));
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--secondary-600), var(--secondary-700));
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-events-page {
        padding: 1rem;
    }
    
    .events-title {
        font-size: 2rem;
    }
    
    .filters-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .event-card {
        margin: 0;
    }
    
    .pagination-container {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* === PARTICIPANT ICONS === */
.participants-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.participant-item {
    position: relative;
    cursor: pointer;
}

.participant-profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-200);
    transition: all 0.2s ease;
}

.participant-profile-pic:hover {
    border-color: var(--primary-500);
    transform: scale(1.1);
}

.participant-default-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-200);
    transition: all 0.2s ease;
    color: var(--gray-500);
    font-size: 1.5rem;
}

.participant-default-pic:hover {
    border-color: var(--primary-500);
    transform: scale(1.1);
    background: var(--primary-50);
    color: var(--primary-600);
}

/* === MODERN EVENT DETAILS PAGE === */
.modern-event-details {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 100vh;
}

.event-details-header {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.event-details-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
}

.event-image-header {
    width: 100%;
    height: 300px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.event-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.event-meta-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-500);
}

.meta-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.meta-content h4 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.meta-content p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-800);
}

.event-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 2rem;
}

/* Modern Alert Styling */
.modern-alert {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    border: none;
    box-shadow: var(--shadow-sm);
}

.modern-alert-success {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
}

.modern-alert-danger {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
}

.modern-alert-icon {
    font-size: 1.5rem;
    font-weight: bold;
}

.modern-alert-content {
    font-weight: 500;
    font-size: 1rem;
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 300px;
    max-width: 400px;
    animation: slideInRight 0.3s ease-out;
    backdrop-filter: blur(10px);
}

.toast-success {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    border-left: 4px solid #059669;
}

.toast-error {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border-left: 4px solid #dc2626;
}

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast-content {
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.4;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading button states */
.btn-primary-modern:disabled,
.btn-secondary-modern:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-primary-modern:disabled .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* === MODERN CHAT SYSTEM === */
.chat-section {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-100);
}

.chat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--secondary-500), var(--secondary-600));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.chat-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
}

.chat-window {
    border: 2px solid var(--gray-100);
    border-radius: var(--radius-lg);
    background: var(--gray-50);
    overflow: hidden;
}

.messages {
    height: 400px;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: linear-gradient(to bottom, #fafafa, #f5f5f5);
}

.messages::-webkit-scrollbar {
    width: 6px;
}

.messages::-webkit-scrollbar-track {
    background: var(--gray-200);
    border-radius: 3px;
}

.messages::-webkit-scrollbar-thumb {
    background: var(--primary-400);
    border-radius: 3px;
}

.messages::-webkit-scrollbar-thumb:hover {
    background: var(--primary-500);
}

.message-row {
    display: flex;
    margin-bottom: 0.75rem;
    animation: messageSlideIn 0.3s ease-out;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-row.mine {
    justify-content: flex-end;
}

.message-row.others {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.message-bubble:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.message-row.mine .message-bubble {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
    border-bottom-right-radius: 4px;
}

.message-row.others .message-bubble {
    background: white;
    color: var(--gray-800);
    border: 1px solid var(--gray-200);
    border-bottom-left-radius: 4px;
}

.message-author {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.message-row.mine .message-author {
    color: rgba(255, 255, 255, 0.9);
}

.message-row.others .message-author {
    color: var(--primary-600);
}

.message-text {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.25rem;
    word-wrap: break-word;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.7;
    text-align: right;
}

.message-row.others .message-time {
    text-align: left;
}

.chat-input-area {
    padding: 1rem;
    background: white;
    border-top: 1px solid var(--gray-200);
}

.input-container {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.input-container textarea {
    flex: 1;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    resize: none;
    transition: all 0.2s ease;
    background: var(--gray-50);
}

.input-container textarea:focus {
    outline: none;
    border-color: var(--primary-400);
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-container button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.input-container button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
}

.input-container button:active {
    transform: translateY(0);
}

/* Empty Chat State */
.empty-chat-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--gray-500);
}

.empty-chat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--gray-400);
}

.empty-chat-state p {
    font-size: 1rem;
    margin: 0;
}

/* Participants Section */
.participants-section {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.participants-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-100);
}

.participants-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--success-500), #059669);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.participants-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
}

/* Modern Button Styling */
.btn-modern-primary {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-modern-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .modern-event-details {
        padding: 1rem;
    }
    
    .event-title {
        font-size: 2rem;
    }
    
    .event-meta-info {
        grid-template-columns: 1fr;
    }
    
    .messages {
        height: 300px;
    }
    
    .message-bubble {
        max-width: 85%;
    }
    
    .input-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .input-container button {
        margin-top: 0.5rem;
    }
}

/* === BLAZOR ERROR UI === */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
    color: #721c24;
    text-decoration: none;
    font-weight: bold;
}

#blazor-error-ui .reload {
    color: #721c24;
    text-decoration: underline;
    margin-right: 1rem;
}

/* Hide error UI by default - only show when there's actually an error */
#blazor-error-ui:not(.show) {
    display: none !important;
}

/* === MODERN CREATE EVENT PAGE === */
.modern-create-event-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--primary-50) 100%);
    padding: 2rem 1rem;
}

.create-event-container {
    max-width: 1200px;
    margin: 0 auto;
}

.create-event-header {
    text-align: center;
    margin-bottom: 3rem;
}

.header-content {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.header-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin: 0;
}

.create-event-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 600px;
}

.form-column {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-column:first-child {
    border-right: 1px solid var(--gray-200);
    background: var(--gray-25);
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
    display: flex;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-100);
}

.section-title i {
    color: var(--primary-500);
}

/* Image Upload Styling */
.image-upload-area {
    position: relative;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
}

.image-upload-area:hover {
    border-color: var(--primary-400);
    background: var(--primary-25);
}

.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.image-placeholder i {
    font-size: 3rem;
    color: var(--gray-400);
}

.image-placeholder h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-700);
    margin: 0;
}

.image-placeholder p {
    color: var(--gray-500);
    margin: 0;
}

.image-preview {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-width: 300px;
    margin: 0 auto;
}

.image-preview img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    gap: 0.5rem;
}

.image-preview:hover .image-overlay {
    opacity: 1;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Form Controls */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.optional {
    font-weight: 400;
    color: var(--gray-500);
    text-transform: none;
    font-size: 0.75rem;
}

.form-input, .form-textarea, .form-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: var(--gray-900);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px var(--primary-100);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.select-wrapper {
    position: relative;
}

.select-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
}

.form-select {
    appearance: none;
    padding-right: 3rem;
    cursor: pointer;
}

.location-input-wrapper {
    position: relative;
}

.location-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.location-input {
    padding-left: 3rem;
}

.form-help {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Checkbox styling for create event form */
.checkbox-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: white;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    border-color: var(--primary-300);
    background: var(--primary-25);
}

.form-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--primary-500);
    cursor: pointer;
}

.checkbox-text {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.checkbox-text i {
    color: var(--primary-500);
}

.checkbox-label:has(.form-checkbox:checked) {
    border-color: var(--primary-400);
    background: var(--primary-50);
}

.checkbox-label:has(.form-checkbox:checked) .checkbox-text {
    color: var(--primary-700);
}

.datetime-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.datetime-input {
    font-family: inherit;
}

.time-selectors {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.time-select {
    flex: 1;
    min-width: 80px;
}

.time-separator {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-600);
    padding: 0 0.25rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    align-items: baseline;
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

/* Unified button styles for proper alignment */
.btn-secondary-modern,
.btn-primary-modern {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    height: 48px;
    box-sizing: border-box;
    vertical-align: baseline;
    margin: 0;
    position: relative;
    top: 0;
    width: auto;
    flex-shrink: 0;
    white-space: nowrap;
}

.btn-secondary-modern {
    border: 2px solid var(--gray-300);
    background: white;
    color: var(--gray-700);
}

.btn-secondary-modern:hover {
    border-color: var(--gray-400);
    background: var(--gray-50);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-primary-modern {
    border: 2px solid var(--primary-500);
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
}

.btn-primary-modern:hover {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Small button modifier */
.btn-sm {
    padding: 0.5rem 1rem;
    height: 38px;
    font-size: 0.875rem;
}

/* Disabled button styles */
.btn-secondary-modern:disabled,
.btn-primary-modern:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary-modern:disabled:hover,
.btn-primary-modern:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-create-event-page {
        padding: 1rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-column:first-child {
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .datetime-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-secondary-modern,
    .btn-primary-modern {
        justify-content: center;
    }
}

/* Modern My Events Page Styles */
.modern-my-events-page {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.my-events-header {
    margin-bottom: 2rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.header-content .btn-primary-modern {
    flex-shrink: 0;
    width: auto;
    min-width: auto;
}

.title-section h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2.5rem;
    color: var(--gray-900);
}

.title-section p {
    margin: 0;
    color: var(--gray-600);
    font-size: 1.1rem;
}

/* Filter Section */
.filters-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.filters-container {
    display: flex;
    gap: 2rem;
    align-items: end;
    justify-content: center;
}

.filter-group {
    flex: 0 1 auto;
    min-width: 200px;
    max-width: 250px;
}

.filter-group.search-group {
    flex: 1;
    max-width: 400px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--gray-200);
    transition: all 0.3s ease;
}

.search-input-wrapper:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-md);
}

.search-input-wrapper:focus-within {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px var(--primary-100);
}

.search-input {
    flex: 1;
    border: none;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    background: transparent;
    color: var(--gray-800);
}

.search-input:focus {
    outline: none;
    box-shadow: none;
}

.search-btn, .clear-search-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    color: var(--gray-500);
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.search-btn:hover, .clear-search-btn:hover {
    color: var(--primary-500);
}

.clear-search-btn {
    color: var(--gray-400);
}

.clear-search-btn:hover {
    color: var(--red-500);
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-group .select-wrapper {
    position: relative;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--gray-200);
    transition: all 0.3s ease;
}

.filter-group .select-wrapper:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-md);
}

.filter-group .select-wrapper:focus-within {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px var(--primary-100);
}

.filter-group .form-select {
    background: transparent;
    border: none;
    padding: 0.875rem 1rem;
    padding-right: 3rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-800);
    cursor: pointer;
    appearance: none;
    width: 100%;
}

.filter-group .form-select:focus {
    outline: none;
    box-shadow: none;
}

.filter-group .select-icon {
    color: var(--gray-500);
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.filter-group .select-wrapper:hover .select-icon {
    color: var(--gray-700);
    transform: translateY(-50%) scale(1.1);
}

/* Event Cards Container */
.events-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    overflow: visible;
}

.event-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    overflow: visible;
    position: relative;
    min-height: fit-content;
}

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

.event-actions .action-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.event-actions .action-buttons .btn-primary-modern,
.event-actions .action-buttons .btn-secondary-modern {
    flex: 0 0 auto;
    max-width: none;
    width: auto;
}

/* Colorful Action Buttons */
.btn-edit-modern,
.btn-applications-modern,
.btn-room-modern {
    text-decoration: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    height: 38px;
    box-sizing: border-box;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    vertical-align: baseline;
    margin: 0;
    position: relative;
    top: 0;
    width: auto;
    flex-shrink: 0;
    white-space: nowrap;
}

.btn-edit-modern:hover,
.btn-applications-modern:hover,
.btn-room-modern:hover {
    text-decoration: none;
    color: white;
}

.btn-edit-modern {
    border: 2px solid #f59e0b;
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.btn-edit-modern:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-applications-modern {
    border: 2px solid #8b5cf6;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.btn-applications-modern:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-room-modern {
    border: 2px solid #06b6d4;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.btn-room-modern:hover {
    background: linear-gradient(135deg, #0891b2, #0e7490);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.btn-accept-modern,
.btn-deny-modern {
    text-decoration: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    height: 38px;
    box-sizing: border-box;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    vertical-align: baseline;
    margin: 0;
    position: relative;
    top: 0;
    width: auto;
    flex-shrink: 0;
    white-space: nowrap;
    border: none;
}

.btn-accept-modern:hover,
.btn-deny-modern:hover {
    text-decoration: none;
    color: white;
}

.btn-accept-modern {
    background: linear-gradient(135deg, #10b981, #059669);
    border: 2px solid #10b981;
}

.btn-accept-modern:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-deny-modern {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: 2px solid #ef4444;
}

.btn-deny-modern:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Disabled button styles */
.btn-accept-modern.disabled,
.btn-accept-modern:disabled {
    background: #d1d5db !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
    opacity: 0.6;
    transform: none !important;
    box-shadow: none !important;
    border: 2px solid #d1d5db !important;
}

.btn-deny-modern.disabled,
.btn-deny-modern:disabled {
    background: #d1d5db !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
    opacity: 0.6;
    transform: none !important;
    box-shadow: none !important;
    border: 2px solid #d1d5db !important;
}

.btn-accept-modern.disabled:hover,
.btn-accept-modern:disabled:hover,
.btn-deny-modern.disabled:hover,
.btn-deny-modern:disabled:hover {
    background: #d1d5db !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Pagination Styles */
.pagination-section {
    margin-top: 2rem;
}

.pagination-container {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.pagination-ellipsis {
    padding: 0.5rem;
    color: var(--gray-400);
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modern-my-events-page {
        padding: 1rem;
    }
    
    .my-events-header {
        margin-bottom: 1.5rem;
    }
    
    .header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .header-content .btn-primary-modern {
        width: 100%;
        justify-content: center;
        max-width: 300px;
        align-self: center;
    }
    
    .title-section h1 {
        font-size: 2rem;
        text-align: center;
    }
    
    .title-section p {
        text-align: center;
        font-size: 1rem;
    }
    
    .filters-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .filters-container {
        flex-direction: column;
        gap: 1.25rem;
        justify-content: stretch;
    }
    
    .filter-group {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
    
    .filter-label {
        justify-content: center;
        font-size: 0.85rem;
    }
    
    .search-input-wrapper {
        flex-direction: row;
        align-items: center;
    }
    
    .search-input {
        font-size: 0.9rem;
        padding: 0.75rem 0.875rem;
    }
    
    .search-btn, .clear-search-btn {
        width: 36px;
        height: 36px;
        padding: 0.4rem;
        flex-shrink: 0;
    }
    
    .event-card {
        padding: 1rem 1rem 9rem 1rem;
        min-height: auto;
        display: flex;
        flex-direction: column;
        margin-bottom: 1rem;
        overflow: hidden;
        position: relative;
    }
    
    .event-info {
        flex: 1;
    }
    
    .event-actions {
        position: absolute;
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        padding: 0;
        margin: 0;
    }
    
    .event-actions .action-buttons {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
        width: 100%;
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }
    
    .event-actions .action-buttons .btn-primary-modern,
    .event-actions .action-buttons .btn-secondary-modern,
    .event-actions .action-buttons .btn-edit-modern,
    .event-actions .action-buttons .btn-applications-modern,
    .event-actions .action-buttons .btn-room-modern {
        width: 100%;
        justify-content: center;
        font-size: 0.8rem;
        padding: 0.6rem 0.75rem;
        min-height: 44px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    /* Disable hover transform on mobile to prevent overflow */
    .event-actions .action-buttons .btn-edit-modern:hover,
    .event-actions .action-buttons .btn-applications-modern:hover,
    .event-actions .action-buttons .btn-room-modern:hover {
        transform: none;
    }
    
    /* Ensure the last button has proper spacing */
    .event-actions .action-buttons .btn-room-modern {
        margin-bottom: 0;
    }
    
    .pagination-container {
        gap: 0.25rem;
        flex-wrap: wrap;
    }
    
    .pagination-container .btn-sm {
        min-width: 44px;
        padding: 0.5rem 0.75rem;
    }
    
    .pagination-container .btn-sm span {
        display: none;
    }
    
    .pagination-container .btn-sm i {
        margin: 0;
    }
    
    /* Ensure proper mobile spacing and touch targets */
    .event-info {
        margin-bottom: 1rem;
    }
    
    .event-main-info h3 {
        font-size: 1.1rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }
    
    .event-meta {
        gap: 0.75rem;
    }
    
    .meta-item {
        font-size: 0.85rem;
    }
    
    /* Prevent text overflow in action buttons */
    .btn-edit-modern span,
    .btn-applications-modern span,
    .btn-room-modern span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Ensure pending indicator is visible */
    .pending-indicator {
        flex-shrink: 0;
        min-width: fit-content;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .modern-my-events-page {
        padding: 0.75rem;
    }
    
    .filters-section {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .filter-group.search-group {
        max-width: none;
    }
    
    .search-input {
        font-size: 0.875rem;
        padding: 0.625rem 0.75rem;
    }
    
    .search-btn, .clear-search-btn {
        width: 32px;
        height: 32px;
        padding: 0.3rem;
    }
    
    .event-card {
        padding: 0.75rem 0.75rem 8rem 0.75rem;
        margin-bottom: 1rem;
        display: flex;
        flex-direction: column;
        min-height: auto;
        overflow: hidden;
        position: relative;
    }
    
    .event-info {
        flex: 1;
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
    }
    
    .event-actions {
        position: absolute;
        bottom: 0.75rem;
        left: 0.75rem;
        right: 0.75rem;
        padding: 0;
        margin: 0;
    }
    
    .event-actions .action-buttons .btn-edit-modern,
    .event-actions .action-buttons .btn-applications-modern,
    .event-actions .action-buttons .btn-room-modern {
        font-size: 0.75rem;
        padding: 0.4rem 0.5rem;
        min-height: 36px;
        flex-shrink: 0;
        margin-bottom: 0;
        position: relative;
        z-index: 1;
    }
    
    .event-actions .action-buttons {
        gap: 0.4rem;
        width: 100%;
        padding-bottom: 0;
        margin-top: 0;
        margin-bottom: 0.75rem;
        padding-top: 0;
        border-top: none;
    }
    
    /* Disable hover transform on small mobile to prevent overflow */
    .event-actions .action-buttons .btn-edit-modern:hover,
    .event-actions .action-buttons .btn-applications-modern:hover,
    .event-actions .action-buttons .btn-room-modern:hover {
        transform: none;
    }
    
    .title-section h1 {
        font-size: 1.75rem;
    }
    
    .header-content .btn-primary-modern {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }
}

/* Modern Joined Events Specific Styles */
.event-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.application-status {
    display: flex;
    align-items: center;
}

.pagination-info {
    text-align: center;
    margin: 2rem 0 1rem 0;
}

.info-text {
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Badge styles for application status */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge.bg-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, var(--gray-500), var(--gray-600));
    color: white;
}

.badge i {
    margin-right: 0.25rem;
}

/* Modern Event Applications Page Styles */
.modern-event-applications-page {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.applications-header {
    margin-bottom: 2rem;
}

.applications-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.applications-header .title-section h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2.5rem;
    color: var(--gray-900);
}

.applications-header .title-section p {
    margin: 0;
    color: var(--gray-600);
    font-size: 1.1rem;
}

.stats-section {
    display: flex;
    gap: 1rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    min-width: 120px;
    box-shadow: var(--shadow-md);
}

.stat-card.accepted {
    background: linear-gradient(135deg, #10b981, #059669);
}

.stat-card.pending {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Applications Container */
.applications-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.application-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

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

.application-card.pending {
    border-left: 4px solid #f59e0b;
}

.application-card.accepted {
    border-left: 4px solid #10b981;
}

.application-card.denied {
    border-left: 4px solid #ef4444;
}

.status-section {
    flex-shrink: 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.accepted {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.denied {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.applicant-info {
    flex: 1;
}

.applicant-name {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
}

.event-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.event-stat {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    background: var(--gray-100);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
}

.event-stat.accepted {
    color: #047857;
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.application-reason {
    background: var(--gray-50);
    border-radius: var(--radius-md);
    padding: 1rem;
    border-left: 3px solid var(--primary-400);
}

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

.reason-text {
    margin: 0;
    color: var(--gray-800);
    line-height: 1.5;
}

.application-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.application-actions .status-section {
    flex-shrink: 0;
}

.application-actions .action-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Action Badge - Round Red Badge for Button */
.action-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    line-height: 1;
    margin-left: 0.5rem;
    position: relative;
    top: -1px;
}

/* Empty State */
.empty-applications-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: none;
}

.empty-applications-state .empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-applications-state h3 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    color: var(--gray-900);
}

.empty-applications-state p {
    margin: 0;
    color: var(--gray-600);
    font-size: 1.1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* EventApplications Responsive Design */
@media (max-width: 768px) {
    .modern-event-applications-page {
        padding: 1rem;
    }
    
    .applications-header .header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .applications-header .title-section h1 {
        font-size: 2rem;
        text-align: center;
    }
    
    .applications-header .title-section p {
        text-align: center;
    }
    
    .stats-section {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .stat-card {
        flex: none;
        min-width: auto;
        padding: 0.75rem 0.5rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .stat-number {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
        line-height: 1.2;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .application-card {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem;
    }
    
    .application-actions .action-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .application-actions .action-buttons .btn-accept-modern,
    .application-actions .action-buttons .btn-deny-modern {
        width: 100%;
        justify-content: center;
    }
    
    .event-stats {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .event-stat {
        align-self: flex-start;
    }
}

/* Removed unused .event-card-with-image styles and related components */

/* Full Background Card Styles - No Gray Areas */
.event-card-full-background {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    height: 500px;
    display: flex;
    flex-direction: column;
}

.event-card-full-background:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-200);
}

.event-full-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0.4) 0%, 
        rgba(0,0,0,0.2) 40%, 
        rgba(0,0,0,0.6) 80%, 
        rgba(0,0,0,0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
}

.event-date-badge-absolute {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 0.75rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    text-align: center;
    min-width: 80px;
    z-index: 3;
}

.event-date-badge-absolute .date-day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-600);
    line-height: 1;
}

.event-date-badge-absolute .date-month {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-date-badge-absolute .date-year {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 2px;
}

.event-content-full-overlay {
    margin-top: auto;
    z-index: 2;
}

.event-title-full {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.9), 0 0 4px rgba(0,0,0,0.8);
}

.event-description-full {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 1rem 0;
    line-height: 1.5;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.9), 0 0 3px rgba(0,0,0,0.8);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-meta-full {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.event-location-full,
.event-time-full {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.875rem;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.9), 0 0 3px rgba(0,0,0,0.8);
}

.event-location-full i,
.event-time-full i {
    color: var(--primary-300);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.event-category-full {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.category-badge-full {
    background: var(--primary-500);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
}

/* Inline Filters Layout */
.filters-container-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    background: white;
    padding: 1rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.filters-left-group,
.filters-right-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.filters-left-group {
    flex: 0 0 auto;
}

.filters-right-group {
    flex: 0 0 auto;
}

.filter-group-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
    white-space: nowrap;
}

.filter-label-inline {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.875rem;
    white-space: nowrap;
    min-width: 110px;
    display: inline-block;
    text-align: left;
}

.modern-select-inline {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-800);
    cursor: pointer;
    transition: all 0.3s ease;
    height: 38px;
    min-width: 120px;
}

.modern-select-inline:hover {
    border-color: var(--primary-300);
    background: white;
}

.modern-select-inline:focus {
    outline: none;
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px var(--primary-100);
}

.location-filter-inline {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.radio-group-inline {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.radio-option-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    height: 38px;
}

.radio-text-inline {
    color: var(--gray-700);
    font-weight: 500;
}

.location-input-inline {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    background: var(--gray-50);
    transition: all 0.3s ease;
    height: 38px;
    box-sizing: border-box;
    min-width: 200px;
    max-width: 300px;
    flex: 1;
}

.location-input-inline:focus {
    outline: none;
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px var(--primary-100);
    background: white;
}

.category-filter-btn {
    background: var(--primary-500);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 38px;
    white-space: nowrap;
}

.category-filter-btn:hover {
    background: var(--primary-600);
    transform: translateY(-1px);
}

.category-count {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.date-range-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

/* Infinite Scroll Components */
.loading-more-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    gap: 1rem;
}

.loading-more-indicator .loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary-500);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-more-indicator p {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin: 0;
}

.end-of-results {
    text-align: center;
    padding: 2rem;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.end-of-results p {
    margin: 0;
}

.scroll-detector {
    height: 50px;
    width: 100%;
    position: relative;
    margin: 20px 0;
    clear: both;
}

/* Go to Top Button */
.go-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.go-to-top-btn:hover {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

.go-to-top-btn:active {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .go-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* Distance Slider Styles */
.distance-slider-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;
    margin-top: 5px;
}

.distance-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 5px;
}

.distance-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.distance-slider::-webkit-slider-thumb:hover {
    background: #0056b3;
    transform: scale(1.1);
}

.distance-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.distance-slider::-moz-range-thumb:hover {
    background: #0056b3;
    transform: scale(1.1);
}

.distance-slider::-moz-range-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: #e0e0e0;
    border-radius: 3px;
    border: none;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 11px;
    color: #666;
    margin-top: 2px;
    position: relative;
}

.slider-labels span:nth-child(2) {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Responsive adjustments for inline filters */
@media (max-width: 1200px) {
    .filters-container-inline {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .filters-left-group,
    .filters-right-group {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .location-input-inline {
        width: 180px;
    }
}

@media (max-width: 992px) {
    .filters-container-inline {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        overflow-x: visible;
    }
    
    .filters-left-group,
    .filters-right-group {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        flex-shrink: 1;
    }
    
    .filter-group-inline {
        align-items: stretch;
        flex-shrink: 1;
        white-space: normal;
    }
    
    .radio-group-inline {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .location-filter-inline {
        flex-wrap: wrap;
        flex-shrink: 1;
    }
    
    .location-input-inline {
        width: 100%;
        flex-shrink: 1;
    }
}

@media (max-width: 768px) {
    .modern-events-page {
        padding: 1rem 0.5rem;
    }
    
    .events-header {
        padding: 1rem 0.5rem;
    }
    
    .events-title {
        font-size: 1.75rem;
    }
    
    .search-section {
        padding: 0 0.25rem;
        margin-bottom: 1rem;
    }
    
    .search-container {
        max-width: 100%;
        padding: 0;
    }
    
    .modern-search-input {
        font-size: 0.9rem;
        padding: 0.75rem 0.75rem 0.75rem 2.5rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .filters-container-inline {
        margin-bottom: 1.5rem;
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .filter-group-inline {
        gap: 0.25rem;
        flex-shrink: 1;
        min-width: 0;
    }
    
    .filter-label-inline {
        font-size: 0.8rem;
    }
    
    .modern-select-inline,
    .location-input-inline {
        font-size: 0.8rem;
        height: 36px;
        padding: 0.4rem 0.6rem;
        min-width: 100px;
        max-width: 150px;
    }
    
    .location-input-inline {
        width: 140px;
        max-width: 140px;
    }
    
    .category-filter-btn {
        height: 36px;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    .radio-text-inline {
        font-size: 0.8rem;
    }
    
    .radio-group-inline {
        gap: 0.5rem;
    }
    
    .filters-left-group,
    .filters-right-group {
        gap: 0.75rem;
        flex-wrap: wrap;
    }
}

/* ============================
   MODERN ACCOUNT PAGE STYLES
   ============================ */

.modern-account-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--primary-25) 100%);
    padding: 2rem 1rem;
}

.account-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.account-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.account-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-500), var(--primary-600));
    border-radius: 2px;
}

.account-header .header-content {
    padding-top: 1.5rem;
}

.account-header .page-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.5rem 0;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.account-header .page-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin: 0;
    font-weight: 400;
}

.account-form-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.account-form-card .form-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.account-form-card .form-column {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.account-form-card .form-column:first-child {
    border-right: 1px solid var(--gray-200);
    background: var(--gray-25);
}

.account-form-card .form-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.account-form-card .section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-100);
}

.account-form-card .section-title i {
    color: var(--primary-500);
    font-size: 1.25rem;
}

.account-form-card .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.account-form-card .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.account-form-card .form-group label {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.account-form-card .form-input {
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: var(--gray-900);
}

.account-form-card .form-input:focus {
    outline: none;
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px var(--primary-100);
}

.account-form-card .form-input::placeholder {
    color: var(--gray-400);
}

.account-form-card .submit-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: auto;
}

.account-form-card .secondary-actions {
    display: flex;
    justify-content: center;
}

.account-form-card .btn-primary-modern,
.account-form-card .btn-secondary-modern {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    min-height: 48px;
}

.account-form-card .btn-primary-modern {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.account-form-card .btn-primary-modern:hover {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(0, 0, 0, 0.15);
}

.account-form-card .btn-secondary-modern {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
}

.account-form-card .btn-secondary-modern:hover {
    background: var(--gray-200);
    border-color: var(--gray-300);
    transform: translateY(-1px);
}

.account-form-card .btn-primary-modern:disabled,
.account-form-card .btn-secondary-modern:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.account-form-card .loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.account-form-card .loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    gap: 1rem;
}

.account-form-card .loading-text {
    color: var(--gray-600);
    font-size: 1.125rem;
    margin: 0;
}



/* Validation Message Styling */
.account-form-card .validation-message {
    color: var(--danger-600);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .modern-account-page {
        padding: 1rem 0.5rem;
    }
    
    .account-header .page-title {
        font-size: 2rem;
    }
    
    .account-header .page-subtitle {
        font-size: 1rem;
    }
    
    .account-form-card .form-layout {
        grid-template-columns: 1fr;
    }
    
    .account-form-card .form-column:first-child {
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
        background: white;
    }
    
    .account-form-card .form-column {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .account-form-card .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .account-form-card .section-title {
        font-size: 1.25rem;
    }
    
    .account-form-card .secondary-actions {
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .account-form-card .form-column {
        padding: 1rem;
    }
    
    .account-form-card .btn-primary-modern,
    .account-form-card .btn-secondary-modern {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* ============================
   MODERN SETTINGS PAGE STYLES
   ============================ */

.modern-settings-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--primary-25) 100%);
    padding: 2rem 1rem;
}

.settings-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.settings-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.settings-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-500), var(--primary-600));
    border-radius: 2px;
}

.settings-header .header-content {
    padding-top: 1.5rem;
}

.settings-header .page-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.5rem 0;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.settings-header .page-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin: 0;
    font-weight: 400;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Additional Card Variants for Settings */
.accent-card::before { 
    background: linear-gradient(90deg, #8b5cf6, #a855f7); 
}

.accent-card .card-icon { 
    background: linear-gradient(135deg, #8b5cf6, #a855f7); 
}

.info-card::before { 
    background: linear-gradient(90deg, #3b82f6, #2563eb); 
}

.info-card .card-icon { 
    background: linear-gradient(135deg, #3b82f6, #2563eb); 
}

/* Enhanced hover effects for settings cards */
.settings-grid .nav-card {
    transition: all 0.3s ease;
    transform: translateY(0);
}

.settings-grid .nav-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.settings-grid .nav-card:active {
    transform: translateY(-4px);
    transition: all 0.1s ease;
}

/* Footer section styling */
.settings-page .footer-section {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem 0;
}

.settings-page .footer-text {
    color: var(--gray-600);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.settings-page .btn-outline {
    background: transparent;
    border: 2px solid var(--primary-600);
    color: var(--primary-600);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-page .btn-outline:hover {
    background: var(--primary-600);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .modern-settings-page {
        padding: 1rem 0.5rem;
    }
    
    .settings-header .page-title {
        font-size: 2rem;
    }
    
    .settings-header .page-subtitle {
        font-size: 1rem;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .settings-header {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .settings-grid .nav-card {
        padding: 1.25rem;
    }
    
    .settings-grid .nav-card h3 {
        font-size: 1.125rem;
    }
    
    .settings-grid .nav-card p {
        font-size: 0.8125rem;
    }
}

/* ============================
   HELP BADGE COMPONENT
   ============================ */

.help-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    background: var(--primary-500) !important;
    color: white !important;
    border-radius: 50% !important;
    font-size: 10px !important;
    cursor: help !important;
    margin-left: 0.25rem !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
    text-align: center !important;
    border: none !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.help-badge i {
    font-size: 10px !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.help-badge:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3) !important;
    background: var(--primary-600) !important;
}

/* Checkbox layout fix for help badge */
.checkbox-label-text {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Modern checkbox layout fix */
.modern-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    width: 100%;
}

.modern-checkbox input[type="checkbox"] {
    display: none;
}

.modern-checkbox .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    background: white;
    flex-shrink: 0;
}

.modern-checkbox input[type="checkbox"]:checked + .checkmark {
    background-color: var(--primary-500);
    border-color: var(--primary-500);
}

.modern-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.modern-checkbox:hover .checkmark {
    border-color: var(--primary-400);
    transform: translateY(-1px);
}

.modern-checkbox .checkbox-label-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

/* === MODERN LOADING SPINNER === */
.modern-loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--secondary-50) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.modern-loading-spinner {
    margin-bottom: 2rem;
}

.spinner-ring {
    width: 60px;
    height: 60px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--primary-500);
    border-radius: 50%;
    animation: modernSpin 1s linear infinite;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

@keyframes modernSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

.loading-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 400;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .spinner-ring {
        width: 50px;
        height: 50px;
        border-width: 3px;
    }
    
    .loading-text h3 {
        font-size: 1.25rem;
    }
    
    .loading-text p {
        font-size: 0.85rem;
    }
}

