/* Dashboard Styles */

:root {
    --primary-color: #024751;
    --accent-color: #ff5416;
    --light-bg: #f8fafb;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --border-color: #e5e5e5;
    --success-color: #4caf50;
    --warning-color: #ff9800;
}

/* Dashboard Container */
.dashboard-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    min-height: calc(100vh - 80px);
    background: var(--light-bg);
}

/* Sidebar */
.dashboard-sidebar {
    background: white;
    padding: 2rem 0;
    border-right: 1px solid var(--border-color);
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.user-profile-card {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.user-avatar {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.user-profile-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.user-profile-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.user-status {
    display: inline-block;
    background: var(--success-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Sidebar Navigation */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
}

.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

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

.sidebar-nav .nav-item.active {
    background: var(--light-bg);
    color: var(--primary-color);
    border-left-color: var(--accent-color);
    font-weight: 600;
}

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

/* Main Content */
.dashboard-content {
    padding: 2rem;
    overflow-y: auto;
}

.content-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

.section-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

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

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    transition: all 0.3s ease;
}

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

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.stat-icon.upcoming {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-icon.completed {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
}

.stat-icon.spent {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

.stat-icon.rating {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* Sections */
.next-booking-section,
.recent-activity-section,
.bookings-filter {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.next-booking-section h3,
.recent-activity-section h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* Booking Card */
.booking-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.booking-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.booking-card.next-booking {
    border-left: 4px solid var(--accent-color);
}

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

.booking-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Gift Booking Badge */
.booking-gift-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, #fff0eb, #ffe0d0);
    color: var(--accent-color);
    border: 1px solid rgba(255, 84, 22, 0.3);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 4px;
}

.booking-gift-badge i {
    font-size: 0.75rem;
}

.booking-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.booking-status.confirmed {
    background: #e8f5e9;
    color: var(--success-color);
}

.booking-status.pending {
    background: #fff3e0;
    color: var(--warning-color);
}

.booking-status.completed {
    background: #e3f2fd;
    color: #2196f3;
}

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

.booking-detail-item {
    font-size: 0.9rem;
}

.booking-detail-label {
    color: var(--text-light);
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

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

.booking-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.booking-actions button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

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

.btn-modify:hover {
    background: #033d47;
}

.btn-cancel {
    background: #f5f5f5;
    color: var(--text-dark);
}

.btn-cancel:hover {
    background: #e0e0e0;
}

/* Bookings Filter */
.bookings-filter {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-light);
}

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

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

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

.activity-item {
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 4px;
    display: flex;
    gap: 1rem;
    align-items: start;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    flex-shrink: 0;
}

.activity-text p {
    margin: 0;
    font-size: 0.9rem;
}

.activity-text .activity-title {
    color: var(--text-dark);
    font-weight: 600;
}

.activity-text .activity-time {
    color: var(--text-light);
    font-size: 0.8rem;
}

/* Settings */
.settings-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.settings-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.settings-card.danger {
    border-color: #f44336;
    background: #ffebee;
}

.settings-card.danger h3 {
    color: #f44336;
}

.settings-group {
    margin-bottom: 1rem;
}

.settings-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.settings-group input[type="text"],
.settings-group input[type="email"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.95rem;
    background: white;
}

.settings-group.checkbox label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.settings-group.checkbox input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.empty-state a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

/* Modal Styles */
#bookingDetailsModal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    visibility: visible;
    opacity: 1;
}

#ratingModal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10001;
    padding: 20px;
    visibility: visible;
    opacity: 1;
}

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

    .dashboard-sidebar {
        position: fixed;
        left: 0;
        top: 80px;
        width: 250px;
        height: calc(100vh - 80px);
        z-index: 99;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .dashboard-sidebar.active {
        transform: translateX(0);
    }

    .dashboard-content {
        padding: 1.5rem;
    }

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

    .stats-grid {
        grid-template-columns: 1fr;
    }

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

    .booking-actions {
        flex-direction: column;
    }

    .booking-actions button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .dashboard-content {
        padding: 1rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .booking-header {
        flex-direction: column;
    }

    .booking-status {
        margin-top: 0.5rem;
    }
}
