/* Reset e Configurações Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta de cores jurídicas */
    --primary-gold: #C5A572;
    --primary-navy: #1A2332;
    --secondary-navy: #2C3E50;
    --accent-gold: #D4AF37;
    --light-gold: #F5F1E8;
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --medium-gray: #6C757D;
    --dark-gray: #343A40;
    --success: #28A745;
    --info: #17A2B8;
    --warning: #FFC107;
    
    /* Cores específicas para deduções */
    --deducao-acessoria-bg: #FFF5F5;
    --deducao-acessoria-border: #FC8181;
    --deducao-acessoria-text: #C53030;
    --deducao-acessoria-light: #FED7D7;
    
    --deducao-legal-bg: #FAFAFA;
    --deducao-legal-border: #D1D5DB;
    --deducao-legal-text: #6B7280;
    --deducao-legal-light: #F3F4F6;
    
    --valor-positivo-bg: #F0FDF4;
    --valor-positivo-border: #4ADE80;
    --valor-positivo-text: #16A34A;
    
    --valor-negativo-bg: #FEF2F2;
    --valor-negativo-border: #F87171;
    --valor-negativo-text: #DC2626;
    
    /* Sombras e gradientes */
    --shadow-card: 0 8px 32px rgba(26, 35, 50, 0.12);
    --shadow-elevated: 0 16px 48px rgba(26, 35, 50, 0.18);
    --gradient-primary: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-navy) 100%);
    --gradient-gold: linear-gradient(135deg, var(--primary-gold) 0%, var(--accent-gold) 100%);
    --gradient-light: linear-gradient(135deg, var(--light-gold) 0%, var(--white) 100%);
    
    /* Tipografia */
    --font-primary: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, #F5F7FA 0%, #C3CFE2 100%);
    min-height: 100vh;
    padding: 20px;
    color: var(--dark-gray);
    line-height: 1.6;
    padding-bottom: 0 !important;
}

/* Container Principal */
.container {
    max-width: 1400px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-elevated);
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Header com tema jurídico */
.header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M30 0l30 30-30 30L0 30z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") center/60px;
    opacity: 0.1;
}

.header h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.header::after {
    content: '⚖️';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    opacity: 0.3;
}

/* Sistema de Tabs Modernizado */
.tabs-container {
    background: var(--light-gray);
    padding: 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.tab-button {
    background: transparent;
    border: none;
    padding: 20px 28px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--medium-gray);
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
    font-family: var(--font-primary);
}

.tab-button:hover {
    color: var(--primary-navy);
    background: linear-gradient(180deg, transparent 0%, rgba(197, 165, 114, 0.08) 100%);
}

.tab-button.active {
    color: var(--primary-navy);
    background: linear-gradient(180deg, transparent 0%, rgba(197, 165, 114, 0.12) 100%);
    border-bottom-color: var(--primary-gold);
}

/* Conteúdo das Tabs */
.tab-content {
    display: none;
    padding: 40px;
    min-height: 500px;
    background: var(--gradient-light);
}

.tab-content.active {
    display: block;
}

/* Seções de Formulário */
.form-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.form-group {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid rgba(197, 165, 114, 0.2);
    box-shadow: var(--shadow-card);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.form-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-gold);
}

.form-group:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevated);
    border-color: var(--primary-gold);
}

