:root {
    --primary: #d946ef;
    --primary-dark: #be185d;
    --bg-light: #fff5f7;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --sidebar-width: 260px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: white;
    color: var(--text-dark);
}

/* --- Dashboard Layout --- */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: white;
    border-right: 1px solid #f3f4f6;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 3rem;
}

.brand img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.brand span {
    font-size: 1.4rem;
    font-weight: 700;
    color: black;
    font-family: 'Playfair Display', serif;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s;
    cursor: pointer;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    color: var(--primary);
    background: #fff0f5; /* Light pink hover */
}

.sidebar-nav a i {
    width: 20px;
    text-align: center;
    color: var(--primary);
}

/* Main Content Area */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 2rem 4rem;
    background: white;
}

/* Header inside Main */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

#pageTitle {
    font-size: 2rem;
    font-weight: 700;
    color: black;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-role {
    font-weight: 600;
    color: #374151;
}

.user-avatar-circle {
    width: 40px;
    height: 40px;
    background: #fce7f3;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Stats */
.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

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

.stat-label {
    color: #9ca3af;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.stat-number-purple {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-number-black {
    font-size: 3.5rem;
    font-weight: 700;
    color: black;
    line-height: 1;
}

/* Table */
.table-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.table-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: black;
}

.btn-pill-gray {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

thead th {
    background: #fff0f5;
    color: #be185d;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 1rem;
    text-align: left;
    letter-spacing: 0.05em;
}

tbody td {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    color: #1f2937;
    font-size: 0.95rem;
}

.status-pill {
    background: #dcfce7;
    color: #166534;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
}

.btn-cancel {
    color: #ef4444;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

/* --- Public Site Styles (Preserved) --- */
.app-header {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    padding: 4rem 1.5rem 5rem 1.5rem;
    text-align: center;
    color: var(--text-dark);
    border-bottom-left-radius: 3rem;
    border-bottom-right-radius: 3rem;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.top-nav {
    position: absolute;
    top: 0; left: 0; width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.btn-signup-top {
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    color: var(--primary-dark);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.btn-signup-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.logo-container img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.brand-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.brand-subtitle {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.rating-badge {
    background: white;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.address-text {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.nav-pills {
    display: inline-flex;
    background: white;
    padding: 0.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    gap: 0.5rem;
}

.pill-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.95rem;
}

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

.pill-btn.inactive {
    background: transparent;
    color: var(--text-gray);
}

.pill-btn.inactive:hover {
    background: #fdf2f8;
    color: var(--primary);
}

.content-section {
    padding: 4rem 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f3f4f6;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -5px rgba(0,0,0,0.1);
}

.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.service-info {
    padding: 1.5rem;
    text-align: center;
}

.service-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.service-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.book-btn {
    background: var(--text-dark);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.book-btn:hover {
    background: var(--primary);
    transform: scale(1.02);
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff0f5, #fae8ff);
}
.auth-box {
    background: white;
    padding: 3rem;
    border-radius: 2rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}
.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}
.auth-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to right, #ec4899, #a855f7);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-gray);
    line-height: 1;
}

.close-btn:hover {
    color: var(--text-dark);
}
