/* ======================================
   Gerador de Plano de Parto - Arquivo CSS
   Versão: 3.1
   Desenvolvedor: Felipo Bellini
   Site: manualdafralda.com.br
   ====================================== */

/* ==== 1. VARIÁVEIS E CONFIGURAÇÕES GLOBAIS ==== */
:root {
    --primary-color: #ff7eb6;
    --primary-dark: #e05a92;
    --secondary-color: #7e64ff;
    --secondary-dark: #5b46c7;
    --accent-color: #64c5ff;
    --success-color: #4CAF50;
    --warning-color: #FFC107;
    --danger-color: #F44336;
    --background-color: #f9f9f9;
    --text-color: #333;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    
    /* Cores para temas do PDF */
    --theme-rosa: #ff7eb6;
    --theme-azul: #64c5ff;
    --theme-verde: #4CAF50;
    --theme-roxo: #7e64ff;
    --theme-laranja: #FF9800;
    
    /* Variável para altura em viewports em dispositivos móveis */
    --vh: 1vh;
}

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

html {
    -webkit-text-size-adjust: 100%;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    overflow-x: hidden;
}

/* ==== 2. ESTRUTURA PRINCIPAL ==== */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden; /* Evita sobreposição */
}

/* ==== 3. TIPOGRAFIA ==== */
h1, h2, h3 {
    color: var(--primary-color);
    transition: var(--transition);
}

h1 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 2.2em;
}

/* ==== 4. CABEÇALHO E DESCRIÇÃO ==== */
.app-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1; /* Menor que os top-controls */
}

.logo {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 0px;
}

.app-description {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ==== 5. CONTROLES SUPERIORES ==== */
.top-controls {
    display: flex;
    justify-content: flex-end;
    gap: 0.3rem;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 10;
    align-items: center;
}

.settings-gear,
.dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.settings-gear:hover,
.dark-mode-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    opacity: 1;
    transform: scale(1.1);
}

/* Estilo minimalista para os botões no header */
.settings-gear,
.dark-mode-toggle {
    box-shadow: none;
    background-color: transparent;
    backdrop-filter: none;
}

.settings-gear:hover,
.dark-mode-toggle:hover {
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: none;
    transform: scale(1.1);
}

/* Modo escuro para os botões */
.dark-mode .settings-gear,
.dark-mode .dark-mode-toggle {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.8);
    box-shadow: none;
}

.dark-mode .settings-gear:hover,
.dark-mode .dark-mode-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    box-shadow: none;
    transform: scale(1.1);
}

/* Melhorar acessibilidade em dispositivos touch */
@media (hover: none) and (pointer: coarse) {
    .settings-gear,
    .dark-mode-toggle {
        min-width: 44px;
        min-height: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-pill {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Garantir que os botões se encaixem em telas muito pequenas */
@media (max-width: 320px) {
    .top-controls {
        padding: 0;
        gap: 0.1rem;
        justify-content: flex-end;
        margin: 0;
        position: relative;
        z-index: 10;
    }
    
    .settings-gear,
    .dark-mode-toggle {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
        flex-shrink: 0;
    }
}

/* ==== 6. NAVEGAÇÃO ==== */
.nav-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 100;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    overflow: visible;
}

.nav-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    overflow: visible;
}

.nav-pill {
    padding: 8px 15px;
    background-color: #f1f1f1;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85em;
    transition: var(--transition);
    display: flex;
    overflow: visible;
    align-items: center;
    gap: 5px;
}

.nav-pill:hover {
    background-color: #e1e1e1;
}

.nav-pill.active {
    background-color: var(--primary-color);
    color: white;
}

/* ==== 7. BARRA DE PROGRESSO ==== */
.progress-container {
    width: 100%;
    margin: 0 auto 30px auto;
    position: relative;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #f1f1f1;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 0.5s ease;
}

.progress-text {
    text-align: center;
    margin-top: 5px;
    font-size: 0.85em;
    color: #666;
}

/* ==== 8. SEÇÕES DO FORMULÁRIO ==== */
.section {
    margin-bottom: 30px;
    padding: 25px;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    transition: var(--transition);
    opacity: 0.6;
    display: none;
    overflow: visible;
}

.section.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 126, 182, 0.1);
    opacity: 1;
    display: block;
    overflow: visible;
}

.section-title {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    overflow: visible;
}

.section-title h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5em;
    overflow: visible;
}

/* ==== 9. TOOLTIPS ==== */
.info-tooltip {
    position: relative;
    display: inline-block;
    margin-left: 10px;
    cursor: pointer;
    color: var(--accent-color);
    overflow: visible;
}

.info-tooltip .tooltip-text {
    visibility: hidden;
    width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -125px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85em;
}

.info-tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.info-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ==== 10. GRUPOS DE OPÇÕES ==== */
.options-group {
    margin-bottom: 20px;
    transition: var(--transition);
    overflow: visible;
}

.options-title {
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
    color: var(--secondary-color);
    overflow: visible;
}

.section-description {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
    overflow: visible;
}

/* ==== 11. CAMPOS DE FORMULÁRIO ==== */
label {
    display: block;
    margin-bottom: 12px;
    cursor: pointer;
    transition: var(--transition);
    padding: 5px 0;
    overflow: visible;
}

label:hover {
    color: var(--primary-color);
}

input[type="checkbox"], 
input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

input[type="text"], 
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    margin-bottom: 15px;
    transition: var(--transition);
    overflow: visible;
}

.inline-input {
    width: auto !important;
    display: inline-block !important;
    margin-left: 10px !important;
    overflow: visible;
}

