/**
 * Elite Design System for Password Fortress
 * Inspired by 1Password, Bitwarden, and Dashlane.
 */

:root {
    /* Core Palette: Deep Dark Standard */
    --elite-bg: #0B0F19;
    /* Deep Navy Canvas */
    --elite-surface: rgba(255, 255, 255, 0.03);
    /* Glass surface */
    --elite-surface-solid: #111827;
    /* Solid backup */

    --elite-primary: #145FE4;
    /* Vibrant Brand Blue */
    --elite-primary-glow: rgba(20, 95, 228, 0.4);

    --elite-accent: #00e5cc;
    /* Teal highlight */
    --elite-accent-indigo: #858df9;
    /* Indigo highlight */

    --elite-text-main: #F9FAFB;
    --elite-text-muted: #D1D5DB;
    /* Brightened for better contrast */
    --elite-text-dim: #9CA3AF;
    /* Brightened for better visibility */

    /* Layout Tokens */
    --elite-radius: 20px;
    --elite-radius-pill: 9999px;
    --elite-blur: blur(16px);
    --elite-border: 1px solid rgba(255, 255, 255, 0.08);

    /* Shadows */
    --elite-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    --elite-shadow-glow: 0 0 20px rgba(20, 95, 228, 0.2);
}

/* Base Overrides */
body.elite-mode {
    background-color: var(--elite-bg);
    color: var(--elite-text-main);
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    margin: 0;
    min-height: 100vh;
}

/* Mesh Gradient Background */
.mesh-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 0% 0%, rgba(20, 95, 228, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(133, 141, 249, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(11, 15, 25, 1) 0%, rgba(11, 15, 25, 1) 100%);
}

/* Elite Glass Panel */
.glass-panel {
    background: var(--elite-surface);
    backdrop-filter: var(--elite-blur);
    -webkit-backdrop-filter: var(--elite-blur);
    border: var(--elite-border);
    border-radius: var(--elite-radius);
    box-shadow: var(--elite-shadow);
}

/* Elite Inputs */
.elite-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 18px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.elite-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--elite-primary);
    box-shadow: var(--elite-shadow-glow);
}

/* Elite Buttons */
.elite-btn {
    background: var(--elite-primary);
    color: white;
    border: none;
    border-radius: var(--elite-radius-pill);
    padding: 14px 28px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
}

.elite-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--elite-primary-glow);
}

.elite-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.elite-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Typography Elite */
.h-elite {
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #FFF 0%, #9CA3AF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Micro-animations */
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.animate-elite {
    animation: fadeInSlide 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

/* Modal Overlay & Transitions */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 40px 20px;
}

.modal-overlay .modal,
.modal-overlay .modal-content {
    max-height: 85vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--elite-primary) transparent;
}

/* Custom Scrollbar for Webkit */
.modal-overlay .modal::-webkit-scrollbar,
.modal-overlay .modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-overlay .modal::-webkit-scrollbar-thumb,
.modal-overlay .modal-content::-webkit-scrollbar-thumb {
    background: var(--elite-primary);
    border-radius: 10px;
}

.modal-overlay.active {
    display: flex;
}