/**
 * /assets/css/admin-import-export.css
 *
 * Purpose:  Styling fuer Admin Import/Export Tab + Modal
 * Deps:     app.css (variables)
 * Load:     index.php
 * Version:  1.0.0
 */

/* ── Action Buttons (Export / Import) ── */
.ie-action-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    color: #c9d1d9;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    backdrop-filter: blur(6px);
}

.ie-action-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ie-action-btn--export {
    border-left: 3px solid rgba(93, 214, 201, 0.5);
}

.ie-action-btn--export:hover {
    border-left-color: var(--accent, #5dd6c9);
    box-shadow: 0 4px 20px rgba(93, 214, 201, 0.15);
}

.ie-action-btn--import {
    border-left: 3px solid rgba(77, 163, 255, 0.5);
}

.ie-action-btn--import:hover {
    border-left-color: var(--exp, #4da3ff);
    box-shadow: 0 4px 20px rgba(77, 163, 255, 0.15);
}

.ie-action-btn__icon {
    font-size: 2rem;
    width: 3rem;
    text-align: center;
    flex-shrink: 0;
}

.ie-action-btn--export .ie-action-btn__icon { color: var(--accent, #5dd6c9); }
.ie-action-btn--import .ie-action-btn__icon { color: var(--exp, #4da3ff); }

.ie-action-btn__text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.ie-action-btn__text .small {
    opacity: 0.6;
}

/* ── Glass Card ── */
.ie-glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.25rem;
    backdrop-filter: blur(12px) saturate(1.3);
}

/* ── Module Selection Buttons ── */
.ie-module-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #8b949e;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.ie-module-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: #c9d1d9;
}

.ie-module-btn.--selected {
    background: rgba(93, 214, 201, 0.08);
    border-color: rgba(93, 214, 201, 0.4);
    color: var(--accent, #5dd6c9);
}

.ie-module-btn i {
    font-size: 1.25rem;
}

.ie-module-btn__label {
    font-weight: 500;
}

.ie-module-btn__count {
    font-size: 0.7rem;
}

/* ── Import Mode Buttons ── */
.ie-mode-btn {
    flex: 1;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #8b949e;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.ie-mode-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: #c9d1d9;
}

.ie-mode-btn.--selected {
    background: rgba(93, 214, 201, 0.08);
    border-color: rgba(93, 214, 201, 0.4);
    color: var(--accent, #5dd6c9);
}

.ie-mode-btn .small {
    font-size: 0.75rem;
}

/* ── Drop Zone ── */
.ie-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    text-align: center;
    transition: all 0.25s ease;
    color: #8b949e;
    min-height: 140px;
}

.ie-dropzone:hover,
.ie-dropzone.--dragover {
    border-color: rgba(77, 163, 255, 0.5);
    background: rgba(77, 163, 255, 0.05);
}

.ie-dropzone__icon {
    font-size: 2.5rem;
    color: var(--exp, #4da3ff);
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

/* ── Stat Cards ── */
.ie-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    text-align: center;
}

.ie-stat-card__icon {
    font-size: 1.1rem;
    color: var(--accent, #5dd6c9);
    opacity: 0.7;
}

.ie-stat-card__count {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e6edf3;
}

.ie-stat-card__label {
    font-size: 0.75rem;
    color: #8b949e;
}

/* ── Text color helpers ── */
.text-accent { color: var(--accent, #5dd6c9) !important; }

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    .ie-action-btn,
    .ie-module-btn,
    .ie-mode-btn,
    .ie-dropzone,
    .ie-stat-card {
        transition: none;
    }
}
