:root {
    --bg: #0f1724;
    --card: rgba(255, 255, 255, 0.04);
    --glass: rgba(255, 255, 255, 0.06);
    --muted: rgba(255, 255, 255, 0.65);
    --accent: #7c3aed;
    --accent-2: #06b6d4;
    --success: #10b981;
    --danger: #ef4444;
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-blur: 8px;
    --radius: 14px;
    --max-width: 1100px;
    --shadow: 0 10px 30px rgba(2, 6, 23, 0.6);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

html, body, #app {
    height: 100%;
}

body {
    background: radial-gradient(1000px 400px at 10% 10%, rgba(124,58,237,0.12), transparent 10%), radial-gradient(800px 300px at 90% 80%, rgba(6,182,212,0.06), transparent 10%), var(--bg);
    color: #e6eef8;
    line-height: 1.35;
    padding: 24px;
    -webkit-font-smoothing: antialiased;
}
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}


.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand {
    font-size: 1.6rem;
    letter-spacing: 0.6px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav {
    display: flex;
    gap: 8px;
}

.nav-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.18s ease;
    backdrop-filter: blur(var(--glass-blur));
}

.nav-btn:hover {
    transform: translateY(-2px);
    color: white;
    border-color: rgba(255, 255, 255, 0.12);
}


.panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
}

.hidden {
    display: none;
}


.hero {
    padding: 10px 0 18px;
}

.hero h2 {
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.hero p {
    color: var(--muted);
    font-size: 0.95rem;
}

.auth-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(255,255,255,0.015), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.03);
}

.role-select {
    display: flex;
    gap: 12px;
    color: var(--muted);
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.form-row input {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.04);
    background: transparent;
    color: inherit;
    min-width: 200px;
}


button {
    cursor: pointer;
    font-weight: 600;
    border: 0;
    padding: 8px 12px;
    border-radius: 10px;
}

.primary {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: white;
    box-shadow: 0 8px 24px rgba(124,58,237,0.12);
}

.danger {
    background: linear-gradient(90deg,#ef4444,#f97316);
    color: white;
}

.oauth {
    background: transparent;
    border: 1px dashed rgba(255,255,255,0.06);
    color: var(--muted);
}


.features {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.features article {
    background: var(--card);
    padding: 12px;
    border-radius: 10px;
    flex: 1 1 200px;
    border: 1px solid rgba(255,255,255,0.02);
}

.features h4 {
    margin-bottom: 6px;
}


.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(255,255,255,0.02);
}

.user-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.06);
    background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}

.display-name {
    font-weight: 700;
}

.display-email {
    font-size: 0.9rem;
    color: var(--muted);
}

.display-role {
    font-size: 0.85rem;
    color: var(--muted);
}


.motivation-card {
    margin-top: 14px;
    background: linear-gradient(135deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.03);
}

.quote {
    font-size: 1.05rem;
    font-weight: 600;
}

.meta {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 6px;
}


.role-card {
    padding: 12px;
    border-radius: 10px;
    background: var(--glass);
}

.mood-box {
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.01), transparent);
    border: 1px solid rgba(255,255,255,0.02);
}

.emoji-row {
    display: flex;
    gap: 8px;
    margin: 8px 0;
}

.emoji-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.04);
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 1.05rem;
    cursor: pointer;
}

.emoji-btn.selected {
    border-color: rgba(124,58,237,0.9);
    box-shadow: 0 6px 18px rgba(124,58,237,0.08);
    transform: translateY(-2px);
}

#moodText {
    width: 100%;
    min-height: 64px;
    padding: 10px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.03);
    color: inherit;
}


.booking-card {
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(0,0,0,0.12), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.02);
}

.booking-card input, .booking-card select {
    width: 100%;
    padding: 9px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.03);
    background: transparent;
    color: inherit;
    margin: 8px 0;
}


.appointments-section {
    margin-top: 12px;
}

.appointments-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.appointment-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
    border: 1px solid rgba(255,255,255,0.03);
}

.appointment-card .who {
    font-weight: 700;
}

.appointment-card .meta {
    font-size: 0.9rem;
    color: var(--muted);
}

.status {
    font-weight: 700;
    padding: 6px 8px;
    border-radius: 8px;
}

.status.pending {
    background: rgba(255,184,0,0.12);
    color: #ffb86b;
}

.status.approved {
    background: rgba(16,185,129,0.08);
    color: var(--success);
}

.status.rejected {
    background: rgba(239,68,68,0.06);
    color: var(--danger);
}

.controls button {
    margin-left: 8px;
}


@media (max-width: 900px) {
    .features {
        flex-direction: column;
    }
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .user-info {
        gap: 8px;
    }
    .avatar {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 520px) {
    body {
        padding: 12px;
    }
    .brand {
        font-size: 1.2rem;
    }
    .form-row input {
        min-width: 140px;
    }
}



.appointment-card {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    padding: 10px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
    border: 1px solid rgba(255,255,255,0.03);
}

.appointment-card .right {
    display: flex; 
    align-items: center;
    gap: 10px; 
}

.controls {
    display: flex;
    gap: 6px; 
}
.small-btn {
    padding: 6px 10px;
    font-size: 0.85rem;
}
.modal {
    display: flex; 
    z-index: 1000; 
}

.modal.hidden {
    display: none !important; 
}

.topbar {
    z-index: 10; 
    position: relative; 
}

.actions button {
    z-index: 20; 
    position: relative;
}

.topbar {
    z-index: 1002; 
    position: relative; 
}
.actions button {
    z-index: 1003; 
    position: relative;
}

.modal.hidden {
    display: none !important; 
    visibility: hidden !important;
}


.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(255,255,255,0.02);
}

.user-info {
    display: flex;
    gap: 12px;
    align-items: center;
}


.display-name {
    font-weight: 700;
    font-size: 1.4rem; 
    margin-bottom: 2px; 
}

.display-email {
    font-size: 0.95rem; 
    color: var(--muted);
}

.display-role {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 4px;
}