/* Brother's Tech Vault - Dark Theme & Offline Utility Styles */
:root {
    --compound-base: #080c14;
    --compound-surface: #0d131f;
    --compound-card: #121a2b;
    --compound-card-hover: #182238;
    --compound-border: #1e293b;
    --compound-subtle: #2a374f;
    --compound-emerald: #10b981;
    --compound-cyan: #06b6d4;
    --compound-indigo: #6366f1;
    --compound-amber: #f59e0b;
    --compound-rose: #f43f5e;
    --compound-muted: #94a3b8;
}

html,
body {
    background-color: var(--compound-base);
    color: #f8fafc;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: none;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Safe bottom padding on iOS/Android standalone PWA */
.safe-bottom {
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
}

/* Glassmorphism scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--compound-surface);
}

::-webkit-scrollbar-thumb {
    background: #223049;
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #334566;
}

/* Custom pulse glow */
.glow-emerald {
    box-shadow: 0 0 25px -5px rgba(16, 185, 129, 0.25);
}

.glow-cyan {
    box-shadow: 0 0 25px -5px rgba(6, 182, 212, 0.25);
}

/* Smooth modal entry animation */
.modal-overlay:not(.hidden) > div {
    animation: modalPop 0.16s ease-out;
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(6px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Toast notifications stack */
#toastContainer {
    pointer-events: none;
}

#toastContainer > div {
    pointer-events: auto;
    animation: toastSlide 0.2s ease-out;
}

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

/* Number input clean appearance */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    opacity: 0.4;
}
