/* Plugin Sync HML – Unitá Soluções Digitais */

#synchml-progress {
    margin-top: 1rem;
}

#synchml-log-output {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.82rem;
    white-space: pre-wrap;
    word-break: break-word;
    background: #1e1e1e;
    color: #d4d4d4;
    border-radius: 6px;
    padding: 0.75rem;
    min-height: 60px;
    max-height: 220px;
    overflow-y: auto;
}

#synchml-test-result {
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.synchml-config-section {
    writing-mode: horizontal-tb;
    transform: none;
}

/* ── Modais ──────────────────────────────────────────────────────────────── */

.synchml-modal-card {
    border-radius: 18px !important;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,.22);
}

/* Cabeçalho do modal de confirmação */
.synchml-modal-header-danger {
    background: linear-gradient(135deg, #b71c1c 0%, #e53935 100%);
    color: #fff;
    text-align: center;
    padding: 2rem 1.5rem 1.5rem;
}

.synchml-warn-icon {
    margin-bottom: .5rem;
}

.synchml-warn-icon i {
    font-size: 2.6rem;
    animation: synchml-warn-pulse 1.8s ease-in-out infinite;
}

.synchml-modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 .2rem;
}

.synchml-modal-subtitle {
    font-size: .85rem;
    opacity: .8;
    margin: 0;
}

/* Lista de ações */
.synchml-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.synchml-checklist li {
    font-size: .88rem;
    color: #555;
    padding: .3rem 0;
    display: flex;
    align-items: flex-start;
    gap: .55rem;
}

.synchml-checklist li i {
    width: 1rem;
    text-align: center;
    color: #9e9e9e;
    font-size: .8rem;
    margin-top: .15rem;
    flex-shrink: 0;
}

/* Checkbox personalizado */
.synchml-confirm-check-label {
    display: flex;
    align-items: center;
    gap: .6rem;
    cursor: pointer;
    font-size: .88rem;
    color: #333;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: .6rem .8rem;
    transition: background .15s, border-color .15s;
    user-select: none;
}

.synchml-confirm-check-label:hover {
    background: #f0f0f0;
}

.synchml-confirm-check-input {
    display: none;
}

.synchml-confirm-check-box {
    width: 1.3rem;
    height: 1.3rem;
    min-width: 1.3rem;
    border: 2px solid #bdbdbd;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, border-color .15s;
    font-size: .7rem;
    color: #fff;
}

.synchml-confirm-check-box i {
    opacity: 0;
    transition: opacity .15s;
}

.synchml-confirm-check-input:checked + .synchml-confirm-check-box {
    background: #e53935;
    border-color: #e53935;
}

.synchml-confirm-check-input:checked + .synchml-confirm-check-box i {
    opacity: 1;
}

/* Ícone animado do modal de resultado */
.synchml-result-icon {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.synchml-result-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 4px solid currentColor;
    opacity: .25;
    animation: synchml-ring-grow .5s cubic-bezier(.22,.61,.36,1) both;
}

.synchml-result-glyph {
    font-size: 2.4rem;
    position: relative;
    z-index: 1;
    animation: synchml-icon-pop .55s cubic-bezier(.22,.61,.36,1) .1s both;
}

.synchml-result-success { color: #2e7d32; }
.synchml-result-error   { color: #c62828; }

.synchml-countdown {
    font-size: .82rem;
    color: #9e9e9e;
    margin: .4rem 0 0;
}

/* Resumo expansível */
.synchml-result-details summary {
    cursor: pointer;
    font-size: .85rem;
    color: #757575;
    padding: .25rem 0;
    outline: none;
}

.synchml-result-details summary:hover {
    color: #424242;
}

.synchml-result-pre {
    font-size: .8rem;
    background: #f5f5f5;
    color: #333;
    border-radius: 8px;
    padding: .75rem;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 200px;
    overflow-y: auto;
    margin-top: .5rem;
    border: 1px solid #e0e0e0;
}

/* ── Animações ──────────────────────────────────────────────────────────── */

@keyframes synchml-warn-pulse {
    0%, 100% { transform: scale(1);    }
    50%       { transform: scale(1.12); }
}

@keyframes synchml-icon-pop {
    0%   { transform: scale(0);    opacity: 0; }
    60%  { transform: scale(1.18);             }
    100% { transform: scale(1);    opacity: 1; }
}

@keyframes synchml-ring-grow {
    from { transform: scale(.5); opacity: 0;   }
    to   { transform: scale(1);  opacity: .25; }
}