input[type="text"]:focus, 
input[type="date"]:focus,
textarea:focus,
select:focus {
    outline: none;
    overflow: visible;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 126, 182, 0.2);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.input-group {
    margin-bottom: 20px;
}

/* ==== 12. BOTÕES ==== */
.button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1em;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
}

.button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.button-secondary {
    background-color: var(--secondary-color);
}

.button-secondary:hover {
    background-color: var(--secondary-dark);
}

.button-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.button-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.button-danger {
    background-color: var(--danger-color);
}

.button-danger:hover {
    background-color: #d32f2f;
}

.button-container {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    gap: 15px;
    flex-wrap: wrap;
    overflow: visible;
}

.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    overflow: visible;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    overflow: visible;
}

/* ==== 13. OPÇÕES DE PDF ==== */
.pdf-options {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
    overflow: visible;
}

.pdf-option-group {
    margin-bottom: 15px;
    overflow: visible;
}

/* ==== 14. CONTAINER DE PREVIEW ==== */
.preview-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.preview-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    overflow: visible;
}

.preview {
    background-color: white;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: visible;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    padding: 30px;
    position: relative;
}

.preview-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.preview-logo {
    font-size: 2em;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    overflow: visible;
}

.preview-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 10px;
    overflow: visible;
}

.preview-content {
    line-height: 1.8;
    overflow: visible;
}

.preview-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    overflow: visible;
}

.signature-area {
    text-align: center;
    margin-bottom: 20px;
    overflow: visible;
}

.signature-line {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
    overflow: visible;
}

.page-number {
    text-align: center;
    font-size: 0.8em;
    color: #888;
    overflow: visible;
}

/* ==== 15. MODAIS ==== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    transition: var(--transition);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: var(--border-radius);
    max-width: 600px;
    box-shadow: var(--box-shadow);
    position: relative;
    transition: var(--transition);
    overflow: visible;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    overflow: visible;
}

.close:hover {
    color: var(--text-color);
}

/* ==== 16. GALERIA DE TEMPLATES ==== */
.template-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
    overflow: visible;
}

.template-card {
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    padding: 15px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    overflow: visible;
}

.template-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.template-icon {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 10px;
    overflow: visible;
}

.template-card h4 {
    margin-bottom: 10px;
    color: var(--secondary-color);
    overflow: visible;
}

.template-card.selected {
    border: 2px solid var(--primary-color);
    background-color: rgba(255, 126, 182, 0.05);
}

/* ==== 17. PLANOS SALVOS ==== */
.saved-plans-list {
    margin-top: 20px;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: visible;
}

.saved-plan-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    overflow: visible;
    transition: var(--transition);
}

.saved-plan-item:hover {
    background-color: #f0f0f0;
}

.saved-plan-info {
    flex: 1;
}

.saved-plan-actions {
    display: flex;
    gap: 8px;
}

.saved-plan-action {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    color: #666;
    transition: var(--transition);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.saved-plan-action:hover {
    background-color: rgba(0,0,0,0.05);
    color: var(--primary-color);
}

.saved-plan-action.delete:hover {
    color: var(--danger-color);
}

/* ==== 18. DRAG & DROP ==== */
.drag-drop-container {
    border: 2px dashed #ddd;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    margin: 20px 0;
    transition: var(--transition);
    cursor: pointer;
    overflow: visible;
}

.drag-drop-container:hover {
    border-color: var(--primary-color);
    background-color: rgba(255, 126, 182, 0.05);
}

.drag-drop-container i {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.file-input {
    display: none;
    overflow: visible;
}

/* ==== 19. OPÇÕES DE COMPARTILHAMENTO ==== */
.share-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    overflow: visible;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    padding: 15px;
    border-radius: var(--border-radius);
    width: 100px;
    overflow: visible;
}

.share-option:hover {
    background-color: rgba(0,0,0,0.05);
    transform: translateY(-3px);
}

.share-icon {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 10px;
    overflow: visible;
}

/* ==== 20. LOADING SPINNER ==== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    overflow: visible;
}

.loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid var(--primary-color);
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    overflow: visible;
}

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

/* ==== 21. NOTIFICAÇÕES ==== */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    background-color: var(--success-color);
    color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 1000;
    overflow: visible;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
    overflow: visible;
}

.version-info {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 0.7em;
    color: #999;
    overflow: visible;
}

/* ==== 22. MODO ESCURO ==== */
body.dark-mode {
    background-color: #222;
    color: #f8f8f8;
}

body.dark-mode .container,
body.dark-mode .nav-container,
body.dark-mode .modal-content,
body.dark-mode .preview {
    background-color: #333;
    color: #f8f8f8;
}

body.dark-mode .section,
body.dark-mode .preview-footer {
    border-color: #444;
    background-color: #3a3a3a;
}

body.dark-mode .section.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 126, 182, 0.2);
}

body.dark-mode input[type="text"],
body.dark-mode input[type="date"],
body.dark-mode textarea,
body.dark-mode select {
    background-color: #444;
    color: #f8f8f8;
    border-color: #555;
}

body.dark-mode .nav-pill {
    background-color: #444;
    color: #f8f8f8;
}

body.dark-mode .nav-pill:hover {
    background-color: #555;
}

body.dark-mode .nav-pill.active {
    background-color: var(--primary-color);
}

body.dark-mode .app-description,
body.dark-mode .progress-text,
body.dark-mode .section-description {
    color: #aaa;
}

body.dark-mode .saved-plan-item {
    background-color: #444;
}

