/* Enhanced User Dashboard Styles - Dark Theme */
:root {
    --primary-color: #0c3088;
    --primary-dark: #082555;
    --primary-light: #1a4db8;
    --accent-color: #ffd700;
    --accent-dark: #e6c200;
    --dark-bg: #0a0a0a;
    --darker-bg: #000000;
    --surface: #151515;
    --surface-elevated: #1f1f1f;
    --light-text: #ffffff;
    --muted-text: #a0a0a0;
    --subtle-text: #707070;
    --border-color: #2a2a2a;
    --border-hover: #404040;
    --success-color: #00d4aa;
    --warning-color: #ffb800;
    --error-color: #ff4757;
    --info-color: #3742fa;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 12px 35px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--light-text);
    background: 
        radial-gradient(circle at 20% 20%, rgba(12, 48, 136, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header Styles */
.header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--light-text);
    font-weight: 700;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.navbar-brand img {
    height: 40px;
    margin-right: 10px;
}

.nav-link {
    color: var(--muted-text) !important;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
}

.nav-link:hover {
    color: var(--light-text) !important;
    background: var(--glass-bg);
}

.dropdown-toggle::after {
    margin-left: 0.5rem;
}

.dropdown-menu {
    background: var(--surface-elevated);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-hover);
    border-radius: 16px;
    backdrop-filter: blur(20px);
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    color: var(--muted-text);
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 4px;
}

.dropdown-item:hover {
    background: var(--primary-color);
    color: var(--light-text);
}

.dropdown-item i {
    margin-right: 0.5rem;
    width: 16px;
    color: var(--primary-color);
}

.dropdown-item:hover i {
    color: var(--light-text);
}

/* Main Content */
.main-content {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

/* Welcome Section */
.welcome-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: var(--light-text);
    padding: 3rem 0;
    border-radius: 24px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(12, 48, 136, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 215, 0, 0.08) 0%, transparent 50%);
    z-index: -1;
}

.welcome-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--light-text) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-subtitle {
    font-size: 1.1rem;
    color: var(--muted-text);
    margin-bottom: 0;
}

.user-avatar {
    font-size: 4rem;
    color: var(--accent-color);
    text-align: center;
    filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.3));
}

/* Stats Section */
.stats-section {
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.02) 100%);
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-hover);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.5rem;
    color: var(--light-text);
    position: relative;
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    box-shadow: 0 8px 25px rgba(12, 48, 136, 0.3);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, var(--success-color) 0%, #00b894 100%);
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.3);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, var(--warning-color) 0%, #f39c12 100%);
    box-shadow: 0 8px 25px rgba(255, 184, 0, 0.3);
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: var(--muted-text);
    margin-bottom: 0;
    font-weight: 500;
}

/* Dashboard Navigation */
.dashboard-nav {
    margin-bottom: 2rem;
}

.nav-tabs {
    border-bottom: 2px solid var(--border-color);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 16px 16px 0 0;
    padding: 0 1rem;
}

.nav-tabs .nav-link {
    border: none;
    border-radius: 12px 12px 0 0;
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: var(--muted-text);
    transition: all 0.3s ease;
    background: transparent;
}

.nav-tabs .nav-link:hover {
    border: none;
    color: var(--light-text);
    background: var(--surface);
}

.nav-tabs .nav-link.active {
    border: none;
    background: var(--primary-color);
    color: var(--light-text);
    position: relative;
}

.nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.nav-tabs .nav-link i {
    margin-right: 0.5rem;
}

/* Tab Content */
.tab-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 0 0 20px 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

/* Profile Section */
.profile-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.profile-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow);
}

.profile-card h3 {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
}

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

.form-group label {
    font-weight: 600;
    color: var(--light-text);
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    background: var(--surface-elevated);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--light-text);
    transition: all 0.3s ease;
}

.form-control:focus {
    background: var(--surface-elevated);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(12, 48, 136, 0.25);
    color: var(--light-text);
}

.form-control[readonly] {
    background: var(--surface);
    color: var(--muted-text);
    cursor: not-allowed;
}

.form-control::placeholder {
    color: var(--subtle-text);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.quick-actions-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.quick-actions-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow);
}

