/* Hosting Admin panel — стили под dark theme /manage.
 * Полагается на переменные из manage.css. */

#tabHosting .hosting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin: 12px 0 20px;
}

.hosting-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 14px 16px;
}

.hosting-card-title {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hosting-big {
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.hosting-card-meta {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    line-height: 1.4;
}

.hosting-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.hosting-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.hosting-bar-fill {
    height: 100%;
    width: 0%;
    background: #34d399;
    border-radius: 4px;
    transition: width 0.4s ease, background 0.4s ease;
}

.hosting-bar-value {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    min-width: 48px;
    text-align: right;
}

.hosting-traffic {
    display: flex;
    gap: 16px;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 6px;
}

.hosting-traffic .hosting-arrow {
    color: #a78bfa;
    font-weight: 700;
}

.hosting-section-title {
    margin: 20px 0 10px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

/* Диски */
.hosting-disks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.hosting-disk {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 12px 14px;
}

.hosting-disk-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.hosting-disk-path {
    color: #fff;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
}

.hosting-disk-pct {
    color: #fff;
    font-weight: 700;
}

/* Окружение */
.hosting-env {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 6px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 12px 16px;
}

.hosting-env-row {
    display: flex;
    gap: 10px;
    padding: 3px 0;
    font-size: 0.85rem;
}

.hosting-env-k {
    color: rgba(255, 255, 255, 0.5);
    min-width: 120px;
}

.hosting-env-v {
    color: #fff;
    word-break: break-word;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.8rem;
}

/* Очистка */
.hosting-cleanup-note {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.82rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.hosting-cleanup {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.hosting-cleanup-btn {
    font-size: 0.85rem;
}

.hosting-cleanup-log {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 8px 10px;
    max-height: 200px;
    overflow-y: auto;
}

.hosting-log-line { padding: 1px 0; }
.hosting-log-line.ok   { color: #34d399; }
.hosting-log-line.warn { color: #fbbf24; }
.hosting-log-line.err  { color: #f87171; }