body.dark-mode .saved-plan-item:hover {
    background-color: #555;
}

body.dark-mode .dark-mode-toggle i::before {
    content: "\f185"; /* sol */
}

/* ==== 23. ESTILOS PARA O CONTEÚDO DO PLANO NO PDF ==== */
.plan-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.plan-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
}

.plan-info {
    margin-bottom: 25px;
}

.plan-info p {
    margin: 5px 0;
    line-height: 1.5;
}

.plan-intro {
    margin-bottom: 30px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    font-style: italic;
}

.plan-section {
    margin-bottom: 25px;
    page-break-inside: avoid;
}

.plan-section h3 {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.plan-section ul {
    margin: 0;
    padding-left: 20px;
}

.plan-section li {
    margin-bottom: 5px;
    line-height: 1.5;
}

.plan-footer {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-style: italic;
}

/* ==== 24. TEMAS DE CORES NO PDF ==== */
.preview.theme-rosa .plan-title,
.preview.theme-rosa .plan-section h3 {
    color: var(--theme-rosa);
}

.preview.theme-rosa .plan-header {
    border-bottom-color: var(--theme-rosa);
}

.preview.theme-azul .plan-title,
.preview.theme-azul .plan-section h3 {
    color: var(--theme-azul);
}

.preview.theme-azul .plan-header {
    border-bottom-color: var(--theme-azul);
}

.preview.theme-verde .plan-title,
.preview.theme-verde .plan-section h3 {
    color: var(--theme-verde);
}

.preview.theme-verde .plan-header {
    border-bottom-color: var(--theme-verde);
}

.preview.theme-roxo .plan-title,
.preview.theme-roxo .plan-section h3 {
    color: var(--theme-roxo);
}

.preview.theme-roxo .plan-header {
    border-bottom-color: var(--theme-roxo);
}

.preview.theme-laranja .plan-title,
.preview.theme-laranja .plan-section h3 {
    color: var(--theme-laranja);
}

.preview.theme-laranja .plan-header {
    border-bottom-color: var(--theme-laranja);
}

/* ==== 25. TEMAS VISUAIS DO PDF ==== */
.preview.theme-classico {
    font-family: 'Times New Roman', Times, serif;
}

.preview.theme-classico .plan-section h3 {
    text-transform: uppercase;
    letter-spacing: 1px;
}

.preview.theme-classico .plan-header {
    border-bottom: 3px double #333;
}

.preview.theme-moderno {
    font-family: 'Arial', sans-serif;
}

.preview.theme-moderno .plan-header {
    background-color: #f8f8f8;
    padding: 15px;
    border-radius: 8px;
    border-bottom: none;
}

.preview.theme-moderno .plan-section h3 {
    background-color: #f8f8f8;
    padding: 8px;
    border-radius: 4px;
    border-bottom: none;
}

.preview.theme-elegante {
    font-family: 'Georgia', serif;
    line-height: 1.6;
}

.preview.theme-elegante .plan-title {
    font-style: italic;
}

.preview.theme-elegante .plan-header {
    position: relative;
}

.preview.theme-elegante .plan-header::after {
    content: '';
    display: block;
    width: 30%;
    height: 1px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
}

.preview.theme-elegante .plan-section h3 {
    font-style: italic;
    border-bottom: none;
}

.preview.theme-minimalista {
    font-family: 'Helvetica', Arial, sans-serif;
}

.preview.theme-minimalista .plan-header {
    border: none;
    text-align: left;
}

.preview.theme-minimalista .plan-title {
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.preview.theme-minimalista .plan-section h3 {
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: none;
}

/* ==== 26. ESTILOS DE IMPRESSÃO ==== */
@media print {
    @page {
        size: A4;
        margin: 1.5cm;
    }

    body {
        background-color: white !important;
        font-size: 12pt !important;
    }
    
    .no-print {
        display: none !important;
    }
    
    .container {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        background-color: white !important;
    }
    
    .preview-container {
        position: static !important;
        padding: 0 !important;
        background: none !important;
        display: block !important;
    }
    
    .preview {
        padding: 0 !important;
        max-height: none !important;
        box-shadow: none !important;
        overflow: visible !important;
        background-color: white !important;
    }
    
    .preview-header {
        padding-top: 0 !important;
    }
    
    .preview-content {
        font-size: 12pt !important;
        line-height: 1.5 !important;
    }
    
    .plan-header {
        border-bottom-color: #333 !important;
    }
    
    .plan-title {
        color: #333 !important;
    }
    
    .plan-section h3 {
        color: #333 !important;
    }
    
    .plan-intro {
        background-color: white !important;
        border: 1px solid #ddd !important;
    }
    
    /* Garantir quebras de página apropriadas */
    .plan-section {
        page-break-inside: avoid !important;
    }
    
    h2, h3 {
        page-break-after: avoid !important;
    }
    
    .signature-area {
        page-break-inside: avoid !important;
    }
    
    /* Ajustes para cada tema */
    .preview.theme-classico .plan-header {
        border-bottom: 3px double #333 !important;
    }
    
    .preview.theme-moderno .plan-header {
        background-color: #f0f0f0 !important;
        padding: 15px !important;
    }
    
    .preview.theme-elegante .plan-header {
        border-bottom: 1px solid #999 !important;
    }
    
    .preview.theme-elegante .plan-header::after {
        content: '';
        display: block;
        width: 30%;
        height: 1px;
        background-color: #999;
        margin: 5px auto 0;
    }
    
    .preview.theme-minimalista .plan-header {
        border: none !important;
    }
    
    /* Adiciona numeração de página automática */
    .page-num:after {
        content: counter(page) !important;
    }
    
    /* Remove estilos de interação */
    a, button {
        text-decoration: none !important;
        color: black !important;
    }
}

/* ==== 27. ESTILOS DE RESPONSIVIDADE PARA DISPOSITIVOS MÓVEIS ==== */

/* Ajustes para tablets (768px e abaixo) */
@media (max-width: 768px) {
    /* Ajustes de tipografia */
    body {
        font-size: 16px;
        padding: 0;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 15px;
        margin: 0;
        border-radius: 0;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    h2 {
        font-size: 1.4em;
    }
    
    h3 {
        font-size: 1.2em;
    }
    
    /* Melhorias na navegação */
    .nav-container {
        padding: 10px 0;
        position: sticky;
        top: 0;
        z-index: 100;
        background-color: white;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    .dark-mode .nav-container {
        background-color: #333;
    }
    
    .nav-pills {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        padding: 5px 0;
        justify-content: flex-start;
    }
    
    .nav-pills::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }
    
    .nav-pill {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 8px 12px;
        margin-right: 8px;
        font-size: 0.85em;
    }
    
    /* Melhoria dos campos de formulário */
    .input-group, .options-group {
        margin-bottom: 20px;
    }
    
    input[type="text"], 
    input[type="date"],
    textarea,
    select {
        padding: 12px;
        font-size: 16px; /* Previne zoom em iOS */
        border-radius: 8px;
    }
    
    /* Melhorar a área clicável para checkboxes e radio buttons */
    label {
        padding: 10px 0;
        display: flex;
        align-items: flex-start;
    }
    
    input[type="checkbox"], 
    input[type="radio"] {
        width: 20px;
        height: 20px;
        margin-right: 10px;
        flex-shrink: 0;
        margin-top: 2px;
    }
    
    /* Melhorar botões */
    .button {
        padding: 12px 20px;
        width: 100%;
        margin-bottom: 10px;
        font-size: 1em;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .button-container {
        flex-direction: column;
    }
    
    .button-group {
        width: 100%;
        flex-direction: column;
    }
    
    /* Melhorar espaçamento nas seções */
    .section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .section-title h2 {
        font-size: 1.3em;
    }
    
    /* Melhorar modais */
    .modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .close {
        top: 10px;
        right: 10px;
        font-size: 24px;
    }
    
    /* Melhorar preview */
    .preview-container {
        padding: 10px;
    }
    
    .preview {
        width: 100%;
        padding: 15px;
        font-size: 14px;
    }
    
    .preview-controls {
        position: fixed;
        top: 10px;
        right: 10px;
        z-index: 1001;
    }
    
    /* Otimizar galeria de templates */
    .template-gallery {
        grid-template-columns: 1fr;
    }
    
    .template-card {
        margin-bottom: 15px;
    }
    
    /* Otimizar opções de compartilhamento */
    .share-options {
        justify-content: space-between;
    }
    
    .share-option {
        width: 45%;
        margin-bottom: 15px;
    }
    
    /* Melhorias para seções informativas */
    #how-to-section,
    #article-section,
    #faq-section {
        padding: 15px;
    }
    
    .content-title {
        font-size: 1.5em;
    }
    
    .how-to-step {
        flex-direction: column;
        padding-left: 50px;
    }
    
    .step-number {
        position: absolute;
        left: 0;
        top: 0;
    }
    
    .faq-question h3 {
        font-size: 1em;
    }
    
    /* Melhorar o rodapé */
    .footer {
        text-align: center;
    }
    
    .footer-section {
        width: 100%;
        padding-right: 0;
    }
    
    /* Botões de navegação */
    .navigation-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .navigation-buttons button {
        width: 100%;
    }
}

/* Ajustes para smartphones (480px e abaixo) */
@media (max-width: 480px) {
    body {
        padding: 0;
    }
    
    /* Ajustes de tipografia para telas menores */
    h1 {
        font-size: 1.5em;
    }
    
    h2 {
        font-size: 1.3em;
    }
    
    .section-title h2 {
        font-size: 1.2em;
    }
    
    /* Simplificar cabeçalho */
    .app-header {
        margin-bottom: 20px;
    }
    
    .logo {
        font-size: 2.5em;
        margin-bottom: 10px;
    }
    
    .app-description {
        font-size: 0.9em;
    }
    
    /* Navegação mais compacta */
    .nav-pill {
        padding: 6px 10px;
        font-size: 0.8em;
    }
    
    /* Ajustar tooltips */
    .info-tooltip .tooltip-text {
        width: 200px;
        margin-left: -100px;
    }
    
    /* Melhorar controles superiores */
    .top-controls {
        position: absolute;
        top: 10px;
        right: 10px;
        margin: 0;
    }
    
    .settings-gear,
    .dark-mode-toggle {
        width: 35px;
        height: 35px;
        font-size: 1em;
    }
    
    /* Simplificar o preview para telas pequenas */
    .preview {
        padding: 10px;
        font-size: 13px;
    }
    
    .preview-header {
        margin-bottom: 15px;
        padding-bottom: 15px;
    }
    
    .preview-title {
        font-size: 1.2em;
    }
    
    /* FAQ mais compacto */
    .faq-question {
        padding: 12px 15px;
    }
    
    .faq-answer {
        padding: 15px !important;
        font-size: 0.9em;
    }
    
    /* Ajustes para modais em telas muito pequenas */
    .modal-content {
        width: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
        padding: 15px;
    }
    
    /* Ajustes do rodapé */
    .footer {
        padding: 20px 0 10px;
        margin-top: 30px;
    }
    
    .footer-title {
        font-size: 1.1em;
    }
    
    /* Otimização de áreas clicáveis */
    button, 
    .nav-pill, 
    .template-card, 
    .faq-question,
    label,
    .share-option,
    .saved-plan-action {
        min-height: 44px; /* Tamanho mínimo para áreas clicáveis em dispositivos móveis */
    }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 360px) {
    /* Reduzir ainda mais os espaçamentos */
    .container {
        padding: 10px;
    }
    
    .section {
        padding: 10px;
    }
    
    /* Simplificar ainda mais o layout */
    h1 {
        font-size: 1.4em;
    }
    
    h2 {
        font-size: 1.2em;
    }
    
    h3 {
        font-size: 1.1em;
    }
    
    .section-title h2 {
        font-size: 1.1em;
    }
    
    /* Navegação ultra-compacta */
    .nav-pill {
        padding: 6px 8px;
        font-size: 0.75em;
    }
    
    /* Simplificar tooltips */
    .info-tooltip .tooltip-text {
        width: 180px;
        margin-left: -90px;
    }
    
    /* Ajustar campos de entrada */
    input[type="text"], 
    input[type="date"],
    textarea,
    select {
        padding: 10px;
    }
}

/* Suporte a orientação landscape em dispositivos móveis */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        font-size: 14px;
    }
    
    .container {
        max-width: 90%;
        margin: 0 auto;
    }
    
    .nav-container {
        position: static;
    }
    
    .preview-container {
        align-items: flex-start;
    }
    
    .preview {
        max-height: 80vh;
    }
    
    /* Melhorar scrolling e visualização */
    .section, .modal-content, .preview {
        max-height: 80vh;
        overflow-y: auto;
    }
}

/* Melhorias para acessibilidade em dispositivos táteis */
@media (hover: none) {
    /* Aumentar áreas clicáveis */
    input[type="checkbox"], 
    input[type="radio"] {
        transform: scale(1.3);
    }
    
    /* Melhorar estados ativos para toque */
    .button:active,
    .nav-pill:active,
    .template-card:active,
    .share-option:active,
    .saved-plan-action:active {
        opacity: 0.7;
        transform: scale(0.98);
    }
}

/* Melhorias para dispositivos com notch (como iPhone X+) */
@supports (padding: max(0px)) {
    body {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
        padding-top: max(0px, env(safe-area-inset-top));
        padding-bottom: max(0px, env(safe-area-inset-bottom));
    }
    
    .preview-controls,
    .modal .close {
        right: max(10px, env(safe-area-inset-right));
    }
}

/* ==== 29. ESTILOS PARA O HOW-TO GUIDE ==== */
.how-to-intro {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.dark-mode .how-to-intro {
    background-color: #444;
}

.how-to-steps {
    position: relative;
}

.how-to-steps:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background-color: var(--primary-color);
    opacity: 0.3;
}

.how-to-step {
    position: relative;
    display: flex;
    margin-bottom: 30px;
    padding-left: 60px;
}

.step-number {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    z-index: 1;
}

.step-content {
    flex: 1;
    padding-top: 3px;
}

.step-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.step-tip {
    margin-top: 15px;
    padding: 15px;
    background-color: rgba(255, 126, 182, 0.1);
    border-radius: var(--border-radius);
    display: flex;
    align-items: flex-start;
}

.dark-mode .step-tip {
    background-color: rgba(255, 126, 182, 0.2);
}

.step-tip i {
    font-size: 1.2em;
    color: var(--primary-color);
    margin-right: 10px;
    margin-top: 3px;
}

.step-tip p {
    margin: 0;
    flex: 1;
}

/* ==== 30. ESTILOS PARA O ARTIGO DE APRESENTAÇÃO ==== */
.article-container {
    margin-top: 50px;
    padding: 30px;
}

.article-content {
    line-height: 1.8;
}

.article-intro {
    font-size: 1.1em;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.article-section {
    margin-bottom: 30px;
}

.article-section h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.4em;
}

.article-section h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-size: 1.1em;
}

