/* ===== DASHBOARD CLIENT STYLES ===== */

:root {
    --primary-dark: #0a0a0a;
    --secondary-dark: #1a1a1a;
    --accent-gold: #d4af37;
    --accent-gold-light: #f0d876;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --bg-light: #f5f5f5;
    --bg-card: #ffffff;
    --border-color: #e0e0e0;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
}

body {
    background: var(--bg-light);
    margin: 0;
    padding: 0;
}

.dashboard-container {
    display: flex;
    min-height: calc(100vh - 80px);
    margin-top: 80px;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid var(--border-color);
    padding: 2rem 0;
    position: fixed;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.user-profile-card {
    text-align: center;
    padding: 0 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.user-profile-card h3 {
    margin: 0.5rem 0 0.3rem;
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.user-profile-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.user-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 1.5rem;
}

.user-stats .stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
}

/* ===== SIDEBAR NAVIGATION ===== */
.sidebar-nav {
    padding: 1.5rem 0;
}

.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--primary-dark);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.sidebar-nav .nav-item:hover {
    background: rgba(212, 175, 55, 0.1);
    border-left-color: var(--accent-gold);
}

.sidebar-nav .nav-item.active {
    background: rgba(212, 175, 55, 0.15);
    border-left-color: var(--accent-gold);
    font-weight: 600;
}

.sidebar-nav .nav-item .icon {
    font-size: 1.3rem;
    margin-right: 0.8rem;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SECTION HEADER ===== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    margin: 0;
}

/* ===== BOOKINGS GRID ===== */
.bookings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.booking-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.booking-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.booking-card.upcoming {
    border-color: var(--success);
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.booking-status {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.booking-status.confirmed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.booking-status.completed {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.booking-status.cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.booking-info {
    margin: 1rem 0;
}

.booking-info p {
    margin: 0.5rem 0;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
}

.booking-info p .icon {
    margin-right: 0.5rem;
    opacity: 0.7;
}

.booking-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
}

.btn-view {
    background: var(--info);
    color: white;
}

.btn-reschedule {
    background: var(--warning);
    color: white;
}

.btn-cancel {
    background: var(--danger);
    color: white;
}

.btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 15px;
}

.empty-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ===== QUICK BOOKING FORM ===== */
.booking-form-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.quick-booking-form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.form-group label .icon {
    margin-right: 0.3rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* ===== BOOKING SUMMARY ===== */
.booking-summary {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(240, 216, 118, 0.1));
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    border: 2px solid var(--accent-gold);
}

.booking-summary h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.summary-details p {
    margin: 0.5rem 0;
    color: var(--primary-dark);
}

.summary-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--accent-gold);
}

/* ===== BUTTONS ===== */
.btn-submit {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
    color: var(--primary-dark);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

/* ===== BOOKINGS LIST (Historique) ===== */
.bookings-list {
    background: white;
    border-radius: 15px;
    overflow: hidden;
}

.booking-item {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.booking-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.booking-item:last-child {
    border-bottom: none;
}

.booking-item-info {
    flex: 1;
}

.booking-item-info h4 {
    margin: 0 0 0.5rem;
    color: var(--primary-dark);
}

.booking-item-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== FILTERS ===== */
.filters {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: var(--accent-gold);
}

.filter-btn.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: white;
}

/* ===== PROFILE FORM ===== */
.profile-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.profile-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.profile-form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* ===== LOYALTY SECTION ===== */
.loyalty-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.loyalty-section h3 {
    margin-top: 0;
    color: var(--primary-dark);
}

.loyalty-card {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
    border-radius: 15px;
    color: var(--primary-dark);
}

.loyalty-points-big {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.loyalty-progress {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    margin: 1rem 0;
    overflow: hidden;
}

.loyalty-progress-bar {
    height: 100%;
    background: white;
    transition: width 0.5s ease;
}

.loyalty-next {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ===== SETTINGS ===== */
.settings-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.settings-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.settings-card h3 {
    margin-top: 0;
    color: var(--primary-dark);
}

.password-form .form-group {
    max-width: 500px;
}

/* ===== SWITCH TOGGLE ===== */
.settings-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.switch-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    font-weight: 500;
}

.switch {
    position: relative;
    width: 50px;
    height: 26px;
    background: var(--border-color);
    border-radius: 50px;
    transition: background 0.3s;
}

.switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.switch-label input[type="checkbox"] {
    display: none;
}

.switch-label input[type="checkbox"]:checked + .switch {
    background: var(--success);
}

.switch-label input[type="checkbox"]:checked + .switch::after {
    transform: translateX(24px);
}

/* ===== DANGER ZONE ===== */
.danger-zone {
    border: 2px solid var(--danger);
}

.danger-zone h3 {
    color: var(--danger);
}

.btn-danger {
    background: var(--danger);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

/* ===== MODALS ===== */
.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-secondary {
    flex: 1;
    padding: 0.8rem;
    background: var(--border-color);
    color: var(--primary-dark);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }

    .main-content {
        margin-left: 240px;
    }

    .profile-container {
        grid-template-columns: 1fr;
    }

    .quick-booking-form .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
    }

    .bookings-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}
