/* User Dashboard Styles */

:root {
    --dashboard-primary: #0D8ABC;
    --dashboard-primary-dark: #0A6A96;
    --dashboard-secondary: #6C757D;
    --dashboard-success: #28A745;
    --dashboard-warning: #FFC107;
    --dashboard-danger: #DC3545;
    --dashboard-bg: #F8F9FA;
    --dashboard-card-bg: white;
    --dashboard-border: #E0E0E0;
    --dashboard-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --dashboard-radius: 12px;
    --dashboard-transition: all 0.3s ease;
}

.user-dashboard {
    min-height: 100vh;
    background: var(--dashboard-bg);
    padding: 20px;
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}

/* Sidebar */
.dashboard-sidebar {
    background: var(--dashboard-card-bg);
    border-radius: var(--dashboard-radius);
    box-shadow: var(--dashboard-shadow);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.sidebar-user {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--dashboard-border);
}

.user-avatar-large {
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--dashboard-primary);
}

.user-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-user h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.sidebar-user p {
    font-size: 14px;
    color: var(--dashboard-secondary);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: var(--dashboard-transition);
}

.sidebar-nav .nav-item:hover {
    background: rgba(13, 138, 188, 0.1);
    color: var(--dashboard-primary);
}

.sidebar-nav .nav-item.home-link {
    background: linear-gradient(135deg, #0D8ABC 0%, #065a8a 100%);
    color: white;
    font-weight: 600;
}

.sidebar-nav .nav-item.home-link:hover {
    background: linear-gradient(135deg, #0A6A96 0%, #054a75 100%);
    color: white;
    transform: translateY(-2px);
}

.sidebar-nav .nav-item.active {
    background: var(--dashboard-primary);
    color: white;
}

.sidebar-nav .nav-item i {
    width: 20px;
    text-align: center;
}

/* Main Content */
.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dashboard-header {
    background: var(--dashboard-card-bg);
    border-radius: var(--dashboard-radius);
    box-shadow: var(--dashboard-shadow);
    padding: 24px;
}

.dashboard-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.dashboard-header p {
    font-size: 14px;
    color: var(--dashboard-secondary);
}

/* Stats Cards */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.stat-card {
    background: var(--dashboard-card-bg);
    border-radius: var(--dashboard-radius);
    box-shadow: var(--dashboard-shadow);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--dashboard-transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.stat-icon.bg-blue {
    background: var(--dashboard-primary);
}

.stat-icon.bg-green {
    background: var(--dashboard-success);
}

.stat-icon.bg-orange {
    background: var(--dashboard-warning);
}

.stat-icon.bg-purple {
    background: #6F42C1;
}

.stat-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.stat-info p {
    font-size: 13px;
    color: var(--dashboard-secondary);
}

/* Dashboard Section */
.dashboard-section {
    background: var(--dashboard-card-bg);
    border-radius: var(--dashboard-radius);
    box-shadow: var(--dashboard-shadow);
    padding: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.btn-outline {
    padding: 8px 20px;
    border: 2px solid var(--dashboard-primary);
    background: transparent;
    color: var(--dashboard-primary);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--dashboard-transition);
}

.btn-outline:hover {
    background: var(--dashboard-primary);
    color: white;
}

/* Booking Cards */
.bookings-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.booking-card {
    border: 1px solid var(--dashboard-border);
    border-radius: 12px;
    padding: 20px;
    transition: var(--dashboard-transition);
}

.booking-card:hover {
    border-color: var(--dashboard-primary);
    box-shadow: 0 2px 8px rgba(13, 138, 188, 0.1);
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--dashboard-border);
}

.flight-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.flight-code {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.booking-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.booking-status.confirmed {
    background: rgba(40, 167, 69, 0.1);
    color: var(--dashboard-success);
}

.booking-status.pending {
    background: rgba(255, 193, 7, 0.1);
    color: var(--dashboard-warning);
}

.booking-status.cancelled {
    background: rgba(220, 53, 69, 0.1);
    color: var(--dashboard-danger);
}

.booking-date {
    font-size: 12px;
    color: var(--dashboard-secondary);
}

.booking-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.route-point {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.route-point .city {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.route-point .code {
    font-size: 13px;
    color: var(--dashboard-secondary);
}

.route-point .time {
    font-size: 14px;
    font-weight: 500;
    color: var(--dashboard-primary);
}

.route-line {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dashboard-primary);
    font-size: 20px;
}

.booking-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--dashboard-border);
}

.booking-footer .passengers {
    font-size: 13px;
    color: var(--dashboard-secondary);
}

.booking-footer .price {
    font-size: 18px;
    font-weight: 700;
    color: var(--dashboard-primary);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.action-card {
    background: var(--dashboard-bg);
    border: 1px solid var(--dashboard-border);
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    transition: var(--dashboard-transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.action-card:hover {
    border-color: var(--dashboard-primary);
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.action-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin-bottom: 16px;
}

.action-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.action-card p {
    font-size: 13px;
    color: var(--dashboard-secondary);
}

/* Responsive Design */
@media (max-width: 992px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sidebar {
        position: static;
    }
    
    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .sidebar-nav .nav-item {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .user-dashboard {
        padding: 12px;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .booking-route {
        flex-direction: column;
        gap: 16px;
    }
    
    .route-line {
        transform: rotate(90deg);
    }
}

@media (max-width: 576px) {
    .dashboard-stats,
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .sidebar-nav {
        flex-direction: column;
    }
    
    .sidebar-nav .nav-item {
        justify-content: flex-start;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