.article-section ul, 
.article-section ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.article-section li {
    margin-bottom: 8px;
}

.article-cta {
    margin-top: 40px;
    padding: 25px;
    background-color: rgba(255, 126, 182, 0.1);
    border-radius: var(--border-radius);
    text-align: center;
}

.dark-mode .article-cta {
    background-color: rgba(255, 126, 182, 0.2);
}

.article-cta p {
    font-size: 1.2em;
    margin-bottom: 15px;
}

/* ==== 31. ESTILOS PARA O FAQ ==== */

/* Melhorar legibilidade do FAQ */
.faq-section {
    margin-bottom: 3rem;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: visible;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transition: all 0.3s ease;
    border-radius: 12px 12px 0 0;
}

.faq-question h3 {
    color: white !important;
}

.faq-question:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.faq-question i {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
    border-radius: 0 0 12px 12px;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer p {
    padding: 1.5rem;
    margin: 0;
    line-height: 1.6;
    color: var(--text-color);
    font-size: 1rem;
}

.faq-answer ul, .faq-answer ol {
    padding: 0 1.5rem 1.5rem 3rem;
    margin: 0;
}

.faq-answer li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--text-color);
}

/* Modo escuro para FAQ */
.dark-mode .faq-item {
    background: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-color: #444;
}

