/* ========================================
   User Dashboard Styles - Light Mode
   ======================================== */

.user-dashboard-section {
    padding: 110px 0 80px;
    min-height: 100vh;
    background: #f8f9fa;
}

.user-dashboard-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.welcome-message h1 {
    font-size: 1.75rem;
    color: #3a7cbd;
    margin-bottom: 5px;
}

.welcome-message p {
    color: #6c757d;
    font-size: 0.95rem;
}

.btn-new-booking {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #5b9bd5, #5b9bd5);
    color: white;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-new-booking:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(91, 155, 213, 0.3);
    color: white;
}

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

.stat-card {
    background: #ffffff;
    border-radius: 3px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.stat-icon.total {
    background: linear-gradient(135deg, #5b9bd5 0%, #5b9bd5 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(91, 155, 213, 0.35);
}

.stat-icon.pending {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.stat-icon.approved {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.stat-icon.completed {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
}

.stat-card:hover .stat-icon {
    transform: scale(1.05);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3a7cbd;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Dashboard Section */
.dashboard-section {
    background: #ffffff;
    border-radius: 3px;
    padding: 24px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

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

.section-header h2 {
    font-size: 1.25rem;
    color: #3a7cbd;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.section-header h2 i {
    color: #5b9bd5;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #5b9bd5;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.view-all-link:hover {
    gap: 8px;
    color: #5b9bd5;
}

/* Bookings Table */
.bookings-table-wrapper {
    overflow-x: auto;
}

.bookings-table {
    width: 100%;
    border-collapse: collapse;
}

.bookings-table th,
.bookings-table td {
    padding: 14px 16px;
    text-align: left;
}

.bookings-table th {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e9ecef;
}

.bookings-table tbody tr {
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
}

.bookings-table tbody tr:hover {
    background-color: #f8f9fa;
}

.bookings-table tbody tr:last-child {
    border-bottom: none;
}

.booking-number {
    font-family: monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: #5b9bd5;
}

.service-info {
    display: flex;
    flex-direction: column;
}

.service-name {
    font-weight: 600;
    color: #3a7cbd;
    font-size: 0.95rem;
}

.service-category {
    font-size: 0.8rem;
    color: #6c757d;
}

.datetime-info {
    display: flex;
    flex-direction: column;
}

.datetime-info .date {
    font-weight: 500;
    color: #3a7cbd;
}

.datetime-info .time {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.status-badge.status-approved,
.status-badge.status-confirmed {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.status-badge.status-completed {
    background: rgba(139, 92, 246, 0.15);
    color: #7c3aed;
}

.status-badge.status-cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

/* Action Buttons */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 3px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: #5b9bd5;
    border-color: #5b9bd5;
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 1.1rem;
    color: #3a7cbd;
    margin-bottom: 8px;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 20px;
}

.empty-state .btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #5b9bd5, #5b9bd5);
    color: white;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.empty-state .btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(91, 155, 213, 0.3);
}

/* Quick Links Section */
.quick-links-section {
    background: #ffffff;
    border-radius: 3px;
    padding: 24px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.quick-links-section h2 {
    font-size: 1.25rem;
    color: #3a7cbd;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px 0;
}

.quick-links-section h2 i {
    color: #f59e0b;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.quick-link-card i {
    font-size: 1.75rem;
    color: #5b9bd5;
    transition: all 0.3s ease;
}

.quick-link-card span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #3a7cbd;
    text-align: center;
}

.quick-link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(43, 79, 135, 0.15);
    border-color: #5b9bd5;
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
}

.quick-link-card:hover i {
    color: #5b9bd5;
    transform: scale(1.1);
}

.quick-link-card:hover span {
    color: #5b9bd5;
}

/* Alternate colors for quick links */
.quick-link-card:nth-child(1):hover {
    border-color: #5b9bd5;
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}
.quick-link-card:nth-child(1):hover i { color: #5b9bd5; }

.quick-link-card:nth-child(2):hover {
    border-color: #10b981;
    background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%);
}
.quick-link-card:nth-child(2) i { color: #10b981; }
.quick-link-card:nth-child(2):hover i { color: #059669; }

.quick-link-card:nth-child(3):hover {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
}
.quick-link-card:nth-child(3) i { color: #f59e0b; }
.quick-link-card:nth-child(3):hover i { color: #d97706; }

.quick-link-card:nth-child(4):hover {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 100%);
}
.quick-link-card:nth-child(4) i { color: #8b5cf6; }
.quick-link-card:nth-child(4):hover i { color: #7c3aed; }

/* Responsive */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .user-dashboard-section {
        padding: 100px 0 60px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .stat-card {
        padding: 16px;
    }

    .stat-icon {
        width: 42px;
        height: 42px;
        font-size: 1.25rem;
    }

    .stat-card .stat-value {
        font-size: 1.25rem;
    }

    .bookings-table th,
    .bookings-table td {
        padding: 12px 10px;
        font-size: 0.85rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

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

    .welcome-message h1 {
        font-size: 1.5rem;
    }

    .dashboard-section {
        padding: 16px;
    }

    .bookings-table {
        font-size: 0.8rem;
    }

    .bookings-table th:nth-child(4),
    .bookings-table td:nth-child(4),
    .bookings-table th:nth-child(5),
    .bookings-table td:nth-child(5) {
        display: none;
    }

    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .quick-link-card {
        padding: 20px 12px;
    }

    .quick-link-card i {
        font-size: 1.5rem;
    }

    .quick-link-card span {
        font-size: 0.8rem;
    }

    .quick-links-section {
        padding: 16px;
    }
}
