/* ========================================================================== */
/* ADMIN --> BACKUPS                                                  */
/* ========================================================================== */

.backup-wrapper {
    padding: 60px 70px;
    margin-left: var(--sidenav-width);
    margin-top: var(--topnav-height);
    margin-bottom: 300px;
}

@media (max-width: 991.98px) {
    .backup-wrapper {
         padding: 24px var(--page-gutter);
    }
}

/* section 1 : HEADER */

.backup-header h1 {
    font-size: 2.6rem;
    font-weight: 650;
    color: #032f4f;
    margin-bottom: 6px;
}

.backup-sub {
    max-width: 700px;
    font-size: 1.1rem;
    color: #4f6b80;
    line-height: 1.6;
}

/* sections / titles */

.backup-section-title {
    font-size: 1.24rem;
    text-transform: uppercase;
    letter-spacing: 0.07rem;
    font-weight: 700;
    color: #022a46;
    margin-bottom: 18px;
    margin-top: 40px;
}

/* section 2 : OVERVIEW CARDS */

.backup-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px; 
}

.backup-card {
    background: white;
    padding: 20px;
    border-radius: 14px;
    border: 1px solid rgba(2, 42, 70, 0.10);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    transition: transform 0.18s, box-shadow 0.18s;
}

.backup-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.10);
}

    .backup-card h3 {
        font-size: 0.92rem;
        font-weight: 750;
        letter-spacing: 0.05rem;
        text-transform: uppercase;
        color: rgba(2, 42, 70, 0.68);
        margin-bottom: 8px;
    }

.backup-value {
    font-size: 1.55rem;
    font-weight: 800;
    color: #032f4f;
    margin-top: 2px;
    line-height: 1.15;
}

.backup-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 750;
    font-size: 0.85rem;
    border: 1px solid transparent;
    margin-top: 6px;
}

.backup-ok {
    background: rgba(34, 197, 94, 0.14);
    color: #15803d;
    border-color: rgba(34, 197, 94, 0.22);
}

.backup-warning {
    background: rgba(245, 158, 11, 0.16);
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.25);
}

.backup-failed {
    background: rgba(239, 68, 68, 0.14);
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.24);
}

/* storage card */
.storage-card {
    text-align: center;
}

    .storage-card canvas {
        width: 160px !important;
        height: 160px !important;
        margin: 15px auto 20px auto;
    }

/* capacity bar */
.capacity-bar {
    width: 100%;
    height: 30px;
    background: #f3f5f8; 
    border: 1px solid rgba(2, 42, 70, 0.12);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    margin-top: 10px;
}

.cap-segment {
    height: 100%;
    width: 0;
    transition: width 1.2s cubic-bezier(0.25, 1, 0.3, 1);
}

    .cap-segment.full {
        background: #4f8bff;
    }

    .cap-segment.inc {
        background: #4c5fcf;
    }

    .cap-segment.logs {
        background: #8fb3ff;
    }

    .cap-segment.free {
        background: #c7d9ff;
    }

.capacity-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 12px;
    font-size: 0.85rem;
    color: rgba(2, 42, 70, 0.70);
}

    .capacity-legend span {
        display: flex;
        align-items: center;
        gap: 6px;
    }

        .capacity-legend span::before {
            content: "";
            width: 12px;
            height: 12px;
            border-radius: 3px;
            display: inline-block;
            box-shadow: 0 1px 2px rgba(0,0,0,0.15);
        }

    .capacity-legend .full::before {
        background: #4f8bff;
    }

    .capacity-legend .inc::before {
        background: #6d83ff;
    }

    .capacity-legend .logs::before {
        background: #8fb3ff;
    }

    .capacity-legend .free::before {
        background: #c7d9ff;
    }

.cap-segment.full {
    transition-delay: 0.05s;
}

.cap-segment.inc {
    transition-delay: 0.15s;
}

.cap-segment.logs {
    transition-delay: 0.25s;
}

.cap-segment.free {
    transition-delay: 0.35s;
}

/* TABLES — Base styles are centralized in admin-shared.css */
/* This section intentionally removed; see admin-shared.css for .backup-table styles */

/* Dark mode → css/dark/admin/dark-admin-backups.css */