.form-group h3 {
    color: var(--primary-navy);
    margin-bottom: 24px;
    font-size: 1.4em;
    font-weight: 700;
    font-family: var(--font-heading);
    border-bottom: 2px solid var(--light-gold);
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
/* Copie e cole no seu style.css */
.label-with-button {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.label-with-button label {
    margin-bottom: 0;
}

.btn-sindifaz {
    padding: 4px 8px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-primary);
    font-weight: 500;
}

.btn-sindifaz:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-sindifaz:active {
    transform: translateY(-1px);
    background: #545b62;
}
/* SEÇÕES COM CORES ESPECÍFICAS */

/* Seção de Deduções Acessórias */
.deducoes-acessorias {
    border-left: 3px solid #DC2626;
}

.deducoes-acessorias .table-container {
    background: transparent;
}

.deducoes-acessorias h3 {
    color: #DC2626;
    background: transparent;
    font-weight: 600;
}

/* Seção de Deduções Legais */
.deducoes-legais {
    border-left: 3px solid #1F2937;
}

.deducoes-legais .table-container {
    background: transparent;
}

.deducoes-legais h3 {
    color: #1F2937;
    background: transparent;
    font-weight: 600;
}

/* Seção de Cessões do Beneficiário */
.cessoes-beneficiario {
    border-left: 3px solid #3B82F6;
}

.cessoes-beneficiario .table-container {
    background: transparent;
}

.cessoes-beneficiario h3 {
    color: #1E40AF;
    background: transparent;
    font-weight: 600;
}

/* Seção de Pagamentos */
.pagamentos-finais {
    border-left: 3px solid #10B981;
}

.pagamentos-finais .table-container {
    background: transparent;
}

.pagamentos-finais h3 {
    color: #065F46;
    background: transparent;
    font-weight: 600;
}

.pagamentos-acordo {
    border-left: 3px solid #10B981;
}

.pagamentos-acordo .table-container {
    background: transparent;
    margin-bottom: 20px; /* Espaço entre as tabelas */
}

.pagamentos-acordo h3 {
    color: #065F46;
    background: transparent;
    font-weight: 600;
}

/* Larguras para 1ª TABELA (4 colunas) - Cálculo do Deságio */
.pagamentos-acordo .table-container:first-child table th:nth-child(1) { width: 10%; }
.pagamentos-acordo .table-container:first-child table th:nth-child(2) { width: 30%; }
.pagamentos-acordo .table-container:first-child table th:nth-child(3) { width: 30%; }
.pagamentos-acordo .table-container:first-child table th:nth-child(4) { width: 30%; }

/* Larguras para 2ª TABELA (6 colunas) - Pagamentos Finais */
.pagamentos-acordo .table-container:last-child table th:nth-child(1) { width: 23%; }
.pagamentos-acordo .table-container:last-child table th:nth-child(2) { width: 15%; }
.pagamentos-acordo .table-container:last-child table th:nth-child(3) { width: 15%; }
.pagamentos-acordo .table-container:last-child table th:nth-child(4) { width: 15%; }
.pagamentos-acordo .table-container:last-child table th:nth-child(5) { width: 15%; }
.pagamentos-acordo .table-container:last-child table th:nth-child(6) { width: 7%; }

/* Seção de Valor Final */
.valor-final h3 {
    color: #059669;
    font-weight: 700;
}

/* Card de Alerta Didático */
.alerta-didatico {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    border: 2px solid #F59E0B;
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
    position: relative;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.2);
}

.alerta-didatico::before {
    content: '💡';
    position: absolute;
    top: -12px;
    left: 24px;
    background: #FEF3C7;
    padding: 0 10px;
    font-size: 1.5em;
}

.alerta-didatico h4 {
    color: #92400E;
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alerta-didatico p {
    color: #B45309;
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 8px;
}

/* Elementos de Input */
.input-group {
    margin-bottom: 20px;
}

.explicacao-juridica {
    background: linear-gradient(135deg, #FAFAFA, #F5F5F5);
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 16px;
    margin: 12px 0;
    font-size: 0.9em;
    line-height: 1.5;
}

.explicacao-juridica .titulo {
    color: var(--primary-navy);
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.explicacao-juridica .titulo::before {
    content: '⚖️';
    font-size: 1.2em;
}

.tipo-beneficiario {
    display: none;
}
.tipo-beneficiario.show {
    display: block;
}

/* Estilos para adesão ao acordo - Adequados ao tema */
.acordo-item {
    background: var(--white);
    border: 2px solid var(--light-gold);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-card);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.acordo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gold);
    transition: all 0.2s ease;
}

.acordo-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevated);
    border-color: var(--primary-gold);
}

.acordo-item.selected {
    border-color: var(--success);
    background: var(--valor-positivo-bg);
    box-shadow: 0 8px 32px rgba(40, 167, 69, 0.2);
}

.acordo-item.selected::before {
    background: var(--success);
    width: 6px;
}

.acordo-checkbox {
    margin-right: 20px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-gold);
}

.acordo-info {
    flex: 1;
}

.acordo-name {
    font-weight: 700;
    color: var(--primary-navy);
    font-size: 1.1em;
    margin-bottom: 4px;
    font-family: var(--font-heading);
}

.acordo-details {
    font-size: 0.9em;
    color: var(--medium-gray);
    font-weight: 500;
}

.acordo-item.selected .acordo-name {
    color: var(--success);
}