.dark-mode .faq-answer {
    background: #333;
}

.dark-mode .faq-answer p {
    color: #f8f8f8;
}

.dark-mode .faq-answer li {
    color: #f8f8f8;
}

/* ==== 32. ESTILOS PARA O RODAPÉ ==== */
.footer {
    margin-top: 60px;
    padding: 40px 0 20px;
    background-color: #f8f8f8;
    border-top: 1px solid #eee;
    font-size: 0.9em;
    overflow: visible;
}

.dark-mode .footer {
    background-color: #333;
    border-top-color: #444;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 20px;
    overflow: visible;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
    padding-right: 30px;
    overflow: visible;
}

.footer-title {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2em;
    overflow: visible;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: visible;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 20px 20px 0;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    overflow: visible;
}

.dark-mode .footer-bottom {
    border-top-color: #444;
}

.footer-info {
    margin-bottom: 15px;
    overflow: visible;
}

.footer-info p {
    margin-bottom: 5px;
    overflow: visible;
}

.footer-info a {
    color: var(--primary-color);
    text-decoration: none;
    overflow: visible;
}

.footer-info a:hover {
    text-decoration: underline;
    overflow: visible;
}

.footer-disclaimer {
    font-size: 0.85em;
    color: #888;
    max-width: 600px;
    overflow: visible;
}

