/* Font definitions pointing to local downloaded woff2 files */
@font-face {
    font-family: 'Inter';
    src: url('fonts/inter.woff2') format('woff2');
    font-weight: 300 700;
}
@font-face {
    font-family: 'Fira Code';
    src: url('fonts/firacode.woff2') format('woff2');
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #181920;
}
::-webkit-scrollbar-thumb {
    background: #383a4c;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6272a4;
}

/* Custom Beveled Cards - Dracula Theme Shadows */
.beveled-card {
    background-color: #282a36;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.45);
    border-right: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    border-radius: 12px;
}

/* SVG Line Chart styling (Telemetry) */
.chart-line {
    fill: none;
    stroke: #bd93f9;
    stroke-width: 2;
    transition: d 0.3s ease;
}

.chart-area {
    fill: url(#chart-gradient);
    opacity: 0.15;
}

.grid-line {
    stroke: rgba(255, 255, 255, 0.03);
    stroke-width: 1;
}

/* Simulated terminal console & CRT scanlines */
.console-mockup {
    background: #0f1015;
    border: 1px solid #383a4c;
    border-radius: 8px;
    padding: 20px;
    font-family: 'Fira Code', monospace;
    color: #50fa7b;
    overflow-y: auto;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.8);
    position: relative;
}

.console-mockup::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px;
    z-index: 2;
    pointer-events: none;
}

.console-line {
    margin-bottom: 5px;
    font-size: 12px;
    line-height: 1.4;
    white-space: pre-wrap;
}

.console-line.input::before {
    content: "root@pve-01:~# ";
    color: #bd93f9;
    font-weight: bold;
}

.console-line.error {
    color: #ff5555;
}

.console-line.info {
    color: #8be9fd;
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: #50fa7b;
    animation: blink 1s infinite;
    vertical-align: middle;
}

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

/* Active status styles for Tree Rows and Navigation buttons */
.nav-btn.active {
    background-color: #21222c;
    color: #bd93f9 !important;
    font-weight: 600;
}

.tree-row.selected {
    background-color: #282a36;
    color: #bd93f9 !important;
    font-weight: 500;
    border-left: 3px solid #bd93f9;
}

/* Tasks Panel Collapse Layout Grid Toggle Override */
#app-container.tasks-collapsed {
    grid-template-rows: 55px 1fr 35px !important;
}

/* PVE telemetry gauge progress bar animations */
.progress-bar-container {
    width: 100%;
    background: #181920;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #383a4c;
}

.progress-bar-fill {
    height: 100%;
    background: #bd93f9;
    width: 0%;
    transition: width 0.4s ease;
}

.progress-bar-fill.warning {
    background: #ffb86c;
}

.progress-bar-fill.danger {
    background: #ff5555;
}
