/* ===== User Center / Dashboard Shared Styles ===== */

/* Sub Navigation */
.main-nav {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
}

.main-nav-links {
    display: flex;
    gap: 5px;
}

.main-nav-link {
    padding: 10px 20px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.main-nav-link.active {
    background: var(--gradient-primary);
    color: var(--white);
}

.main-nav-link:hover:not(.active) {
    background-color: var(--light-gray);
    text-decoration: none;
}

/* Welcome Section */
.welcome-section {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 40px 0;
    margin-bottom: 30px;
}

.welcome-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--light-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    color: var(--medium-gray);
    flex-shrink: 0;
}

.welcome-text h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.welcome-text p {
    font-size: 16px;
    max-width: 500px;
}

.welcome-images {
    display: flex;
    gap: 15px;
}

.welcome-image {
    width: 150px;
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.welcome-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.welcome-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-weight: bold;
    font-size: 14px;
}

/* Stats Container */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    padding: 20px;
    border-radius: var(--radius-md);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-card.refunded {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.stat-card.pending {
    background: linear-gradient(135deg, #FFD93D, #F0C000);
    color: var(--text-color);
}

.stat-card.completed {
    background: var(--gradient-accent);
}

.stat-card.total {
    background: var(--gradient-primary);
}

.stat-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.stat-card .number {
    font-size: 32px;
    font-weight: bold;
}

/* Bookings Section */
.bookings-section {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 24px;
    color: var(--primary-color);
}

/* Search & Sort */
.search-sort-container {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.search-box-large {
    flex: 1;
    position: relative;
}

.search-box-large input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 16px;
}

.search-box-large i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--medium-gray);
}

.sort-options {
    display: flex;
    gap: 10px;
}

.sort-btn {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.sort-btn:hover {
    background-color: var(--light-gray);
}

.sort-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.date-selector {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--white);
    cursor: pointer;
}

/* Bookings Table */
.bookings-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.bookings-table th {
    background-color: var(--light-gray);
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.bookings-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.bookings-table tr:hover {
    background-color: var(--light-gray);
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-text {
    font-size: 18px;
    margin-bottom: 20px;
}

.cta-btn {
    padding: 15px 30px;
    background-color: var(--white);
    color: var(--primary-color);
    border: none;
    border-radius: 999px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.cta-btn:hover {
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* === Profile Page Specific === */
.profile-container {
    display: flex;
    gap: 30px;
    margin: 30px 0;
}

.profile-sidebar {
    width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 48px;
    color: var(--white);
    margin-bottom: 20px;
}

.sidebar-links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-link {
    padding: 12px 15px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    border-radius: 999px;
    transition: var(--transition);
}

.sidebar-link.active {
    background: var(--gradient-primary);
    color: var(--white);
}

.sidebar-link:hover:not(.active) {
    background-color: var(--light-gray);
    text-decoration: none;
}

.logout-btn {
    margin-top: 20px;
    padding: 12px 15px;
    background-color: var(--error-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.logout-btn:hover {
    background-color: #c82333;
}

.profile-content {
    flex: 1;
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.profile-header {
    margin-bottom: 30px;
}

.profile-title {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.profile-subtitle {
    font-size: 16px;
    color: var(--medium-gray);
}

.profile-form {
    max-width: 600px;
}

.profile-form .form-group {
    margin-bottom: 20px;
}

.profile-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.profile-form .form-group input,
.profile-form .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 16px;
}

.profile-form .form-group input:focus,
.profile-form .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.12);
}

.verify-btn {
    padding: 12px 15px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.verify-btn:hover {
    background-color: var(--primary-dark);
}

.save-btn {
    padding: 15px 30px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 999px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 20px;
}

.save-btn:hover {
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.35);
    transform: translateY(-1px);
}

/* Delete Account Section */
.delete-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.delete-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.delete-link {
    color: var(--info-color);
    text-decoration: none;
    font-weight: 500;
}

.delete-link:hover {
    text-decoration: underline;
}

.delete-note {
    font-size: 14px;
    color: var(--medium-gray);
    margin-top: 5px;
}

.delete-btn {
    padding: 12px 15px;
    background-color: var(--error-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    width: fit-content;
}

.delete-btn:hover {
    background-color: #c82333;
}

/* Responsive */
@media (max-width: 768px) {
    .main-nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav-link {
        padding: 8px 14px;
        font-size: 14px;
    }

    .welcome-container {
        flex-direction: column;
        text-align: center;
    }

    .welcome-content {
        flex-direction: column;
    }

    .welcome-images {
        display: none;
    }

    .search-sort-container {
        flex-direction: column;
    }

    .bookings-table {
        display: block;
        overflow-x: auto;
    }

    .profile-container {
        flex-direction: column;
    }

    .profile-sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .sidebar-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .logout-btn {
        margin-top: 0;
        width: auto;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-container {
        grid-template-columns: 1fr;
    }
}
