/* ui/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=JetBrains+Mono&display=swap');

:root {
    --primary: #e0e0e0;
    --bg-glass: rgba(15, 15, 18, 0.95);
    --panel-glass: rgba(20, 20, 24, 0.4);
    --border: rgba(255, 255, 255, 0.06);
    --text-dim: #8b8b93;
    --accent: #e0e0e0;
}

body { 
    margin: 0; 
    font-family: 'Inter', sans-serif; 
    color: var(--primary); 
    background: transparent; 
    overflow: hidden; 
    user-select: none;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.5px;
}

#wrapper {
    width: 100vw; 
    height: 100vh;
    display: none; 
    align-items: center; 
    justify-content: center;
    background: rgba(0, 0, 0, 0.3); 
    backdrop-filter: none; /* Blur removed */
    opacity: 0;
    transition: opacity 0.3s ease;
}

#wrapper.visible {
    opacity: 1;
}

.line-wrapper {
    width: 850px; 
    height: 520px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    display: flex; 
    position: relative;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    overflow: hidden;
    transform: scale(0.9); 
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#wrapper.visible .line-wrapper {
    transform: scale(1);
}

.sidebar {
    width: 260px;
    background: var(--panel-glass);
    border-right: 1px solid var(--border);
    display: flex; 
    flex-direction: column;
}

.brand-zone { 
    padding: 30px 35px; 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}

.brand-logo { 
    background: var(--primary); 
    color: #000; 
    padding: 10px; 
    font-size: 18px; 
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.main-name { font-weight: 800; font-size: 15px; letter-spacing: 1px; line-height: 1.2; }
.sub-name { font-size: 9px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 2px; font-weight: 600; }

.nav-stack { flex: 1; padding: 10px 15px; display: flex; flex-direction: column; gap: 5px;}
.nav-item {
    padding: 14px 20px; font-size: 12px; font-weight: 600;
    color: var(--text-dim); cursor: pointer; transition: 0.3s ease;
    display: flex; align-items: center; gap: 15px;
    border-radius: 8px;
}

.nav-item.active { 
    color: var(--primary); 
    background: rgba(255,255,255,0.08); 
    box-shadow: inset 3px 0 0 var(--primary); 
}

.status-container { padding: 25px 35px; border-top: 1px solid var(--border); background: rgba(0,0,0,0.2); }
.status-label { display: flex; justify-content: space-between; font-size: 10px; margin-bottom: 12px; font-weight: 600; color: var(--text-dim); }

.integrity-bar { width: 100%; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; }
.integrity-bar .fill { width: 100%; height: 100%; background: var(--primary); }

.core-version { margin-top: 20px; font-size: 9px; color: rgba(255, 255, 255, 0.15); text-align: center; font-family: 'JetBrains Mono', monospace; }

.main-content { 
    flex: 1; padding: 40px; 
    display: flex;
    flex-direction: column;
}

.display-compact {
    background: linear-gradient(180deg, rgba(20,20,25,0.6) 0%, rgba(10,10,12,0.8) 100%); 
    padding: 30px; 
    border: 1px solid var(--border);
    margin-bottom: 20px; 
    border-radius: 12px;
}

.meta-row { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-dim); font-weight: 600; }
.status-indicator { display: flex; align-items: center; gap: 8px; }
.dot { width: 7px; height: 7px; background: #333; border-radius: 50%; }
.dot.active { background: var(--primary); box-shadow: 0 0 10px rgba(224, 224, 224, 0.3); }

#dirty-val { font-size: 28px; font-weight: 800; margin: 15px 0 5px 0; color: #fff; }
.subtitle { font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }

.input-minimal {
    background: rgba(0,0,0,0.4); 
    border: 1px solid var(--border);
    padding: 15px 20px; display: flex; align-items: center; gap: 15px; margin-bottom: 15px;
    border-radius: 10px;
    transition: border-color 0.3s ease;
}

.input-minimal input { background: none; border: none; color: #fff; width: 100%; outline: none; font-size: 14px; }

#max-btn {
    background: rgba(255,255,255,0.05); border: 1px solid var(--border);
    color: var(--primary); padding: 4px 8px; font-size: 10px; border-radius: 4px; cursor: pointer;
}

.calculation-box {
    background: rgba(0,0,0,0.2); border-radius: 10px; padding: 15px; margin-bottom: 20px;
    border: 1px solid var(--border);
}

.calc-row { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-dim); margin-bottom: 8px; }
.calc-row.highlighted { color: var(--primary); font-weight: 700; border-top: 1px solid var(--border); padding-top: 8px; }

.btn-primary { 
    background: var(--primary); color: #000; border: none; width: 100%;
    padding: 16px; font-size: 12px; font-weight: 800; border-radius: 8px;
    text-transform: uppercase; letter-spacing: 1px; cursor: pointer;
    transition: 0.2s;
}

.btn-primary:hover { background: #fff; transform: translateY(-1px); }

.progress-info { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-dim); margin-bottom: 8px; }
.progress-track { width: 100%; height: 4px; background: rgba(255,255,255,0.05); border-radius: 2px; overflow: hidden; }
#progress-bar { width: 0%; height: 100%; background: var(--primary); transition: width 0.1s linear; }

.close-btn { 
    position: absolute; top: 15px; right: 20px; 
    background: none; border: none; color: var(--text-dim); 
    font-size: 20px; cursor: pointer; transition: 0.3s;
}
.close-btn:hover { color: #fff; transform: rotate(90deg); }

