/* ============================================
   Data Archiver Styles
   v5.0 - Unified black/red/white theme
   ============================================ */

/* Main Modal */
#archiver-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.archiver-content {
    background: #0a0a1a;
    border: 1px solid #333;
    border-top: 2px solid #e63946;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 520px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.archiver-content h2 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Date inputs */
.arch-date-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: center;
}

.arch-date-row label {
    font-size: 13px;
    color: #888;
    min-width: 40px;
}

.arch-date-row input[type="date"] {
    background: #111;
    border: 1px solid #333;
    color: #e0e0e0;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;
    flex: 1;
}

.arch-date-row input[type="date"]:focus {
    outline: none;
    border-color: #e63946;
}

/* Preview section */
#archiver-preview {
    background: #111;
    border: 1px solid #222;
    border-left: 3px solid #e63946;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
}

.arch-preview-row {
    padding: 3px 0;
    font-size: 13px;
    color: #ccc;
}

.arch-preview-row strong {
    color: #fff;
    margin-right: 6px;
}

/* Status text */
#archiver-status {
    font-size: 13px;
    color: #e63946;
    margin: 8px 0;
    min-height: 20px;
}

/* Buttons */
.arch-btn-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.arch-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.arch-btn:hover { opacity: 0.85; }
.arch-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.arch-btn-preview {
    background: #e63946;
    color: #fff;
}

.arch-btn-download {
    background: #fff;
    color: #0a0a1a;
}

.arch-btn-wipe {
    background: #ff5252;
    color: #fff;
}

.arch-btn-cancel {
    background: #222;
    border: 1px solid #333;
    color: #ccc;
}

.arch-btn-cancel:hover {
    border-color: #e63946;
    color: #fff;
}

/* Wipe confirmation modal */
#archiver-wipe-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10001;
    justify-content: center;
    align-items: center;
}

.archiver-wipe-content {
    background: #0a0a1a;
    border: 2px solid #e63946;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 440px;
    text-align: center;
}

.archiver-wipe-content h2 {
    color: #e63946;
    margin-bottom: 12px;
}

#archiver-wipe-count {
    font-size: 14px;
    color: #e0e0e0;
    margin-bottom: 12px;
    line-height: 1.5;
}

.archiver-wipe-warning {
    font-size: 12px;
    color: #ff8a8a;
    margin-bottom: 16px;
    font-style: italic;
}

#archiver-wipe-status {
    font-size: 13px;
    color: #ff8a8a;
    margin: 8px 0;
    min-height: 20px;
}

.arch-wipe-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 16px;
}