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

:root {
    --primary: #2D5F5D;
    --primary-light: #4A8886;
    --accent: #E8956B;
    --accent-light: #F4B993;
    --cream: #FBF7F4;
    --sand: #EDE4DC;
    --text-dark: #2C2C2C;
    --text-medium: #5A5A5A;
    --white: #FFFFFF;
    --error: #E74C3C;
    --success: #27AE60;
    --info: #3498DB;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background: var(--cream);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
.app-nav {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.app-nav .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-greeting {
    color: var(--text-medium);
    font-weight: 600;
}

.nav-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent);
}

.logout-link {
    color: var(--accent);
}

/* Main Content */
.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    animation: slideDown 0.3s ease-out;
}

.alert-error {
    background: #FDEDEC;
    color: var(--error);
    border: 1px solid #F5C6CB;
}

.alert-success {
    background: #EAFAF1;
    color: var(--success);
    border: 1px solid #A9DFBF;
}

.alert-info {
    background: #EBF5FB;
    color: var(--info);
    border: 1px solid #AED6F1;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Auth Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 2rem;
}

.auth-card {
    background: var(--white);
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    width: 100%;
    max-width: 450px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-medium);
    font-size: 1.05rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid var(--sand);
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 95, 93, 0.1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(232, 149, 107, 0.3);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(232, 149, 107, 0.4);
}

.btn-full {
    width: 100%;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--sand);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: var(--accent);
}

/* Dashboard */
.dashboard-container {
    padding: 1rem 0;
}

.dashboard-header {
    margin-bottom: 3rem;
}

.dashboard-header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    color: var(--text-medium);
    font-size: 1.1rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.dashboard-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
}

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

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.dashboard-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.dashboard-card p {
    color: var(--text-medium);
    margin-bottom: 1rem;
}

.badge {
    display: inline-block;
    background: var(--sand);
    color: var(--text-medium);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Patient dashboard extras */
.patient-session-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--sand);
    font-size: 0.95rem;
}

.patient-session-item:last-child {
    border-bottom: none;
}

.patient-session-item strong {
    color: var(--primary);
    min-width: 90px;
}

.session-type-label {
    background: var(--sand);
    padding: 0.15rem 0.6rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
}

.text-muted {
    color: var(--text-medium);
    font-style: italic;
}

.stat-big {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

/* Footer */
.app-footer {
    background: var(--text-dark);
    color: var(--white);
    text-align: center;
    padding: 1.5rem 2rem;
    margin-top: auto;
}

.app-footer p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-card {
        padding: 2rem;
    }

    .auth-header h1 {
        font-size: 2rem;
    }

    .dashboard-header h1 {
        font-size: 2rem;
    }

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