/* Altaris Cleaner — Admin CSS */

:root {
    --ac-primary:     #2271b1;
    --ac-danger:      #b32d2e;
    --ac-success:     #00a32a;
    --ac-warn:        #dba617;
    --ac-bg:          #f6f7f7;
    --ac-card-bg:     #fff;
    --ac-border:      #c3c4c7;
    --ac-radius:      4px;
    --ac-shadow:      0 1px 3px rgba(0,0,0,.08);
}

.altaris-cleaner-wrap h1 {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Grid ─────────────────────────────────── */

.ac-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

/* ── Card ─────────────────────────────────── */

.ac-card {
    background: var(--ac-card-bg);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius);
    box-shadow: var(--ac-shadow);
    padding: 20px 24px;
    margin-bottom: 16px;
}

.ac-card h2 {
    margin-top: 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #50575e;
    border-bottom: 1px solid var(--ac-border);
    padding-bottom: 8px;
}

/* ── Buttons ──────────────────────────────── */

.ac-btn-danger {
    background: var(--ac-danger) !important;
    border-color: var(--ac-danger) !important;
    color: #fff !important;
}
.ac-btn-danger:hover {
    background: #8b1e1e !important;
    border-color: #8b1e1e !important;
}
.ac-btn-danger:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* ── Notices ──────────────────────────────── */

.ac-notice-warn {
    color: var(--ac-warn);
    font-style: italic;
}

.ac-notice-success {
    color: var(--ac-success);
}

.ac-notice-error {
    color: var(--ac-danger);
}

/* ── Badge ────────────────────────────────── */

.ac-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    background: var(--ac-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

/* ── Scan Results ─────────────────────────── */

.ac-scan-results {
    margin-top: 12px;
}

.ac-result-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

#ac-result-list .ac-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f1;
    font-size: 13px;
}

#ac-result-list .ac-item:last-child {
    border-bottom: none;
}

.ac-item-meta {
    color: #8c8f94;
    font-size: 11px;
    margin-left: auto;
}

/* ── Log ──────────────────────────────────── */

.ac-log-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

/* ── Progress bar ─────────────────────────── */

.ac-progress-wrap {
    background: #f0f0f1;
    border-radius: 3px;
    height: 6px;
    margin: 8px 0;
    overflow: hidden;
}

.ac-progress-bar {
    background: var(--ac-primary);
    height: 100%;
    width: 0;
    transition: width .3s ease;
}

/* ── Spinner ──────────────────────────────── */

.ac-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #c3c4c7;
    border-top-color: var(--ac-primary);
    border-radius: 50%;
    animation: ac-spin .7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

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

/* ── Modal ──────────────────────────────────── */

#ac-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#ac-modal {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0,0,0,.22);
    padding: 32px 36px 28px;
    max-width: 420px;
    width: 90%;
    text-align: center;
}

#ac-modal-icon { font-size: 36px; margin-bottom: 18px; margin-top: 4px; }

#ac-modal h3 {
    margin: 0 0 10px;
    font-size: 17px;
    color: #1d2327;
}

#ac-modal p {
    color: #50575e;
    font-size: 14px;
    margin: 0 0 24px;
    line-height: 1.6;
}

.ac-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.ac-modal-actions .button { min-width: 100px; }
