:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --background-color: #f8f9fa;
    --text-color: #333;
    --border-color: #dee2e6;
    --input-focus: #80bdff;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s;
}

.container:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
}

header {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #1e40af, #6366f1);
    background-size: 200% 100%;
    animation: headerGradient 3s ease-in-out infinite;
}

@keyframes headerGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.header-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
    text-align: center;
}

.header-logo {
    flex-shrink: 0;
}

.header-logo img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.header-text {
    text-align: center;
    flex: 1;
    min-width: 0;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
}

header h1 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header p {
    color: var(--text-medium);
    font-size: 1rem;
    margin: 0;
    line-height: 1.4;
    font-weight: 400;
    line-height: 1.5;
    font-weight: 500;
    opacity: 0.9;
}

/* Responsividade do Header */
@media (max-width: 768px) {
    header {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1.2rem;
        align-items: center;
    }
    
    .header-brand {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        align-items: center;
    }
    
    .header-text {
        text-align: center;
        align-items: center;
    }
    
    .header-actions {
        margin-top: 0;
        align-items: center;
    }
    
    header h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    header p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    header h1 {
        font-size: 1.6rem;
    }
    
    header p {
        font-size: 0.9rem;
    }
}

.form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: #f9fbfd;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.form-section h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}

.form-group {
    margin-bottom: 1.2rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--input-focus);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.15);
}

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

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f1f3f6;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    transition: background 0.2s;
}

.checkbox-item:hover {
    background: #e9ecef;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.2s;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
    box-shadow: 0 2px 8px rgba(0,123,255,0.10);
}

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

.btn-secondary:hover {
    background-color: #545b62;
}

/* Estilos para Modal de Configurações */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #fff;
    margin: 2% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    border-radius: 8px 8px 0 0;
}

.modal-header h2 {
    margin: 0;
    color: white;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.2s;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

/* Tabs */
.config-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.tab-button {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    font-weight: 500;
    color: var(--secondary-color);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background-color: rgba(0, 123, 255, 0.05);
}

.tab-button:hover:not(.active) {
    background-color: rgba(0, 123, 255, 0.02);
    color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Seções de Import/Export */
.import-export-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: #f9fbfd;
}

.import-export-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.config-preview {
    margin-top: 2rem;
}

.config-preview pre {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
    color: var(--text-color);
}

/* Botão de configurações */
.btn-config {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    transition: all 0.3s;
    z-index: 100;
}

.btn-config:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

/* Botão de perigo */
.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* Calculadora Interface */
.calculadora-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.calculadora-section h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.calculadora-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.resultado-section {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-top: 1.5rem;
}

.resultado-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.resultado-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
}

.resultado-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.resultado-valor {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}

.resultado-destaque {
    background: linear-gradient(135deg, var(--success-color), #218838);
    color: white;
    font-size: 1.1rem;
    text-align: center;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
}

.resultado-destaque .valor {
    font-size: 1.5rem;
    font-weight: bold;
    display: block;
    margin-top: 0.5rem;
}

/* Novos estilos para a estrutura reformulada */

/* Loading Spinner */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loading-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: pulse 2s ease-in-out infinite;
}

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

