@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #0f172a;
    color: #f1f5f9;
}

.node-group {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(51, 65, 85, 0.5);
    transition: all 0.3s ease;
}

.gpu-tank-container {
    height: 180px;
    width: 50px;
    background: #020617;
    border: 2px solid #334155;
    position: relative;
    border-radius: 6px;
    overflow: visible;
    display: flex;
    flex-direction: column-reverse;
}

.tank-segment {
    width: 100%;
    transition: height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    cursor: help;
}

[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    background: #000;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    white-space: normal;
    width: 200px;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    text-align: center;
}

.tank-segment[data-tooltip]::after {
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
}

.strat-btn[data-tooltip]::after,
.tooltip-label[data-tooltip]::after,
#systemStatusBadge[data-tooltip]::after {
    left: 50%;
    top: 110%;
    transform: translateX(-50%);
}

[data-tooltip]:hover::after {
    opacity: 1;
}

.oom-glow {
    animation: glow-red 1.5s infinite alternate;
}

@keyframes glow-red {
    from {
        border-color: #334155;
        box-shadow: 0 0 0 rgba(239, 68, 68, 0);
    }
    to {
        border-color: #ef4444;
        box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
    }
}

input[type=range] {
    accent-color: #3b82f6;
}

.strat-btn.active-strat {
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
}
