/* ========================================
   CUSTOMER DASHBOARD STYLES
   ======================================== */

/* Dashboard Layout */
.dashboard {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    background: var(--bg-light);
    padding: 40px 0;
}

.dashboard__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.dashboard__header h2 {
    font-size: 2rem;
    color: var(--text-dark);
}

.dashboard__grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
}

/* Dashboard Sidebar */
.dashboard__sidebar {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    height: fit-content;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 90px;
}

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

.dashboard__nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.dashboard__nav-item i {
    font-size: 1.2rem;
    color: var(--text-light);
    transition: color 0.3s;
}

.dashboard__nav-item:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.dashboard__nav-item:hover i {
    color: var(--primary-color);
}

.dashboard__nav-item.active {
    background: var(--primary-color);
    color: white;
}

.dashboard__nav-item.active i {
    color: white;
}

.dashboard__nav-item .badge {
    margin-left: auto;
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.dashboard__nav-item.active .badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.badge-danger {
    background: var(--danger-color) !important;
    color: white !important;
}

/* Dashboard Content */
.dashboard__content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    min-height: 600px;
}

.dashboard__section {
    display: none;
}

.dashboard__section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard__section h3 {
    font-size: 1.8rem;
    margin-bottom: 24px;
    color: var(--text-dark);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

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

.stat-card__icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-card__icon--primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.stat-card__icon--success {
    background: linear-gradient(135deg, #10B981, #059669);
}

.stat-card__icon--warning {
    background: linear-gradient(135deg, #F59E0B, #D97706);
}

.stat-card__icon--info {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
}

.stat-card__content h4 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.stat-card__content p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Quick Actions */
.dashboard__quick-actions {
    margin-bottom: 40px;
}

.dashboard__quick-actions h4 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}

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

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.3s;
    cursor: pointer;
}

.quick-action-btn:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
    transform: translateY(-2px);
}

.quick-action-btn i {
    font-size: 2rem;
    color: var(--primary-color);
}

.quick-action-btn span {
    font-weight: 600;
    color: var(--text-dark);
}

/* Recent Bookings */
.recent-bookings h4 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}

/* Booking Cards */
.booking-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s;
}

.booking-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.booking-card--compact {
    padding: 16px;
}

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

.booking-card__header h5 {
    font-size: 1.1rem;
    color: var(--text-dark);
}

.booking-card__body {
    margin-bottom: 16px;
}

.booking-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.booking-info i {
    color: var(--primary-color);
    width: 16px;
}

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

.booking-detail {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.booking-detail i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 4px;
}

.booking-detail small {
    display: block;
    color: var(--text-light);
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.booking-detail p {
    color: var(--text-dark);
    font-weight: 500;
}

.booking-card__footer {
    display: flex;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.booking-card__footer small {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Booking Filters */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.booking-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    background: white;
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
    cursor: pointer;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Profile Section */
.profile-container {
    max-width: 800px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    margin-bottom: 32px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.profile-info h4 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.profile-info p {
    color: var(--text-light);
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-actions {
    display: flex;
    gap: 12px;
    padding-top: 16px;
}

/* Notifications */
.notification-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    transition: all 0.3s;
}

.notification-card.unread {
    background: #EFF6FF;
    border-color: var(--primary-color);
}

.notification-card:hover {
    box-shadow: var(--shadow-sm);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon--success {
    background: #D1FAE5;
    color: var(--success-color);
}

.notification-icon--info {
    background: #DBEAFE;
    color: #3B82F6;
}

.notification-icon--warning {
    background: #FEF3C7;
    color: var(--warning-color);
}

.notification-icon--error {
    background: #FEE2E2;
    color: var(--danger-color);
}

.notification-icon--promo {
    background: #FCE7F3;
    color: #EC4899;
}

.notification-content {
    flex: 1;
}

.notification-content h5 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.notification-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.notification-content small {
    color: var(--text-light);
    font-size: 0.8rem;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    cursor: pointer;
}

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

/* Addresses */
.address-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s;
}

.address-card:hover {
    box-shadow: var(--shadow-sm);
}

.address-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.address-card__header h5 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.address-actions {
    display: flex;
    gap: 8px;
}

.address-card__body {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.address-card__body i {
    color: var(--primary-color);
    margin-top: 2px;
}

.address-card__body p {
    color: var(--text-light);
    line-height: 1.6;
}

.address-card__footer {
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-primary {
    background: var(--primary-color);
    color: white;
}

.badge-success {
    background: var(--success-color);
    color: white;
}

.badge-warning {
    background: var(--warning-color);
    color: white;
}

.badge-danger {
    background: var(--danger-color);
    color: white;
}

.badge-info {
    background: #3B82F6;
    color: white;
}

.badge-secondary {
    background: var(--text-light);
    color: white;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

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

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

/* Responsive */
@media (max-width: 968px) {
    .dashboard__grid {
        grid-template-columns: 1fr;
    }

    .dashboard__sidebar {
        position: static;
    }

    .dashboard__nav {
        flex-direction: row;
        overflow-x: auto;
        gap: 4px;
    }

    .dashboard__nav-item span {
        display: none;
    }

    .dashboard__nav-item {
        flex-direction: column;
        padding: 12px;
        min-width: 60px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .booking-details-grid {
        grid-template-columns: 1fr;
    }

    .dashboard__content {
        padding: 20px;
    }
}