.footer-credits {
    font-size: 0.85em;
    color: #888;
    margin-bottom: 15px;
    overflow: visible;
}

.footer-credits a {
    color: var(--primary-color);
    text-decoration: none;
    overflow: visible;
}

.footer-credits a:hover {
    text-decoration: underline;
    overflow: visible;
}

/* Garante que as seções informativas sejam sempre visíveis */
#how-to-section,
#article-section,
#faq-section {
    display: block !important;
    opacity: 1 !important;
    margin-top: 50px;
    margin-bottom: 50px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    overflow: visible;
}

.dark-mode #how-to-section,
.dark-mode #article-section,
.dark-mode #faq-section {
    background-color: #333;
}

#how-to-section .content-block,
#article-section .content-block,
#faq-section .content-block {
    display: block !important;
    opacity: 1 !important;
    overflow: visible;
}

.content-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 2em;
    overflow: visible;
}

/* ======================================
   HEADER NAVIGATION
   ====================================== */









/* Header para página principal */
.header-nav {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 0.8rem 1rem;
    margin-bottom: 2rem;
    border-radius: 0 0 12px 12px;
    overflow: visible;
    position: relative;
    z-index: 5;
    
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    overflow: visible;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-link {
    overflow: visible;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    overflow: visible;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-link.active {
    overflow: visible;
    background: rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

/* ======================================
   PÁGINAS SEPARADAS (FAQ E GUI)
   ====================================== */

/* Page Header */
.page-header {
    overflow: visible;
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.page-title {
    overflow: visible;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.page-subtitle {
    overflow: visible;
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* FAQ Section */
.faq-section {
    margin-bottom: 4rem;
}





/* Modo escuro para Steps */
.dark-mode .step-item {
    background: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.dark-mode .step-content h3 {
    color: var(--primary-color);
}

.dark-mode .step-content p {
    color: #f8f8f8;
}

.dark-mode .step-content li {
    color: #f8f8f8;
}

.dark-mode .step-tip {
    background: linear-gradient(135deg, #2c2c2c, #3a3a3a);
    border-left-color: #f39c12;
}

/* Modo escuro para Templates */
.dark-mode .templates-section {
    background: linear-gradient(135deg, #2c2c2c, #3a3a3a);
}

.dark-mode .template-card {
    background: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.dark-mode .template-card h3 {
    color: var(--primary-color);
}

.dark-mode .template-card p {
    color: #f8f8f8;
}

/* Modo escuro para Tips */
.dark-mode .tip-card {
    background: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.dark-mode .tip-card h3 {
    color: var(--primary-color);
}

.dark-mode .tip-card p {
    color: #f8f8f8;
}

/* Modo escuro para Contact e CTA */
.dark-mode .contact-section {
    background: linear-gradient(135deg, #333, #444);
}

.dark-mode .cta-section {
    background: linear-gradient(135deg, #333, #444);
}

/* ======================================
   ESTILOS ESPECÍFICOS PARA PÁGINAS SEPARADAS
   ====================================== */

/* Melhorar legibilidade do FAQ */
.faq-section {
    margin-bottom: 3rem;
}



/* Melhorar legibilidade dos Steps */
.steps-section {
    margin-bottom: 3rem;
}

.steps-container {
    max-width: 900px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: visible;
    border: 1px solid #e0e0e0;
}

.step-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.step-number {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
    overflow: visible;
}

.step-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    overflow: visible;
}

.step-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    font-size: 1rem;
    overflow: visible;
}

.step-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    overflow: visible;
}

.step-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--text-color);
    overflow: visible;
}

.step-tip {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-left: 4px solid #f39c12;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    overflow: visible;
}

.step-tip i {
    color: #f39c12;
    margin-right: 0.5rem;
    overflow: visible;
}

/* Melhorar legibilidade dos Templates */
.templates-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 3rem 0;
    border-radius: 12px;
    margin-bottom: 3rem;
    overflow: visible;
}

.templates-container {
    text-align: center;
    overflow: visible;
}

.templates-container h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 600;
    overflow: visible;
}

.templates-container p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.6;
    overflow: visible;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    overflow: visible;
}

.template-card {
    background: white;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    overflow: visible;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    overflow: visible;
}

.template-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    overflow: visible;
}

.template-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    overflow: visible;
}

.template-card p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--text-color);
    font-size: 1rem;
    overflow: visible;
}

/* Melhorar legibilidade dos Tips */
.tips-section {
    margin-bottom: 3rem;
}

.tips-container {
    text-align: center;
    overflow: visible;
}

.tips-container h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 600;
    overflow: visible;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    overflow: visible;
}

