/* Slider S-5002 */
.s5002-slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin: 18px 0 0 0;
}
.s5002-slider-arrow {
    background: #f1f5f9;
    border: none;
    color: #0b5fff;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    cursor: pointer;
    padding: 0;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    user-select: none;
    box-shadow: 0 1px 4px rgba(11,95,255,0.07);
}
.s5002-slider-arrow:hover:not(:disabled) {
    background: #e0e7ff;
    color: #1e40af;
    box-shadow: 0 2px 8px rgba(11,95,255,0.13);
}
.s5002-slider-arrow:disabled {
    color: #cbd5e1;
    background: #f1f5f9;
    cursor: not-allowed;
}
.s5002-slider-dots {
    display: flex;
    gap: 8px;
}
.s5002-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e5e7eb;
    transition: background 0.2s;
    cursor: pointer;
}
.s5002-slider-dot.active {
    background: #0b5fff;
}
/* Bloco de cards S-5002 */
.s5002-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin: 32px 0 0 0;
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
}
.s5002-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(16,24,40,0.06);
    min-width: 320px;
    max-width: none;
    width: 100%;
    min-height: 250px;
    max-height: 420px;
    height: auto;
    padding: 16px 18px 16px 18px;
    display: flex;
    flex-direction: column;
    border: 1.5px solid #e5e7eb;
    box-sizing: border-box;
    justify-content: flex-start;
    overflow-y: auto;
}
@media (max-width: 900px) {
    .s5002-cards-grid {
        grid-template-columns: 1fr;
    }
    .s5002-card {
        max-width: 100%;
    }
}
.s5002-card-header { display:flex; justify-content:space-between; align-items:flex-start; }
.s5002-left { display:flex; gap:12px; align-items:center; }
.s5002-avatar { width:36px; height:36px; border-radius:50%; background:#eef2ff; display:flex; align-items:center; justify-content:center; color:#3b82f6; font-weight:700; }
.s5002-meta { font-size:13px; color:#111827; }
.s5002-cpf { font-size:12px; color:#6b7280; }
.s5002-badge { background:#e6f0ff; color:#0b5fff; padding:2px 6px; border-radius:999px; font-weight:600; font-size:13px; }
.s5002-badge.s5002-ano-badge,
.s5002-badge.s5002-purple { font-size:14.6px !important; }
.s5002-badge.s5002-purple { background: #7c3aed; color: #fff; }
.s5002-badge.s2501-verde { background: #10b981; color: #fff; }
.s5002-body { margin-top:0px; display:flex; justify-content:space-between; align-items:center; }
.s5002-numbers { background:#f8fafc; padding:8px 10px; border-radius:8px; flex:1; }
.s5002-total { font-size:20px; font-weight:700; color:#111827; }
.s5002-label { font-size:12px; color:#6b7280; }
.s5002-ir { font-size:18px; font-weight:700; color:#ef4444; margin-left:14px; }
.s5002-cta { margin-top:12px; color:#065f46; font-weight:600; text-decoration:underline; cursor:pointer; }
.s5002-small { font-size:12px; color:#6b7280; margin-top:6px; }

/* Accordion Empresa */
.empresa-accordion {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 16px;
    width: 100%;
    box-shadow: 0 1px 3px rgba(16,24,40,0.06);
}
.empresa-accordion-header {
    padding: 16px 18px;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}
.empresa-accordion-header:hover {
    background-color: #f9fafb;
}
.empresa-accordion-header.expanded {
    background-color: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
}
.empresa-accordion-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.empresa-accordion-content.expanded {
    max-height: 3000px;
    padding: 16px 18px;
    overflow-y: auto;
}
.empresa-toggle-icon {
    transition: transform 0.3s;
    color: #6b7280;
    font-size: 18px;
}
.empresa-toggle-icon.expanded {
    transform: rotate(180deg);
}

/* S-2501 cards usam os mesmos estilos do S-5002 para consistência */
.s2501-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin: 32px 0 0 0;
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
}
.s2501-card {
    /* Estilos da classe s2501-card são mapeados para s5002-card */
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(16,24,40,0.06);
    min-width: 320px;
    max-width: none;
    width: 100%;
    min-height: 250px;
    max-height: 420px;
    height: auto;
    padding: 16px 18px 16px 18px;
    display: flex;
    flex-direction: column;
    border: 1.5px solid #e5e7eb;
    box-sizing: border-box;
    justify-content: flex-start;
    overflow-y: auto;
}
@media (max-width: 900px) {
    .s2501-card { max-width: 100%; }
}
.s2501-card-header { display:flex; justify-content:space-between; align-items:flex-start; }
.s2501-left { display:flex; gap:12px; align-items:center; }
.s2501-avatar { width:36px; height:36px; border-radius:50%; background:#ecfdf5; display:flex; align-items:center; justify-content:center; color:#059669; font-weight:700; }
.s2501-meta { font-size:13px; color:#111827; }
.s2501-cpf { font-size:12px; color:#6b7280; }
.s2501-badge { background:#ecfdf5; color:#059669; padding:2px 6px; border-radius:999px; font-weight:600; font-size:13px; }
.s2501-badge.s2501-ano-badge, .s2501-badge.s2501-green { font-size:14.6px !important; }
/* Make the year badge blue like S-5002 */
.s2501-badge.s2501-ano-badge { background:#e6f0ff; color:#0b5fff; }
.s2501-badge.s2501-green { background: #059669; color: #fff; }
.s2501-body { margin-top:8px; display:flex; justify-content:space-between; align-items:center; }
.s2501-numbers { background:#f8fafc; padding:8px 10px; border-radius:8px; flex:1; }
.s2501-total { font-size:18px; font-weight:700; color:#111827; }
.s2501-label { font-size:12px; color:#6b7280; }

/* Bloco de cards unificado (S-5002 + S-2501) */
.unified-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin: 18px 0 0 0;
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
}
.unified-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(16,24,40,0.06);
    min-width: 320px;
    max-width: none;
    width: 100%;
    min-height: 160px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    border: 1.5px solid #e5e7eb;
    box-sizing: border-box;
    justify-content: flex-start;
}
@media (max-width: 900px) {
    .unified-cards-grid {
        grid-template-columns: 1fr;
    }
    .unified-card { max-width: 100%; }
}
.unified-card-header { display:flex; justify-content:space-between; align-items:flex-start; }
.unified-left { display:flex; gap:12px; align-items:center; }
.unified-avatar { width:36px; height:36px; border-radius:50%; background:#eef2ff; display:flex; align-items:center; justify-content:center; color:#3b82f6; font-weight:700; }
.unified-meta { font-size:13px; color:#111827; }
.unified-cpf { font-size:12px; color:#6b7280; }
.unified-badge { background:#e6f0ff; color:#0b5fff; padding:2px 6px; border-radius:999px; font-weight:600; font-size:13px; }
.unified-badge.unified-tipo-badge { background:#f0f9ff; color:#0369a1; font-size:12px; }
.unified-body { margin-top:8px; display:flex; justify-content:space-between; align-items:center; }
.unified-numbers { background:#f8fafc; padding:8px 10px; border-radius:8px; flex:1; }
.unified-total { font-size:18px; font-weight:700; color:#111827; }
.unified-label { font-size:12px; color:#6b7280; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    background: #f1f5f9;
    min-height: 100vh;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
}

/* Tela de bloqueio durante validação de GUID */
.guid-validation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

.guid-validation-overlay.hidden {
    display: none !important;
}

.guid-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top-color: #1e40af;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.guid-validation-text {
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
}

.navbar {
    display: none;
}

/* Botão de download "Todos" na linha de Arquivos */
.btn-download-all {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #0b5fff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(11, 95, 255, 0.2);
}

.btn-download-all:hover {
    background: #0046cc;
    box-shadow: 0 2px 6px rgba(11, 95, 255, 0.3);
    transform: translateY(-1px);
}

.btn-download-all:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(11, 95, 255, 0.2);
}

.btn-download-all:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-download-all svg {
    stroke: currentColor;
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-icon {
    background: #3b82f6;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 10px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: none;
}

.card-header {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    padding: 40px;
    border-bottom: none;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.card-header-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.card-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.card-header p {
    font-size: 12px;
    opacity: 0.95;
    font-weight: 400;
}

.logout-btn {
    background: #1e40af;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.logout-btn:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
}

.logout-btn:active {
    transform: translateY(0);
}

/* Modal de confirmação */
.modal-logout {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.modal-logout.show {
    display: flex;
}

.modal-logout-content {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    text-align: center;
    animation: slideIn 0.3s ease;
}

.modal-logout-content h2 {
    font-size: 20px;
    color: #1e40af;
    margin-bottom: 12px;
    font-weight: 700;
}

.modal-logout-content p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 24px;
}

.modal-logout-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-logout-buttons button {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel {
    background: #e2e8f0;
    color: #475569;
}

.btn-cancel:hover {
    background: #cbd5e1;
}

.btn-confirm-logout {
    background: #1e40af;
    color: white;
}

.btn-confirm-logout:hover {
    background: #1e3a8a;
}

/* Modal de Termos */
.modal-terms {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

.modal-terms.show {
    display: flex;
}

.modal-terms-content {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    animation: slideIn 0.3s ease;
}

.modal-terms-content h2 {
    font-size: 24px;
    color: #1e40af;
    margin-bottom: 16px;
    font-weight: 700;
}

.modal-terms-content p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 24px;
    line-height: 1.6;
}

.terms-checkbox-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
}

.terms-checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #1e40af;
}

.terms-checkbox-container label {
    font-size: clamp(12px, 2.2vw, 18px);
    color: #475569;
    cursor: pointer;
    margin: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.terms-checkbox-wrapper label {
    font-size: clamp(12px, 2.2vw, 18px);
    color: #475569;
    cursor: pointer;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 100%;
    vertical-align: middle;
}

.terms-buttons-container {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
}

.btn-read-terms {
    background: #e2e8f0;
    color: #1e40af;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-read-terms:hover {
    background: #cbd5e1;
    transform: translateY(-2px);
}

.terms-action-buttons {
    display: flex;
    gap: 12px;
}

.btn-continue {
    background: #1e40af;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-continue:hover:not(:disabled) {
    background: #1e3a8a;
    transform: translateY(-2px);
}

.btn-continue:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
}

/* Modal de Leitura de Termos */
.modal-terms-reader {
    display: none !important;
    position: fixed;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.7) !important;
    z-index: 2147483647 !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.modal-terms-reader.show {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.modal-terms-reader.hide {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.modal-terms-reader-content {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    /* animation: slideIn 0.3s ease; */ /* Temporariamente desativada para debug */
    position: relative; /* allow absolute-positioned copy button */
    z-index: 10003 !important;
}

.modal-terms-reader-content h2 {
    font-size: 24px;
    color: #1e40af;
    margin-bottom: 20px;
    font-weight: 700;
}

.terms-text-content {
    font-size: 13px;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 24px;
}

.terms-text-content h3 {
    font-size: 16px;
    color: #1e40af;
    margin-top: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

.terms-text-content ul {
    margin-left: 20px;
    margin-bottom: 12px;
}

.terms-text-content li {
    margin-bottom: 6px;
}

.modal-terms-reader-close {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
}

.btn-close-terms {
    background: #e2e8f0;
    color: #475569;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close-terms:hover {
    background: #cbd5e1;
    transform: translateY(-2px);
}

.btn-confirm-terms {
    background: #1e40af;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-confirm-terms:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
}

.btn-copy-terms {
    background: #e2e8f0;
    color: #1e40af;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.btn-copy-terms.copied {
    background: #dcfce7;
    color: #166534;
}

.btn-save-terms {
    background: #fef3c7;
    color: #92400e;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.btn-save-terms:hover {
    background: #fcd34d;
    color: #78350f;
}

.btn-save-terms:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@keyframes slideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.card-body {
    padding: 40px;
    display: flex;
    flex-direction: column;
    height: auto;
}

/* Estilo para o container de seção única */
.sections-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 30px;
    flex: 1;
}

.sections-wrapper > :first-child {
    padding-right: 0;
    border-right: none;
}

.upload-section {
    display: flex;
    flex-direction: column;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.section-label {
    font-size: 11px;
    font-weight: 700;
    color: #1e40af;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info-icon {
    position: relative;
    width: 20px;
    height: 20px;
    background: #1e40af;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
    cursor: help;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.info-icon:hover {
    background: #1e3a8a;
}

.info-tooltip {
    /* Keep content in DOM but do not show tooltip on hover; modal will display it */
    display: none;
}

/* Tooltip arrow and hover behavior removed in favor of modal presentation */

.upload-area {
    border: none;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #f8fafc;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative; /* allow absolute file input inside */
}

.upload-area:hover {
    background: #f0f4f8;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.1);
}

.upload-area.dragover {
    background: #eff6ff;
    box-shadow: 0 8px 16px rgba(30, 64, 175, 0.15);
}

.upload-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    background: #dbeafe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.upload-text {
    color: #1e40af;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.upload-hint {
    color: #64748b;
    font-size: 12px;
}

/* Keep file inputs accessible on mobile: invisible but clickable */
.fileInput {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-info {
    background: #f0f4f8;
    border: none;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    display: none;
}

.file-info.show {
    display: block;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    position: relative;
}

.file-remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    background: #d1d5db;
    color: #6b7280;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0;
}

.file-item:hover .file-remove-btn {
    opacity: 1;
}

.file-remove-btn:hover {
    background: #9ca3af;
    color: white;
    transform: scale(1.1);
}

.file-icon-display {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.file-details {
    flex: 1;
    min-width: 0;
}

.file-name {
    color: #1e293b;
    font-weight: 600;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    color: #64748b;
    font-size: 11px;
}

.file-summary {
    margin-top: 10px;
    padding-top: 10px;
    border-top: none;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none;
    margin-top: 15px;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.2);
}

.btn-submit.show {
    display: block;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.btn-submit:active {
    transform: translateY(1px);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.loading {
    display: none;
    text-align: center;
    padding: 40px;
}

.loading.show {
    display: block;
}

.spinner {
    border: 3px solid #e5e7eb;
    border-top: 3px solid #1e40af;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #475569;
    font-weight: 600;
    font-size: 15px;
}

.progress-container {
    width: 100%;
    background: #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
    height: 6px;
}

.progress-bar {
    height: 6px;
    background: linear-gradient(90deg, #1e40af, #1e3a8a);
    width: 0%;
    transition: width 0.3s ease;
}

.result {
    display: none;
    padding: 0;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result.show {
    display: flex;
}

.result-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    font-size: 18px;
    font-weight: 600;
}

.status-success {
    color: #047857;
}

.status-error {
    color: #dc2626;
}

.status-icon {
    font-size: 28px;
}

.result-time {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 40px;
    font-weight: 500;
}

.result-actions {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.btn-download {
    padding: 18px 40px;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.3);
    transition: all 0.3s ease;
    flex: 1;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
}

.btn-download:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%);
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.4);
}

.btn-restart {
    padding: 18px 40px;
    background: #64748b;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
}

.btn-restart:hover {
    background: #475569;
}

/* Processing Steps Styles */
.processing-step {
    transition: all 0.3s ease;
}

.processing-step-icon {
    width: 32px;
    height: 32px;
    background: #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
    font-size: 14px;
    color: #6b7280;
    transition: all 0.3s ease;
}

.processing-step-label {
    font-size: 11px;
    color: #6b7280;
    transition: all 0.3s ease;
}

.processing-step.active .processing-step-icon {
    background: #0b5fff;
    color: white;
    animation: pulse 1s ease-in-out infinite;
}

.processing-step.completed .processing-step-icon {
    background: #047857;
    color: white;
}

.processing-step.completed .processing-step-label {
    color: #047857;
}

.processing-step.active .processing-step-label {
    color: #0b5fff;
    font-weight: 600;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Modal Styles */
/* ========== MODAL OVERLAYS ========== */
/* Regra geral para .modal-overlay - SÓ para mobileMenuModal */
#mobileMenuModal {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

#mobileMenuModal.show {
    display: flex !important;
    width: 100vw;
    height: 100vh;
}

#mobileMenuModal.show .modal-content {
    opacity: 1;
}

/* Overlays para "Ver Mais" - abrem/fecham com style.display direto (sem classes) */
#auto-vermais-modal,
#s5002-vermais-modal,
#s2501-vermais-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.modal-overlay.show {
    display: flex !important;
    width: 100vw;
    height: 100vh;
    visibility: visible !important;
    opacity: 1 !important;
}

.modal-overlay.show .modal-content {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Regra super específica para #solicitarInformeModal */
#solicitarInformeModal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 9999999 !important;
}

#solicitarInformeModal.show {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#solicitarInformeModal.show .modal-content {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-direction: column !important;
}

/* Estilos específicos para o modal de Solicitar Informe */
#solicitarInformeModal .modal-content {
    max-width: 550px !important;
    width: 61% !important;
    max-height: 60vh !important;
}

#solicitarInformeModal .modal-body {
    padding: 20px !important;
    max-height: 65vh !important;
    overflow-y: auto !important;
}

#formSolicitarInforme {
    display: block !important;
}

/* Campos individuais */
#formSolicitarInforme > div {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

/* Controle de visibilidade das etapas - PRIORIDADE MÁXIMA */
#etapa1 {
    display: block !important;
}

#etapa2 {
    display: none !important;
}

#etapa3 {
    display: none !important;
}

#formSolicitarInforme label {
    margin-bottom: 0 !important;
}

/* Melhorias para input de certificado */
#formSolicitarInforme input[type="file"] {
    cursor: pointer !important;
    padding: 8px !important;
}

#formSolicitarInforme input[type="file"]::file-selector-button {
    background: linear-gradient(135deg, #0b5fff 0%, #0845d4 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    margin-right: 8px !important;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 10px;
    max-width: 420px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: none;
    opacity: 0;
}

/* Força visibilidade para modal-content dos novos modais */
#detalhesInformeModal .modal-content,
#solicitarInformeModal .modal-content {
    opacity: 1 !important;
    visibility: visible !important;
}

#auto-vermais-modal .modal-content {
    padding: 0;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    opacity: 1;
}

/* CSS específico para os novos modais - DESATIVADO (usando tutorial-modal agora) */

#s5002-vermais-modal .modal-content,
#s2501-vermais-modal .modal-content {
    opacity: 1;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.btn-close-modal {
    transition: color 0.2s ease;
}

.btn-close-modal:hover {
    color: #64748b !important;
}

.modal-icon {
    font-size: 24px;
}

.modal-header h2 {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.modal-body {
    color: #475569;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 8px;
}

#auto-vermais-modal .modal-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
    margin-bottom: 0;
}

.modal-body strong {
    color: #1e293b;
    font-weight: 600;
}

.modal-body p {
    margin: 0 0 8px 0;
}

.modal-footer {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.btn-modal-cancel {
    flex: 1;
    padding: 8px;
    background: #e2e8f0;
    color: #1e293b;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-modal-cancel:hover {
    background: #cbd5e1;
}

.btn-modal-confirm {
    flex: 1;
    padding: 8px;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-modal-confirm:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%);
}

/* Input Styles */
.form-group {
    margin-bottom: 6px;
}

.form-group label {
    display: block;
    color: #1e293b;
    font-weight: 600;
    font-size: 11px;
    margin-bottom: 2px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 7px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group select {
    background-color: #ffffff;
    color: #334155;
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=utf-8;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDEyIDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEgMUw2IDZMMTEgMSIgc3Ryb2tlPSIjMzM0MTU1IiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjwvc3ZnPg==');
    background-repeat: no-repeat;
    background-position: right 7px center;
    background-size: 12px;
    padding-right: 30px;
}

.form-group select option {
    color: #334155;
    background-color: #ffffff;
    padding: 5px;
}

/* Termos no Modal de Dados */
.terms-section {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #f8fafc;
    border-radius: 8px;
}

.terms-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.terms-checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #1e40af;
    flex-shrink: 0;
}

.terms-checkbox-wrapper label {
    margin: 0;
    font-size: 12px;
    color: #475569;
    cursor: pointer;
    font-weight: 500;
}

.btn-read-terms-inline {
    padding: 8px 14px;
    background: #e0e7ff;
    color: #1e40af;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-read-terms-inline:hover {
    background: #c7d2fe;
    transform: translateY(-1px);
}

.btn-modal-confirm:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-modal-confirm:disabled:hover {
    background: #cbd5e1;
    transform: none;
}

/* Estilos para Modal de Validação de Ano */
#validacaoAnoModal .modal-content {
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 520px;
}

#validacaoAnoModal .modal-header {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    padding: 24px;
    color: white;
    display: flex;
    align-items: center;
    gap: 16px;
}

#validacaoAnoModal .modal-header h2 {
    color: white;
    font-size: 18px;
    margin: 0;
    font-weight: 700;
}

#validacaoAnoModal .modal-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    margin: 4px 0 0 0 !important;
}

#validacaoAnoModal .modal-body {
    background: #fafaf9;
    padding: 20px;
    border-bottom: 1px solid #f5f5f0;
}

#validacaoAnoModal .modal-body h3 {
    color: #dc2626;
    font-size: 14px;
    margin: 0 0 12px 0;
    font-weight: 700;
}

#validacaoAnoModal .modal-body > p:first-of-type {
    background: white;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
    margin-bottom: 16px !important;
}

#validacaoAnoModal .modal-body ul {
    background: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 8px 0 12px 0 !important;
}

#validacaoAnoModal .modal-body li {
    color: #475569;
    font-size: 12px;
    line-height: 1.6;
}

#validacaoAnoModal .modal-footer {
    background: white;
    padding: 20px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
    flex-direction: row;
}

.validacao-ano-btn-cancel {
    flex: 1;
    padding: 12px 16px;
    background: #e2e8f0;
    color: #1e293b;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.validacao-ano-btn-cancel:hover {
    background: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.validacao-ano-btn-confirm {
    padding: 12px 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    line-height: 1.4;
}

.validacao-ano-btn-confirm:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.validacao-ano-btn-text {
    font-size: 11px;
    color: #64748b;
    text-align: center;
    line-height: 1.4;
    font-weight: 500;
}

.form-group small {
    display: block;
    color: #64748b;
    font-size: 11px;
    margin-top: 1px;
}

.form-group.error input {
    border-color: #dc2626;
}

.form-group.error small {
    color: #dc2626;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.form-row.full {
    grid-template-columns: 1fr;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Alert Box */
.alert-box {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 30px;
    display: flex;
    gap: 12px;
}

.alert-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-title {
    color: #92400e;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.alert-text {
    color: #b45309;
    font-size: 13px;
    line-height: 1.5;
}

.footer {
    display: none;
}

@media (max-width: 768px) {
    #tutorialButtonContainer {
        display: none !important;
    }
    
    .footer {
        display: flex;
        padding: 0;
        background: none;
        border-top: none;
    }
    .sections-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .sections-wrapper > :first-child {
        padding-right: 0;
        padding-bottom: 0;
        border-right: none;
        border-bottom: none;
    }

    .card-body {
        padding: 20px;
    }
    
    .header-subtitle {
        display: none !important;
    }

    .btn-download,
    .btn-restart {
        padding: 14px 20px;
        font-size: 14px;
        height: 48px;
        min-width: 140px;
    }

    .result-actions {
        gap: 10px;
    }

    .footer {
        font-size: 11px;
        padding: 15px 10px;
    }

    .card-header h1 {
        font-size: 24px;
    }

    .card-header p {
        font-size: 13px;
    }

    .modal-content {
        max-width: 90%;
        padding: 25px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 22px 12px;
    }

    .card-body {
        padding: 15px;
    }

    .btn-download,
    .btn-restart {
        padding: 12px 16px;
        font-size: 12px;
        height: 44px;
        min-width: 120px;
    }

    .result-actions {
        gap: 8px;
    }

    .footer {
        font-size: 10px;
        padding: 12px 8px;
    }

    .card-header {
        padding: 25px 20px;
    }

    .card-header h1 {
        font-size: 20px;
    }

    .card-header p {
        font-size: 12px;
    }

    .modal-content {
        max-width: 95%;
        padding: 20px;
    }
}

/* ===== MENU MOBILE ===== */
.desktop-menu-mobile {
    display: none;
}

.btn-menu-mobile-desktop:hover {
    background: linear-gradient(135deg, #0845d4 0%, #062ca6 100%) !important;
}

.btn-menu-mobile-desktop:active {
    transform: scale(0.98);
}

@media (max-width: 768px) {
    .desktop-menu-mobile {
        display: block;
    }
    
    #tutorialButtonContainer {
        display: none;
    }
}

.mobile-menu-item {
    padding: 12px 16px;
    background: none;
    border: none;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}

.mobile-menu-item:last-child {
    border-bottom: none;
}

.mobile-menu-item:hover {
    background: #f9fafb;
}

.mobile-menu-item:active {
    background: #f3f4f6;
}

/* Estilos melhorados para mobile menu */
.mobile-menu-item:hover {
    background: linear-gradient(90deg, #f0f9ff 0%, #f8fafc 100%);
    color: #0b5fff;
}

.mobile-menu-item:active {
    background: #e0e7ff;
}

/* Estilos do Cadeado de Proteção S-2501 */
.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    backdrop-filter: blur(2px);
}

.lock-container {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 350px;
}

.lock-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.lock-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 8px;
}

.lock-message {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.5;
}

.lock-password-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lock-password-section label {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    text-align: left;
}

.lock-password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.lock-password-input {
    flex: 1;
    padding: 10px 12px;
    padding-right: 40px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.lock-password-input:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.lock-password-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    color: #64748b;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lock-password-toggle:hover {
    color: #1e40af;
}

.lock-unlock-btn {
    padding: 10px 16px;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lock-unlock-btn:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%);
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
}

.lock-unlock-btn:active {
    transform: translateY(1px);
}

.lock-error {
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Tutorial Modal Styles */
.tutorial-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.tutorial-modal.active {
    display: flex;
}

.tutorial-modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px 15px;
    text-align: center;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.tutorial-step {
    display: none;
}

.tutorial-step.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tutorial-step-icon {
    font-size: 60px;
    margin-bottom: 20px;
    display: block;
}

.tutorial-step-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 6px;
}

.tutorial-step-description {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 12px;
}

.tutorial-controls {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin-top: 12px;
}

.tutorial-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 12px;
}

.tutorial-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tutorial-dot.active {
    background: #0b5fff;
    width: 16px;
    border-radius: 3px;
}

.tutorial-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tutorial-btn-skip {
    background: #f1f5f9;
    color: #64748b;
}

.tutorial-btn-skip:hover {
    background: #e2e8f0;
}

.tutorial-btn-next {
    background: #0b5fff;
    color: white;
}

.tutorial-btn-next:hover {
    background: #0645d8;
    box-shadow: 0 2px 8px rgba(11, 95, 255, 0.3);
}

.tutorial-btn-next:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Tutorial Step Cards */
.tutorial-step-list {
    text-align: left;
    margin: 20px 0;
}

.tutorial-step-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tutorial-step-list li {
    font-size: 14px;
    color: #64748b;
    margin: 10px 0;
    padding-left: 24px;
    position: relative;
    line-height: 1.5;
}

.tutorial-step-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #0b5fff;
    font-weight: 700;
    font-size: 16px;
}

.tutorial-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.tutorial-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    text-align: left;
    transition: all 0.2s ease;
}

