/* Loomah ID Físico — Frontend */

.lif-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.lif-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    margin-bottom: 20px;
}
.lif-card h3 { margin-top: 0; font-size: 20px; color: #1d2327; }

/* Progresso */
.lif-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    position: relative;
}
.lif-steps::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}
.lif-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: #999;
    position: relative;
    z-index: 1;
}
.lif-step span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 6px;
}
.lif-step.active span  { background: #2271b1; color: #fff; }
.lif-step.active       { color: #2271b1; font-weight: 600; }
.lif-step.completed span { background: #46b450; color: #fff; }

/* Campos */
.lif-field { margin-bottom: 16px; }
.lif-field label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 14px; color: #333; }
.lif-field input,
.lif-field select,
.lif-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
}

/* Botões */
.lif-btn-primary {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 11px 24px;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    transition: background .2s;
}
.lif-btn-primary:hover   { background: #135e96; }
.lif-btn-primary:disabled { opacity: .6; cursor: not-allowed; }

.lif-btn-secondary {
    background: #f6f7f7;
    color: #2271b1;
    border: 1px solid #c3c4c7;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.lif-btn-secondary:hover { background: #e0e0e0; }

/* Erros */
.lif-erro {
    background: #f8d7da;
    color: #58151c;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 14px;
    margin: 8px 0;
}
.lif-alerta { padding: 12px 16px; border-radius: 4px; margin: 12px 0; }

/* Dados do membro */
.lif-dados-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.lif-dado { display: flex; flex-direction: column; }
.lif-dado-label { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #888; margin-bottom: 2px; }
.lif-dado-valor { font-size: 15px; color: #1d2327; font-weight: 500; }
.lif-dado-foto img { max-width: 80px; border-radius: 4px; border: 1px solid #ddd; }

/* Dropzone */
.lif-dropzone {
    border: 2px dashed #c3c4c7;
    border-radius: 6px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    color: #666;
    transition: border-color .2s, background .2s;
}
.lif-dropzone:hover,
.lif-dropzone.lif-dragover { border-color: #2271b1; background: #f0f6ff; }

/* Resultado validação */
.lif-resultado-valido {
    background: #f0f9f0;
    border: 2px solid #46b450;
    border-radius: 8px;
    padding: 28px;
    text-align: center;
}
.lif-resultado-valido h3 { color: #46b450; margin-top: 8px; }
.lif-resultado-invalido {
    background: #fef0f0;
    border: 2px solid #dc3232;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
}
.lif-resultado-invalido h3 { color: #dc3232; }

.lif-selo {
    display: inline-block;
    background: #46b450;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    padding: 6px 24px;
    border-radius: 4px;
    transform: rotate(-3deg);
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    margin: 16px 0 8px;
}
.lif-data-validacao { font-size: 12px; color: #666; margin-top: 8px; }

/* Animação check */
.lif-check-anim { display: flex; justify-content: center; margin-bottom: 12px; }
.lif-check-anim svg { width: 72px; height: 72px; }
.lif-check-circle {
    stroke: #46b450; stroke-width: 2;
    stroke-dasharray: 166; stroke-dashoffset: 166;
    animation: lif-stroke .6s cubic-bezier(.65,0,.45,1) forwards;
    fill: none;
}
.lif-check-mark {
    stroke: #46b450; stroke-width: 2;
    stroke-dasharray: 48; stroke-dashoffset: 48;
    animation: lif-stroke .3s cubic-bezier(.65,0,.45,1) .8s forwards;
    stroke-linecap: round;
}
@keyframes lif-stroke { 100% { stroke-dashoffset: 0; } }

/* Código destaque */
.lif-codigo-destaque {
    font-family: monospace;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    background: #f0f0f0;
    padding: 10px 20px;
    border-radius: 4px;
    display: inline-block;
    margin: 8px 0;
}

/* Sucesso */
.lif-sucesso { text-align: center; }
.lif-sucesso h3 { color: #46b450; }

/* Histórico */
.lif-historico { display: flex; flex-direction: column; gap: 8px; }
.lif-historico-item {
    background: #f6f7f7;
    border-radius: 4px;
    padding: 10px 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 13px;
}
.lif-historico-data  { color: #888; white-space: nowrap; }
.lif-historico-status { font-weight: 600; color: #1d2327; }
.lif-historico-obs   { color: #555; flex: 1 0 100%; font-style: italic; }

/* Loading */
.lif-loading { text-align: center; padding: 30px; color: #666; }
.lif-spinner {
    width: 36px; height: 36px;
    border: 3px solid #e0e0e0;
    border-top-color: #2271b1;
    border-radius: 50%;
    animation: lif-spin .8s linear infinite;
    margin: 0 auto 12px;
}
@keyframes lif-spin { 100% { transform: rotate(360deg); } }

@media (max-width: 600px) {
    .lif-dados-grid { grid-template-columns: 1fr; }
    .lif-steps { gap: 0; }
    .lif-step  { font-size: 10px; }
    .lif-step span { width: 26px; height: 26px; font-size: 12px; }
}
