/* =========================================================================
   LAVACASCADE — css/sections/dashboard.css
   The dashboard's moving parts: loading spinner and the server rows
   (cloned from <template id="serverTemplate"> by js/components/dashboard.js).
   The page layout lives in css/sections/account.css.
   ========================================================================= */

.dash__spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--night-600);
    border-top-color: var(--lava-400);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =========================================
   ONE SERVER
   ========================================= */
.srv {
    display: grid;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-6);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0) 60%), var(--night-800);
    border: 1px solid var(--line);
    border-radius: 16px;
    transition: border-color var(--dur-fast) var(--ease);
}

.srv:hover {
    border-color: var(--line-strong);
}

.srv__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
}

.srv__name {
    min-width: 0;
    font-size: 1.12rem;
    overflow-wrap: anywhere;
}

.srv__manage {
    margin-left: auto;
}

.srv__block {
    width: 14px;
    height: 14px;
    flex: none;
    background: var(--grad-molten);
    border-radius: 4px;
    box-shadow: 0 0 14px rgba(255, 106, 26, 0.45);
}

.srv__meta {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.srv__addr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-3);
    padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4);
    background: var(--night-900);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.srv__addr code {
    flex: 1;
    min-width: 0;
    padding: 0;
    color: var(--text-strong);
    background: none;
    overflow-wrap: anywhere;
}

.srv__addr-label {
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--text-muted);
}

.srv__copy .icon,
.srv__copy svg {
    width: 15px;
    height: 15px;
}

.srv__bill {
    font-size: var(--fs-sm);
    color: var(--text-soft);
}

.srv__bill:empty {
    display: none;
}

.srv__bill.is-warn {
    color: var(--warn);
}

.srv__bill.is-bad {
    color: var(--bad);
}