.tutorial-card:hover {
    border-color: #0b5fff;
    box-shadow: 0 2px 8px rgba(11, 95, 255, 0.1);
}

.tutorial-card-number {
    display: inline-block;
    width: 28px;
    height: 28px;
    background: #0b5fff;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    font-weight: 700;
    font-size: 14px;
    margin-right: 10px;
}

.tutorial-card-title {
    font-weight: 600;
    color: #1e40af;
    font-size: 14px;
    margin-bottom: 6px;
    display: inline-block;
}

.tutorial-card-description {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin-left: 38px;
}

.tutorial-reminder {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 6px;
    padding: 12px;
    margin-top: 20px;
    font-size: 13px;
    color: #92400e;
    text-align: left;
}

.tutorial-reminder-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.tutorial-button {
    background: #e6f0ff !important;
    border: none !important;
    color: #0b5fff !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    font-size: 13px !important;
    padding: 10px 16px !important;
    margin-top: 15px !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    border-radius: 6px !important;
}

.tutorial-button:hover {
    background: #d5e8ff !important;
    color: #0645d8 !important;
}



.upload-section {
    position: relative;
}

/* Responsividade para títulos de seção */
.section-label-desktop {
    display: inline;
}

.section-label-mobile {
    display: none;
}

@media (max-width: 768px) {
    .section-label-desktop {
        display: none;
    }
    
    .section-label-mobile {
        display: inline;
    }
}
