/**
 * E.V.A. PRO — Enhancement Styles v2.0
 * DGZ Engineering Lab × Antigravity Engine © 2026
 *
 * Styles for: Year Selector, Command Palette, Drag & Drop Zone
 */

/* ═══════════════════════════════════════════
   YEAR SELECTOR (Dynamic IPC)
   ═══════════════════════════════════════════ */
.year-selector-inline {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
    padding-left: 0.75rem;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.year-sel-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.year-sel-label {
    font-size: 0.45rem;
    font-weight: 700;
    color: var(--text-dim, #64748B);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.year-select {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(0, 242, 254, 0.04);
    color: var(--primary, #00F2FE);
    border: 1px solid rgba(0, 242, 254, 0.15);
    border-radius: 6px;
    padding: 3px 22px 3px 8px;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    min-width: 65px;
    text-align: center;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300F2FE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 4px center;
    background-size: 11px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.year-select:hover,
.year-select:focus {
    background-color: rgba(0, 242, 254, 0.12);
    border-color: var(--primary, #00F2FE);
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.15);
}

.year-select option {
    background-color: #0a0f1a;
    color: var(--text-main, #F1F5F9);
    font-family: 'Space Mono', monospace;
}

.year-arrow {
    color: var(--primary, #00F2FE);
    font-size: 0.85rem;
    font-weight: 900;
    opacity: 0.6;
    margin: 0 2px;
}

/* Responsive: Stack year selectors on small KPI rows */
@media (max-width: 1200px) {
    .year-selector-inline {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        margin-top: 0.25rem;
    }
}

@media (max-width: 600px) {
    .year-selector-inline {
        width: 100%;
        justify-content: center;
        padding-top: 0.25rem;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        border-left: none;
    }
}

/* ═══════════════════════════════════════════
   COMMAND PALETTE (Ctrl+K)
   ═══════════════════════════════════════════ */
#cmd-palette-overlay {
    position: fixed;
    inset: 0;
    z-index: 100001;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    animation: cmdFadeIn 0.2s ease-out;
}

@keyframes cmdFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cmd-palette {
    width: min(560px, 90vw);
    background: rgba(10, 15, 26, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(0, 242, 254, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: cmdSlideIn 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes cmdSlideIn {
    from {
        transform: translateY(-20px) scale(0.97);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.cmd-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-dim, #64748B);
}

.cmd-header svg {
    flex-shrink: 0;
    opacity: 0.5;
}

.cmd-header input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main, #F1F5F9);
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
}

.cmd-header input::placeholder {
    color: var(--text-dim, #64748B);
    opacity: 0.6;
}

.cmd-header kbd {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 2px 8px;
    font-size: 0.65rem;
    font-family: 'Space Mono', monospace;
    color: var(--text-dim, #64748B);
    font-weight: 700;
}

.cmd-list {
    max-height: 340px;
    overflow-y: auto;
    padding: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary, #00F2FE) transparent;
}

.cmd-list::-webkit-scrollbar {
    width: 3px;
}

.cmd-list::-webkit-scrollbar-thumb {
    background: var(--primary, #00F2FE);
    border-radius: 10px;
}

.cmd-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    color: var(--text-main, #F1F5F9);
}

.cmd-item:hover,
.cmd-item.selected {
    background: rgba(0, 242, 254, 0.06);
}

.cmd-item.selected {
    outline: 1px solid rgba(0, 242, 254, 0.15);
}

.cmd-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.cmd-name {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
}

.cmd-shortcut {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    padding: 2px 8px;
    font-size: 0.6rem;
    font-family: 'Space Mono', monospace;
    color: var(--text-dim, #64748B);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.cmd-footer {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 0.65rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.6rem;
    color: var(--text-dim, #64748B);
    font-family: 'Space Mono', monospace;
}

.cmd-footer kbd {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 0.55rem;
    font-weight: 700;
    margin-right: 3px;
}

/* ═══════════════════════════════════════════
   DRAG & DROP ZONE
   ═══════════════════════════════════════════ */
#eva-drop-zone {
    position: absolute;
    inset: 0;
    z-index: 50;
    background: rgba(0, 242, 254, 0.03);
    backdrop-filter: blur(8px);
    border: 2px dashed rgba(0, 242, 254, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

#eva-drop-zone.active {
    opacity: 1;
    pointer-events: all;
    border-color: var(--primary, #00F2FE);
    background: rgba(0, 242, 254, 0.06);
    box-shadow: inset 0 0 40px rgba(0, 242, 254, 0.05);
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary, #00F2FE);
    animation: dropBounce 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes dropBounce {
    from {
        transform: translateY(10px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.drop-label {
    font-size: 1rem;
    font-weight: 800;
    font-family: 'Hanken Grotesk', sans-serif;
    letter-spacing: 0.5px;
}

.drop-sub {
    font-size: 0.7rem;
    font-family: 'Space Mono', monospace;
    opacity: 0.5;
    letter-spacing: 1px;
}

/* ═══════════════════════════════════════════
   COLUMN VISIBILITY CONTROLS
   ═══════════════════════════════════════════ */
.col-hidden { display: none !important; }

.column-selector-btn {
    position: relative;
}

.column-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    background: rgba(10, 15, 26, 0.98);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    min-width: 220px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    margin-top: 0.5rem;
    display: none;
    animation: fadeIn 0.2s ease-out;
}

.column-menu.active {
    display: block;
}

.column-menu-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary, #00F2FE);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.column-opt {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    user-select: none;
}

.column-opt:hover {
    background: rgba(255, 255, 255, 0.05);
}

.column-opt input {
    accent-color: var(--primary, #00F2FE);
    width: 14px;
    height: 14px;
}

.column-opt span {
    font-size: 0.75rem;
    color: var(--text-main, #F1F5F9);
}