.tip-card {
    background: white;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    overflow: visible;
}

.tip-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    overflow: visible;
}

.tip-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
    overflow: visible;
}

.tip-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    overflow: visible;
}

.tip-card p {
    line-height: 1.6;
    color: var(--text-color);
    font-size: 1rem;
    overflow: visible;
}

/* Melhorar legibilidade dos botões */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: visible;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.2rem;
}

/* Modo escuro para páginas separadas */

.dark-mode .step-item {
    background: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-color: #444;
}

.dark-mode .step-content h3 {
    color: var(--primary-color);
}

.dark-mode .step-content p {
    color: #f8f8f8;
}

.dark-mode .step-content li {
    color: #f8f8f8;
}

.dark-mode .step-tip {
    background: linear-gradient(135deg, #2c2c2c, #3a3a3a);
    border-left-color: #f39c12;
}

.dark-mode .templates-section {
    background: linear-gradient(135deg, #2c2c2c, #3a3a3a);
}

.dark-mode .template-card {
    background: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-color: #444;
}

.dark-mode .template-card h3 {
    color: var(--primary-color);
}

.dark-mode .template-card p {
    color: #f8f8f8;
}

.dark-mode .tip-card {
    background: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-color: #444;
}

.dark-mode .tip-card h3 {
    color: var(--primary-color);
}

.dark-mode .tip-card p {
    color: #f8f8f8;
}

.dark-mode .btn-secondary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.dark-mode .btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}





/* Steps Section */
.steps-section {
    overflow: visible;
    margin-bottom: 4rem;
}

.steps-container {
    overflow: visible;
    max-width: 900px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: visible;
}

.step-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.step-number {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: 1.5rem;
    flex-shrink: 0;
    overflow: visible;
}

.step-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    overflow: visible;
}

.step-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    overflow: visible;
}

.step-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    overflow: visible;
}

.step-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    overflow: visible;
}

.step-tip {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-left: 4px solid #f39c12;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    overflow: visible;
}

.step-tip i {
    color: #f39c12;
    margin-right: 0.5rem;
    overflow: visible;
}

/* Templates Section */
.templates-section {
    margin-bottom: 4rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 3rem 0;
    border-radius: 12px;
    overflow: visible;
}

.templates-container {
    text-align: center;
    overflow: visible;
}

.templates-container h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    overflow: visible;
}

.templates-container p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    overflow: visible;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    overflow: visible;
}

.template-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    overflow: visible;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    overflow: visible;
}

.template-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.template-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    overflow: visible;
}

.template-card p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    overflow: visible;
}

/* Tips Section */
.tips-section {
    margin-bottom: 4rem;
    overflow: visible;
}

.tips-container {
    text-align: center;
    overflow: visible;
}

.tips-container h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    overflow: visible;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    overflow: visible;
}

.tip-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: visible;
}

.tip-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    overflow: visible;
}

.tip-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
    overflow: visible;
}

.tip-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    overflow: visible;
}

.tip-card p {
    line-height: 1.6;
    color: var(--text-color);
    overflow: visible;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem 0;
    border-radius: 12px;
    margin-bottom: 4rem;
    overflow: visible;
}

.contact-container {
    text-align: center;
    overflow: visible;
}

.contact-container h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
    overflow: visible;
}

.contact-container p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
    overflow: visible;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    overflow: visible;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4rem 0;
    border-radius: 12px;
    text-align: center;
    overflow: visible;
}

.cta-container h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    overflow: visible;
}

.cta-container p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    overflow: visible;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    overflow: visible;
}