.acordo-item.selected .acordo-details {
    color: var(--valor-positivo-text);
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-navy);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input, select {
    width: 100%;
    padding: 16px;
    border: 2px solid #E9ECEF;
    border-radius: 12px;
    font-size: 16px;
    font-family: var(--font-primary);
    transition: all 0.2s ease;
    background: var(--white);
    color: var(--dark-gray);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 4px rgba(197, 165, 114, 0.15);
    transform: translateY(-1px);
}

input:hover, select:hover {
    border-color: var(--primary-gold);
}

/* Botões Modernizados */
.btn-container {
    text-align: center;
    padding: 40px;
    background: var(--light-gray);
}

.btn {
    background: var(--gradient-gold);
    color: var(--white);
    padding: 18px 36px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 8px 32px rgba(197, 165, 114, 0.4);
    margin: 0 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    font-family: var(--font-primary);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(197, 165, 114, 0.5);
}

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

.btn-secondary {
    background: linear-gradient(135deg, var(--medium-gray), var(--dark-gray));
    box-shadow: 0 8px 32px rgba(108, 117, 125, 0.4);
}

.btn-secondary:hover {
    box-shadow: 0 16px 48px rgba(108, 117, 125, 0.5);
}

.btn-tercy {
    background: linear-gradient(135deg, var(--info) 0%, var(--success) 100%);
    box-shadow: 0 8px 32px rgba(23, 162, 184, 0.4);
}

/* Resultados e Tabelas */
.results {
    padding: 40px;
    background: var(--white);
}

.table-container {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    margin: 24px 0;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(197, 165, 114, 0.1);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 16px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

th {
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 700;
    padding: 20px 16px;
    text-align: left;
    font-family: var(--font-primary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 16px;
    background: var(--white);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: var(--dark-gray);
    font-weight: 500;
}

tr:nth-child(even):not(.highlight) {
    background: rgba(245, 241, 232, 0.3);
}

tr:hover td {
    background: rgba(197, 165, 114, 0.1);
}

tr.highlight td {
    background: transparent !important;
}

/* Fundo do highlight */
tr.highlight {
    background: linear-gradient(135deg, #E8F5E8, #D4EDDA) !important;
    font-weight: 700;
    color: var(--success);
}

/* Títulos de Seção */
.section-title {
    color: var(--primary-navy);
    font-size: 1.8em;
    font-weight: 700;
    font-family: var(--font-heading);
    margin: 32px 0 16px 0;
    padding: 20px;
    background: var(--gradient-light);
    border-radius: 12px;
    border-left: 6px solid var(--primary-gold);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: '⚖️';
    font-size: 1.2em;
}

/* Estados e Utilitários */
.hidden {
    display: none;
}

.loading {
    text-align: center;
    padding: 40px;
    font-style: italic;
    color: var(--medium-gray);
    font-size: 18px;
}

.loading::before {
    content: '⏳ ';
}

/* Itens de Advogado */
.advogado-item {
    background: var(--light-gold);
    padding: 24px;
    margin: 16px 0;
    border-radius: 12px;
    border-left: 4px solid var(--success);
    box-shadow: var(--shadow-card);
    transition: all 0.2s ease;
}

.advogado-item:hover {
    transform: translateX(2px);
    box-shadow: var(--shadow-elevated);
}

.advogado-header {
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 12px;
    font-size: 1.1em;
}

.advogado-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: end;
}

.success-box {
    background: #D4EDDA;
    border-left-color: var(--success);
    color: #155724;
    border-radius: 8px;
    padding: 16px;
    font-weight: 600;
}

.selic-acumulada {
    background: linear-gradient(135deg, #E8E6FA, #D4D2F7);
    font-weight: 700;
    color: var(--primary-navy);
    padding: 8px 12px;
    border-radius: 6px;
}

.section-header {
    background-color: #568f58 !important;
    color: white !important;
    text-align: center !important;
    font-size: 16px;
    padding: 12px !important;
}

/* Tabela IR Simplificada */
.ir-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #E9ECEF;
}

.ir-table th {
    background: #F8F9FA;
    color: var(--primary-navy);
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    border-right: 1px solid #DEE2E6;
    width: 60%;
}

.ir-table td {
    padding: 12px 16px;
    font-weight: 500;
    color: var(--dark-gray);
    background: var(--white);
    border-bottom: 1px solid #F1F3F4;
    text-align: right;
    font-family: 'Courier New', monospace;
}

.ir-table tr:hover {
    background: rgba(197, 165, 114, 0.05);
}

.ir-table tr:last-child th,
.ir-table tr:last-child td {
    border-bottom: none;
}

.ir-table .total-row th {
    background: var(--primary-navy);
    color: var(--white);
    font-weight: 700;
}

.ir-table .total-row td {
    background: var(--primary-navy);
    color: var(--white);
    font-weight: 700;
    font-size: 16px;
}

.notas-explicativas {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    margin: 24px 0;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(197, 165, 114, 0.2);
    position: relative;
    overflow: hidden;
}

.notas-explicativas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-gold);
}

