/* style.css - ZALVYUM PRIME VISUAL CORE */

:root {
    --obsidian: #050505;
    --charcoal: #121212;
    --emerald: #50C878;
    --emerald-dim: rgba(80, 200, 120, 0.1);
    --silver: #C0C0C0;
    --amber: #FFBF00;
    --steel: #333333;
}

body {
    background-color: var(--obsidian);
    color: var(--silver);
    font-family: 'Menlo', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    margin: 0;
    display: flex;
    height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* SIDEBAR */
.sidebar {
    width: 250px;
    background-color: var(--charcoal);
    border-right: 1px solid var(--steel);
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.logo {
    color: var(--emerald);
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 3rem;
    letter-spacing: 2px;
}

.menu-item {
    margin-bottom: 1rem;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.3s;
}
.menu-item:hover, .menu-item.active { opacity: 1; color: var(--emerald); }

/* MAIN CONTENT */
.main {
    flex: 1;
    padding: 2rem 4rem;
    overflow-y: auto;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--steel);
    padding-bottom: 1rem;
}

.status-badge {
    background-color: var(--emerald-dim);
    color: var(--emerald);
    padding: 0.5rem 1rem;
    border: 1px solid var(--emerald);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* --- GRID TÁCTICO COMPACTO (MEJORADO) --- */
.asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.asset-card {
    background: rgba(18, 18, 18, 0.8);
    border: 1px solid var(--steel);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 220px; /* Altura compacta fija */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.asset-card:hover {
    border-color: var(--emerald);
    box-shadow: 0 0 15px var(--emerald-dim);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #222;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.asset-name {
    font-family: 'Space Mono', monospace;
    font-size: 1.1rem;
    color: #fff;
    font-weight: bold;
    letter-spacing: -1px;
}

.asset-status {
    font-size: 0.7rem;
    background: rgba(80, 200, 120, 0.1);
    color: var(--emerald);
    padding: 2px 6px;
    border: 1px solid var(--emerald);
}

/* Reemplazo de la imagen gigante por un placeholder técnico */
.blueprint-placeholder {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #0a0a0a;
    border: 1px dashed #333;
    margin-bottom: 1rem;
    color: #444;
    font-family: monospace;
    font-size: 0.8rem;
    text-align: center;
    padding: 10px;
}

.blueprint-placeholder::after {
    content: "WAITING FOR INPUT...";
    animation: blink 2s infinite;
    font-size: 0.7rem;
    margin-top: 5px;
    color: var(--emerald);
}

@keyframes blink {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.action-btn {
    width: 100%;
    background: transparent;
    border: 1px solid var(--steel);
    color: var(--emerald);
    padding: 0.8rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.action-btn:hover {
    background: var(--emerald);
    color: #000;
    border-color: var(--emerald);
    font-weight: bold;
}

/* --- MODAL (VISOR TÁCTICO) --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal-card {
    background: var(--charcoal);
    border: 1px solid var(--emerald);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 50px rgba(80, 200, 120, 0.1);
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-card { transform: scale(1); }

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--steel);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(80, 200, 120, 0.05);
}

.modal-title { font-size: 1.5rem; color: white; font-weight: bold; letter-spacing: 1px; }

.close-btn {
    background: transparent; border: none;
    color: var(--silver); font-size: 1.5rem; cursor: pointer;
}
.close-btn:hover { color: var(--emerald); }

.modal-body { padding: 2rem; }

/* HUD UPGRADE PARA EL MODAL */
.blueprint-container {
    position: relative;
    width: 100%;
    height: 400px;
    background-color: #000;
    border: 1px solid var(--steel);
    margin-bottom: 2rem;
    overflow: hidden;
    padding: 0; 
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: 
        linear-gradient(rgba(80, 200, 120, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(80, 200, 120, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
}

#tactical-canvas {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

/* Esquinas Tácticas */
.hud-corner {
    position: absolute;
    width: 20px; height: 20px;
    border-color: var(--emerald);
    border-style: solid;
    z-index: 3;
    pointer-events: none;
}
.top-left { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.top-right { top: 10px; right: 10px; border-width: 2px 2px 0 0; }
.bottom-left { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; }
.bottom-right { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }

.scanner-line {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: var(--emerald);
    box-shadow: 0 0 10px var(--emerald);
    z-index: 4;
    animation: scan 4s infinite linear; 
    opacity: 0.5;
    pointer-events: none;
}

@keyframes scan {
    0% { top: 0%; }
    100% { top: 100%; }
}

.hud-data {
    position: absolute;
    bottom: 10px; right: 40px;
    font-family: monospace;
    color: var(--emerald);
    font-size: 0.6rem;
    z-index: 3;
    opacity: 0.8;
}

.tech-specs {
    background: #080808;
    padding: 1.5rem;
    border-left: 2px solid var(--emerald);
    font-family: 'Courier New', monospace;
    color: var(--silver);
    font-size: 0.9rem;
    line-height: 1.6;
}