.quick-actions-card h4 {
    color: var(--light-text);
    margin-bottom: 1rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--light-text);
    font-weight: 500;
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    border-color: var(--primary-color);
    color: var(--light-text);
    text-decoration: none;
    transform: translateX(8px);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.quick-action-btn i {
    margin-right: 0.75rem;
    color: var(--primary-color);
    width: 20px;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.section-header h3 {
    color: var(--light-text);
    margin-bottom: 0;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
}

/* Filter Section */
.filter-section {
    margin-bottom: 2rem;
}

.btn-group .btn {
    background: var(--surface);
    border: 1px solid var(--border-color);
    color: var(--muted-text);
    border-radius: 8px;
    margin-right: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-group .btn:hover {
    background: var(--surface-elevated);
    border-color: var(--border-hover);
    color: var(--light-text);
}

.btn-group .btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--light-text);
}

/* Reservations List */
.reservations-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reservation-item {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease-out;
}

.reservation-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-hover);
}

.reservation-item.pending {
    border-left-color: var(--warning-color);
}

.reservation-item.confirmed {
    border-left-color: var(--success-color);
}

.reservation-item.cancelled {
    border-left-color: var(--error-color);
}

.reservation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reservation-title {
    font-weight: 600;
    color: var(--light-text);
    margin-bottom: 0;
    font-family: 'Space Grotesk', sans-serif;
}

.reservation-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reservation-status.pending {
    background: rgba(255, 184, 0, 0.1);
    color: var(--warning-color);
    border: 1px solid rgba(255, 184, 0, 0.2);
}

.reservation-status.confirmed {
    background: rgba(0, 212, 170, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(0, 212, 170, 0.2);
}

.reservation-status.cancelled {
    background: rgba(255, 71, 87, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(255, 71, 87, 0.2);
}

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

.reservation-detail {
    display: flex;
    align-items: center;
    color: var(--muted-text);
}

.reservation-detail i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    width: 16px;
}

/* Messages List */
.messages-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message-item {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    border-left: 4px solid var(--info-color);
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease-out;
}

.message-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-hover);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.message-date {
    color: var(--muted-text);
    font-size: 0.875rem;
}

.message-content {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.message-content p {
    margin-bottom: 0;
    line-height: 1.6;
    color: var(--light-text);
}

.message-status {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--muted-text);
}

.message-status i {
    margin-right: 0.5rem;
    color: var(--info-color);
}

/* Buttons */
.btn {
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--light-text);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: var(--light-text);
}

.btn-outline-secondary {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--muted-text);
}

.btn-outline-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--glass-bg);
}

/* Footer */
.footer {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    color: var(--light-text);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-color);
    font-family: 'Space Grotesk', sans-serif;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--muted-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.footer-section ul li i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--muted-text);
}

.footer-bottom a {
    color: var(--accent-color);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--muted-text);
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin-left: 0.5rem;
}

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

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted-text);
}

.empty-state i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: block;
    opacity: 0.7;
}

.empty-state h4 {
    margin-bottom: 0.5rem;
    color: var(--light-text);
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* Animation keyframes */
@keyframes slideIn {
    from { 
        transform: translateX(100%); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

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

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

/* Responsive Design */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 2rem;
    }
    
    .welcome-section {
        padding: 2rem 0;
    }
    
    .user-avatar {
        font-size: 3rem;
        margin-top: 1rem;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .reservation-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .reservation-details {
        grid-template-columns: 1fr;
    }
    
    .tab-content {
        padding: 1rem;
    }

    .btn-group {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .nav-tabs {
        padding: 0 0.5rem;
    }

    .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Dark mode enhancements */
.form-control:autofill,
.form-control:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px var(--surface-elevated) inset;
    -webkit-text-fill-color: var(--light-text);
    caret-color: var(--light-text);
}

/* Focus styles for accessibility */
.nav-link:focus,
.dropdown-item:focus,
.quick-action-btn:focus,
.btn:focus,
.form-control:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #404040;
        --glass-border: rgba(255, 255, 255, 0.2);
        --muted-text: #c0c0c0;
    }
}