/* ── SHARED REUSABLE UI COMPONENTS ── */

/* ── MODERN AUTHENTICATION WIDGET STYLES ── */
#authLock {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: radial-gradient(circle at 50% 50%, #0d1b3e 0%, #050b1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#authLock.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.auth-card {
    width: 380px;
    background: rgba(10, 20, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    gap: 32px;
    animation: auth-card-fade-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes auth-card-fade-in {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.auth-logo {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.auth-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin: 0;
}

.auth-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.2px;
}

.auth-input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    padding: 12px 16px;
    outline: none;
    transition: all 0.2s ease;
}

.auth-input:focus {
    border-color: #00ff88;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.15);
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.auth-submit-btn {
    background: #10b981;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.auth-submit-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}

.auth-submit-btn:active {
    background: #047857;
    transform: translateY(0);
}

.auth-submit-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.35);
    cursor: not-allowed;
    transform: none;
}

.auth-error-message {
    color: #ef4444;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    margin-top: 8px;
    display: none;
    animation: auth-shake 0.4s ease-in-out;
}

@keyframes auth-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* ── LOGOUT BUTTON ── */
.logout-btn {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 10001;
    background: var(--glass-base);
    backdrop-filter: var(--blur-soft);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, color 0.3s, border-color 0.3s,
                box-shadow 0.3s, transform 0.3s,
                opacity 0.6s ease, translate 0.6s ease;
}

.logout-btn:hover {
    background: #ff4b2b;
    color: white;
    border-color: #ff4b2b;
    transform: scale(1.05);
}

.logout-btn.logout-idle {
    opacity: 0;
    translate: -10px 0;
    pointer-events: none;
}

/* SHORTCUT MODAL (dashboard version) */
.shortcut-toggle {
    position: fixed;
    top: 24px;
    right: 24px;
    background: var(--glass-base);
    backdrop-filter: var(--blur-soft);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    outline: none;
}
.shortcut-toggle:hover {
    background: var(--gym);
    color: #0a1018;
    border-color: var(--gym);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(61, 214, 140, 0.4);
}
#shortcutModal {
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 18, 0.85);
    z-index: 25000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(16px);
    animation: fadeIn 0.3s ease;
}
#shortcutModal.open { display: flex; }
.shortcut-content {
    background: rgba(22, 32, 48, 0.9);
    backdrop-filter: blur(32px);
    border: 1px solid var(--glass-border-light);
    padding: 32px;
    border-radius: 32px;
    width: 340px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    position: relative;
}
.shortcut-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-bottom: 24px;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
}
.shortcut-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 1rem;
}
.shortcut-key {
    background: rgba(61, 214, 140, 0.12);
    border: 1px solid rgba(61, 214, 140, 0.3);
    padding: 4px 10px;
    border-radius: 8px;
    color: var(--gym);
    font-family: 'Space Grotesk', monospace;
    font-weight: 600;
    min-width: 36px;
    text-align: center;
}
.shortcut-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}
.shortcut-close:hover { color: var(--gym); }