.loading-overlay p {
    margin: 0;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.1rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Header melhorado */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

/* Seções priorizadas */
.priority-section {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, #f8fbff, #f0f8ff);
    position: relative;
}

.priority-section::before {
    content: '⭐ PRINCIPAL';
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Headers de seção */
.section-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-header h2 {
    margin-bottom: 0.5rem;
}

.section-description {
    color: var(--secondary-color);
    font-size: 0.95rem;
    margin: 0;
}

/* Grids aprimorados */
.calculadora-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Campos obrigatórios */
.required {
    color: var(--danger-color);
    font-weight: bold;
}

/* Dicas de campo */
.field-hint {
    display: block;
    color: var(--secondary-color);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    font-style: italic;
}

/* Validação visual */
.validation-feedback {
    font-size: 0.8rem;
    margin-top: 0.25rem;
    min-height: 1rem;
}

.validation-feedback.error {
    color: var(--danger-color);
}

.validation-feedback.success {
    color: var(--success-color);
}

/* Contador de caracteres */
#desc-counter {
    font-weight: bold;
    color: var(--primary-color);
}

/* Serviços em grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.service-item {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.service-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
}

.service-item input[type="checkbox"] {
    display: none;
}

.service-item input[type="checkbox"]:checked + .service-label {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    border-color: var(--primary-color);
}

.service-label {
    display: flex;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    gap: 1rem;
    transition: all 0.3s ease;
    border: none;
    background: white;
}

.service-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.service-content {
    flex: 1;
}

.service-content strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.service-content small {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Resultado expandido */
.resultado-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.detalhes-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.detalhes-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Preços de venda destacados */
.precos-venda {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.lista-escalonamento {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lista-escalonamento li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: var(--text-color);
}

.lista-escalonamento li strong {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.preco-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
}

.preco-consumidor {
    border-left-color: var(--success-color);
}

.preco-lojista {
    border-left-color: var(--primary-color);
}

.preco-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.preco-valor {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.lucro-info {
    font-size: 0.85rem;
    color: var(--success-color);
    font-weight: 500;
}

/* Ações principais */
.main-actions {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    text-align: center;
}

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

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

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

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #138496;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
    padding: 0.5rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
    padding: 0;
}

/* Rodapé */
.main-footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    margin-top: 3rem;
    padding: 2rem 0 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.footer-section p {
    margin-bottom: 0.5rem;
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* Estilos do modal de ajuda */
.ajuda-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 1rem;
    backdrop-filter: blur(3px);
}

.ajuda-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

.ajuda-content h3 {
    margin: 0 0 1.5rem 0;
    color: var(--primary-color);
    font-size: 1.8rem;
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 1rem;
}

.ajuda-content::before {
    content: '×';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.ajuda-content::before:hover {
    color: var(--danger-color);
}

.btn-close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 1;
}

.btn-close-modal:hover {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

/* Estilos adicionais para ajuda modal */
.ajuda-secao {
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
}

.ajuda-secao h4 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
}

.ajuda-secao p {
    margin: 0;
    color: var(--text-color);
}

.ajuda-atalhos {
    background: #e9ecef;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
}

.ajuda-atalhos h4 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
}

.ajuda-atalhos p {
    margin: 0.5rem 0;
    font-family: 'Courier New', monospace;
}

.atalhos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.atalho-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: white;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.atalho-item kbd {
    background: #f1f3f4;
    border: 1px solid #dadce0;
    border-radius: 4px;
    color: #3c4043;
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.2rem 0.4rem;
    min-width: 2rem;
    text-align: center;
}

.ajuda-dicas {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
}

.ajuda-dicas h4 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
}

.ajuda-dicas ul {
    margin: 0;
    padding-left: 1.5rem;
}

.ajuda-dicas li {
    margin: 0.5rem 0;
    color: var(--text-color);
}

.ajuda-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

/* Melhorias para inputs com erro/sucesso */
input.error, select.error, textarea.error {
    border-color: var(--danger-color) !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1) !important;
}

input.success, select.success, textarea.success {
    border-color: var(--success-color) !important;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1) !important;
}

/* Animações suaves */
.resultado-section, .detalhes-section {
    animation: slideInUp 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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

/* Melhorias para mobile */
@media (max-width: 768px) {
    .ajuda-modal {
        padding: 0.5rem;
    }
    
    .ajuda-content {
        padding: 1.5rem !important;
        margin: 0 !important;
        max-height: 95vh !important;
        border-radius: 8px;
    }
    
    .ajuda-content h3 {
        font-size: 1.4rem;
    }
    
    .atalhos-grid {
        grid-template-columns: 1fr;
    }
    
    .ajuda-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .header-content h1 {
        font-size: 1.8rem;
    }
    
    .section-header {
        text-align: left;
    }
    
    .priority-section::before {
        position: relative;
        top: 0;
        left: 0;
        display: block;
        text-align: center;
        margin-bottom: 1rem;
    }
}

/* Estados de carregamento */
.loading-state {
    opacity: 0.6;
    pointer-events: none;
}

.loading-state::after {
    content: '🔄';
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

/* Tooltips simples */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
}

/* =============================================================================
   FOOTER OFICIAL ALTTAB
   ============================================================================= */

.alttab-footer {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    margin-top: 4rem;
    padding: 3rem 0 1rem;
    position: relative;
    overflow: hidden;
}

.alttab-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #60a5fa, #3b82f6, #1d4ed8, #1e40af);
    background-size: 200% 100%;
    animation: gradientMove 3s ease-in-out infinite;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.alttab-footer .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 0.95rem;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.contact-info i {
    width: 16px;
    color: #93c5fd;
}

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

.footer-links li {
    margin: 0.5rem 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #93c5fd;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #93c5fd;
}

.footer-bottom-links span {
    color: rgba(255, 255, 255, 0.5);
}

/* Responsividade do Footer */
@media (max-width: 768px) {
    .alttab-footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-container {
        padding: 0 1rem;
    }
    
    .alttab-footer .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-logo {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .contact-info p {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* Animação suave para elementos que aparecem */
.footer-section {
    animation: fadeInUp 0.6s ease-out;
}

.footer-section:nth-child(2) {
    animation-delay: 0.1s;
}

.footer-section:nth-child(3) {
    animation-delay: 0.2s;
}

.footer-section:nth-child(4) {
    animation-delay: 0.3s;
}

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

/* Esconder o footer antigo */
.main-footer {
    display: none;
}