.notas-explicativas h3 {
    color: var(--primary-navy);
    margin-bottom: 24px;
    font-size: 1.4em;
    font-weight: 700;
    font-family: var(--font-heading);
    border-bottom: 2px solid var(--light-gold);
    padding-bottom: 12px;
}

.textarea-notas {
    width: 100%;
    height: 250px; /* Altura fixa */
    padding: 20px;
    border: 2px solid #E9ECEF;
    border-radius: 12px;
    font-size: 14px;
    font-family: var(--font-primary);
    line-height: 1.6;
    transition: all 0.2s ease;
    background: var(--white);
    color: var(--dark-gray);
    resize: vertical; /* Permite redimensionar manualmente */
    outline: none;
    overflow-y: auto; /* Scroll normal */
}

.textarea-notas:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 4px rgba(197, 165, 114, 0.15);
}

.textarea-notas:hover {
    border-color: var(--primary-gold);
}

.footer {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-navy) 100%);
    color: var(--white);
    padding: 10px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 2px solid var(--primary-gold);
    margin: 20px -20px 0 -20px;
    border-radius: 0;
}

.footer-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-icon {
    font-size: 1.5rem;
    color: var(--primary-gold);
    margin-bottom: 2px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.copyright-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 2px;
    letter-spacing: 0.3px;
}


.developer-name {
    color: var(--primary-gold);
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}


.subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    margin-bottom: 4px;
}


.divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
    margin: 8px 0;
    border-radius: 2px;
}

.footer-meta {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    letter-spacing: 0.2px;
}

#tab2 .checkbox-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    background: #F5F1E8;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(197, 165, 114, 0.3);
    margin-top: 8px;
}

#tab2 .checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

#tab2 .checkbox-item input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #C5A572;
}

#tab2 .checkbox-item label {
    margin: 0;
    text-transform: none;
    letter-spacing: normal;
    font-size: 12px;
    color: #1a2332;
    font-weight: 500;
}

#tab2 .btn-add {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 15px 0;
}

#tab2 .btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(40, 167, 69, 0.4);
}

#tab2 .btn-editar {
    background: linear-gradient(135deg, #ffc107b6, #ffca2c91);
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    color: #212529;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 8px 0 0;
}

#tab2 .btn-editar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 193, 7, 0.4);
}

/* Botão remover - vermelho */
#tab2 .btn-remover {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#tab2 .btn-remover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.4);
}


#tab2 .date-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

/* Responsividade */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2.2rem;
    }
    
    .tabs-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .tabs-nav::-webkit-scrollbar {
        display: none;
    }
    
    .tab-button {
        min-width: 140px;
        font-size: 13px;
        padding: 16px 20px;
    }
    
    .form-section {
        grid-template-columns: 1fr;
    }
    
    .advogado-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .container {
        margin: 10px;
        border-radius: 16px;
    }
    
    .tab-content,
    .results {
        padding: 24px;
    }
    
    .form-group {
        padding: 24px;
    }
    
    .btn {
        display: block;
        margin: 8px auto;
        width: 80%;
        max-width: 300px;
    }

    .notas-explicativas {
        padding: 20px;
    }
    
    .textarea-notas {
        min-height: 150px;
        padding: 16px;
        font-size: 13px;
    }
    .footer {
        padding: 12px 0;
    }
    
    .footer-content {
        padding: 0 16px;
    }
    
    .footer-icon {
        font-size: 1.3rem;
    }
    
    .copyright-text {
        font-size: 13px;
    }
    
    .subtitle {
        font-size: 11px;
    }
    
    .footer-meta {
        font-size: 9px;
    }
}


@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .header {
        padding: 30px 20px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .tab-content,
    .results,
    .form-group {
        padding: 20px;
    }
    .footer {
        padding: 10px 0;
    }
    
    .footer-content {
        padding: 0 12px;
    }
    
    .copyright-text {
        font-size: 12px;
        line-height: 1.3;
    }
    
    .subtitle {
        font-size: 10px;
        line-height: 1.3;
    }
}

/* Animações e Micro-interações */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

