/* VLabTech Backup & Restore — Admin Styles */

.vltbk-wrap h1 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

/* ── Cards ── */
.vltbk-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.vltbk-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: 4px solid #0073aa;
    border-radius: 4px;
    padding: 16px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,.07);
}

.vltbk-card h3 {
    margin: 0 0 10px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #666;
}

.vltbk-card p {
    margin: 4px 0;
    font-size: 15px;
    font-weight: 600;
    color: #1d2327;
}

.vltbk-card p.vltbk-sub,
.vltbk-card p.vltbk-msg {
    font-size: 12px;
    font-weight: 400;
    color: #777;
}

/* ── Badges ── */
.vltbk-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.vltbk-badge-success { background: #d4edda; color: #155724; }
.vltbk-badge-error   { background: #f8d7da; color: #721c24; }
.vltbk-badge-warning { background: #fff3cd; color: #856404; }

/* ── Sections ── */
.vltbk-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.vltbk-section h2 {
    margin-top: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
}

/* ── Warning Box ── */
.vltbk-warning-box {
    background: #fff8e1;
    border: 1px solid #ffcc02;
    border-left: 5px solid #ffcc02;
    border-radius: 4px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.vltbk-warning-box h3 {
    margin-top: 0;
    color: #856404;
}

.vltbk-warning-box ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.vltbk-warning-box li {
    margin-bottom: 6px;
    color: #533f03;
    font-size: 13px;
}

/* ── Info Box ── */
.vltbk-info-box {
    background: #f0f6fc;
    border-color: #0073aa;
    border-top-color: #0073aa;
}

/* ── Table ── */
.vltbk-table {
    border: 1px solid #e0e0e0 !important;
}

.vltbk-table th {
    background: #f9f9f9;
    font-weight: 600;
}

/* ── Danger Button ── */
.vltbk-danger-btn {
    background: #d63638 !important;
    border-color: #d63638 !important;
    color: #fff !important;
}

.vltbk-danger-btn:hover {
    background: #b32d2e !important;
    border-color: #b32d2e !important;
}

/* ── Log Box ── */
.vltbk-log-box {
    background: #1e1e2e;
    border-radius: 4px;
    padding: 12px;
    max-height: 600px;
    overflow-y: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    line-height: 1.6;
}

.vltbk-log-line {
    color: #cdd6f4;
    padding: 1px 0;
    word-break: break-all;
}

.vltbk-log-success { color: #a6e3a1; }
.vltbk-log-error   { color: #f38ba8; }
.vltbk-log-warning { color: #f9e2af; }

/* ── Responsive ── */
@media (max-width: 782px) {
    .vltbk-cards {
        grid-template-columns: 1fr;
    }
}

/* ── Progress bar ── */
.vltbk-progress-track {
    height: 22px;
    background: #e9ecef;
    border-radius: 11px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.12);
}

.vltbk-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0073aa 0%, #00a0d2 100%);
    border-radius: 11px;
    transition: width .5s ease;
    position: relative;
    overflow: hidden;
}

/* Animated shimmer on the bar */
.vltbk-progress-bar::after {
    content: '';
    position: absolute;
    top: 0; left: -60%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
    animation: vltbk-shimmer 1.6s infinite;
}

@keyframes vltbk-shimmer {
    0%   { left: -60%; }
    100% { left: 120%; }
}

/* ── Spinner ── */
.vltbk-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #e0e0e0;
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: vltbk-spin .8s linear infinite;
    flex-shrink: 0;
}

.vltbk-spinner.vltbk-spinner-done {
    border-color: #46b450;
    border-top-color: #46b450;
    animation: none;
}

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

/* ── Result boxes ── */
.vltbk-result-box {
    padding: 14px 18px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.7;
}

.vltbk-result-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.vltbk-result-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* ── Step log inside progress ── */
#vltbk-progress-steps {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    padding: 6px 10px;
}

#vltbk-progress-steps div {
    padding: 1px 0;
    color: #555;
    font-size: 12px;
}
