:root {
    --astra-bg: #030303;
    --astra-accent: #7c3aed;
    --astra-accent-soft: #a78bfa;
    --astra-text: #ffffff;
    --astra-muted: #94a3b8;

    --glass-bg: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.14);
    --glass-blur: blur(24px) saturate(160%);
    --glass-shadow: 0 4px 24px rgba(0, 0, 0, 0.4),
                    inset 0 1px 0 rgba(255, 255, 255, 0.22),
                    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
    --glass-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.45),
                          0 0 24px rgba(124, 58, 237, 0.18),
                          inset 0 1px 0 rgba(255, 255, 255, 0.28),
                          inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

html, body {
    background-color: #050309;
    color: var(--astra-text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Scrollbars hidden everywhere (chat log, dropdowns, calendar grids, page scroll, ...) —
   scrolling itself stays fully functional via wheel/touch/keyboard, just no visible track.
   !important beats every per-page scrollbar-width/-webkit-scrollbar rule regardless of source
   order, so this is the one place that needs to change. */
* {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    scroll-behavior: smooth;
}
*::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* The animated glow (four drifting orbs) lives in BackgroundGlow.vue, mounted once at the
   app root — replaces the old static bg.jpg + two-blob gradient. Ensure page content sits
   above it. */
#app, .page, main, article {
    position: relative;
    z-index: 1;
}

.astra-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--glass-shadow);
}

/* ── The four canonical button types. Every button in the app uses one of these — no page
   defines its own bespoke button CSS. Base sizing matches in-card/in-form usage; a page that
   needs a larger hero CTA (e.g. PreLogin) adds a local size-only modifier, never a new palette. ── */
button {
    font-family: inherit;
}

.btn-astra,
.btn-astra-glass,
.btn-astra-neutral,
.btn-astra-danger {
    padding: 0.7rem 1.4rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
}

.btn-astra:disabled,
.btn-astra-glass:disabled,
.btn-astra-neutral:disabled,
.btn-astra-danger:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn-astra:focus-visible,
.btn-astra-glass:focus-visible,
.btn-astra-neutral:focus-visible,
.btn-astra-danger:focus-visible {
    outline: 2px solid var(--astra-accent-soft);
    outline-offset: 2px;
}

.btn-astra {
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.92), rgba(139, 92, 246, 0.78));
    color: white;
    border: none;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.45),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.15s, box-shadow 0.2s;
}

.btn-astra:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 0 28px rgba(124, 58, 237, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-astra:active:not(:disabled) {
    transform: translateY(0) scale(0.97);
    transition-duration: 0.08s;
}

/* Glass — indigo-tinted, translucent, no backdrop-filter of its own (so it never doubles up
   blur on whatever's behind it). Secondary action in the same colour family as .btn-astra. */
.btn-astra-glass {
    background: linear-gradient(135deg, rgba(49, 46, 129, 0.36), rgba(67, 56, 202, 0.24));
    color: #e0e7ff;
    border: 1px solid rgba(99, 102, 241, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
    transition: transform 0.15s, background 0.2s, border-color 0.2s;
}

.btn-astra-glass:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(49, 46, 129, 0.48), rgba(67, 56, 202, 0.34));
    border-color: rgba(99, 102, 241, 0.7);
    transform: translateY(-1px);
}

.btn-astra-glass:active:not(:disabled) {
    transform: translateY(0) scale(0.97);
    transition-duration: 0.08s;
}

/* Neutral — cancel/dismiss. Never the loudest control on screen. */
.btn-astra-neutral {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
    transition: background 0.18s, color 0.18s, transform 0.08s;
}

.btn-astra-neutral:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.85);
}

.btn-astra-neutral:active:not(:disabled) {
    transform: scale(0.97);
}

/* Danger — reserved for destructive actions: reject, delete, remove, archive. */
.btn-astra-danger {
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #fca5a5;
    transition: background 0.18s, transform 0.08s;
}

.btn-astra-danger:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.24);
}

.btn-astra-danger:active:not(:disabled) {
    transform: scale(0.97);
}