/* Responsividade para páginas separadas */
@media (max-width: 768px) {
    /* Header responsivo para página principal */
    .header-nav {
        padding: 0.5rem 0;
        margin-bottom: 1rem;
        overflow: visible;
    }
    
    .nav-links {
        gap: 0.5rem;
        padding: 0 0.5rem;
        overflow: visible;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.85rem;
        white-space: nowrap;
        min-width: fit-content;
    }
    
    /* App Header responsivo */
    .app-header {
        margin-bottom: 20px;
        padding: 0 1rem;
    }
    
    .app-header h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .app-description {
        font-size: 0.95rem;
        margin-bottom: 20px;
        line-height: 1.5;
    }
    
    .logo img {
        width: 200px;
        height: auto;
        max-width: 100%;
    }
    
    /* Top Controls responsivo */
    .top-controls {
        padding: 0;
        margin: 0;
        gap: 0.2rem;
        justify-content: flex-end;
        position: relative;
        z-index: 10;
    }
    
    .settings-gear,
    .dark-mode-toggle {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
        flex-shrink: 0;
    }
    
    /* Nav Container responsivo */
    .nav-container {
        padding: 8px 0;
        margin-bottom: 20px;
        position: relative;
    }
    
    .nav-pills {
        gap: 6px;
        padding: 0 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-pill {
        padding: 6px 10px;
        font-size: 0.75rem;
        border-radius: 15px;
        white-space: nowrap;
        min-width: fit-content;
    }
    
    .nav-pill i {
        font-size: 0.7rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
        overflow: visible;
    }
    
    .step-number {
        margin: 0 auto 1rem;
    }
    
    .templates-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-container h2 {
        font-size: 2rem;
    }
    
    .cta-container p {
        font-size: 1rem;
    }
    
    .container {
        overflow: hidden; /* Evita sobreposição */
        padding: 20px;
    }
    
    .nav-container {
        overflow: visible;
    }
    
    /* Responsividade específica para páginas separadas */
    .faq-item {
        margin-bottom: 1rem;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-answer p {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .step-item {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .step-content h3 {
        font-size: 1.2rem;
    }
    
    .step-content p {
        font-size: 0.95rem;
    }
    
    .templates-section,
    .tips-section {
        padding: 2rem 0;
    }
    
    .templates-container h2,
    .tips-container h2 {
        font-size: 1.5rem;
    }
    
    .template-card,
    .tip-card {
        padding: 1.5rem;
    }
    
    .template-card h3,
    .tip-card h3 {
        font-size: 1.2rem;
    }
    
    .template-card p,
    .tip-card p {
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .btn-large {
        padding: 0.8rem 1.5rem;
        font-size: 1.1rem;
    }
}

/* Responsividade para telas muito pequenas (smartphones) */
@media (max-width: 480px) {
    /* Header ainda mais compacto */
    .header-nav {
        
    }
    
    .nav-links {
        gap: 0.3rem;
        padding: 0 0.3rem;
    }
    
    .nav-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
    
    /* App Header mais compacto */
    .app-header {
        margin-bottom: 15px;
        padding: 0 0.5rem;
    }
    
    .app-header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
    }
    
    .app-description {
        font-size: 0.9rem;
        margin-bottom: 15px;
        line-height: 1.4;
    }
    
    .logo img {
        width: 150px;
        height: auto;
    }
    
    /* Top Controls mais compactos */
    .top-controls {
        padding: 0;
        margin: 0;
        gap: 0.15rem;
        justify-content: flex-end;
        position: relative;
        z-index: 10;
    }
    
    .settings-gear,
    .dark-mode-toggle {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
        flex-shrink: 0;
    }
    
    /* Nav Container mais compacto */
    .nav-container {
        padding: 5px 0;
        margin-bottom: 15px;
    }
    
    .nav-pills {
        gap: 4px;
        padding: 0 0.3rem;
    }
    
    .nav-pill {
        padding: 4px 8px;
        font-size: 0.7rem;
        border-radius: 12px;
    }
    
    .nav-pill i {
        font-size: 0.65rem;
    }
    
    /* Progress container mais compacto */
    .progress-container {
        margin-bottom: 15px;
    }
    
    .progress-text {
        font-size: 0.85rem;
    }
}

/* Responsividade para orientação landscape em dispositivos móveis */
@media (max-width: 768px) and (orientation: landscape) {
    /* Header mais compacto em landscape */
    .header-nav {
        padding: 0.2rem 0;
        margin-bottom: 0.5rem;
    }
    
    .nav-links {
        gap: 0.4rem;
        padding: 0 0.4rem;
    }
    
    .nav-link {
        padding: 0.2rem 0.4rem;
        font-size: 0.8rem;
    }
    
    .app-header {
        margin-bottom: 10px;
        padding: 0 0.5rem;
    }
    
    .app-header h1 {
        font-size: 1.4rem;
        margin-bottom: 0.2rem;
    }
    
    .app-description {
        font-size: 0.85rem;
        margin-bottom: 10px;
        line-height: 1.3;
    }
    
    .logo img {
        width: 120px;
        height: auto;
    }
    
    .top-controls {
        padding: 0;
        margin: 0;
        gap: 0.15rem;
        justify-content: flex-end;
        position: relative;
        z-index: 10;
    }
    
    .settings-gear,
    .dark-mode-toggle {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
        flex-shrink: 0;
    }
    
    .nav-container {
        padding: 3px 0;
        margin-bottom: 10px;
    }
    
    .nav-pills {
        gap: 3px;
        padding: 0 0.3rem;
    }
    
    .nav-pill {
        padding: 3px 6px;
        font-size: 0.65rem;
        border-radius: 10px;
    }
    
    .nav-pill i {
        font-size: 0.6rem;
    }
    
    .progress-container {
        margin-bottom: 10px;
    }
    
    .progress-text {
        font-size: 0.8rem;
    }
}

/* Modo escuro para header das páginas separadas */
.dark-mode .header {
    background: linear-gradient(135deg, #333, #444);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.dark-mode .nav-list .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dark-mode .nav-list .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsividade específica para páginas separadas (FAQ e GUI) */
@media (max-width: 768px) {
    /* Header responsivo para páginas separadas */
    .app-header {
        margin-bottom: 20px;
        padding: 0 1rem;
    }
    
    .app-header h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .app-description {
        font-size: 0.95rem;
        margin-bottom: 20px;
        line-height: 1.5;
    }
    
    .logo img {
        width: 200px;
        height: auto;
        max-width: 100%;
    }
    
    /* Top Controls responsivo */
    .top-controls {
        padding: 0;
        margin: 0;
        gap: 0.2rem;
        justify-content: flex-end;
        position: relative;
        z-index: 10;
    }
    
    .settings-gear,
    .dark-mode-toggle {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    /* Header ainda mais compacto para páginas separadas */
    .app-header {
        margin-bottom: 15px;
        padding: 0 0.5rem;
    }
    
    .app-header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
    }
    
    .app-description {
        font-size: 0.9rem;
        margin-bottom: 15px;
        line-height: 1.4;
    }
    
    .logo img {
        width: 150px;
        height: auto;
    }
    
    /* Top Controls mais compactos */
    .top-controls {
        padding: 0 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .settings-gear,
    .dark-mode-toggle {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}



