body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    font-size: 14px; /* Reduzido de 16px para 14px */
}

header {
    background-color: #000000;
    color: #C0C0C0;
    padding: 0.8em 0; /* Reduzido de 1em */
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 1.5em; /* Reduzido */
}

main {
    padding: 15px; /* Reduzido de 20px */
    max-width: 1200px;
    margin: 15px auto; /* Reduzido de 20px */
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

section {
    margin-bottom: 20px; /* Reduzido de 30px */
}

h2 {
    color: #000000;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px; /* Reduzido de 10px */
    margin-bottom: 15px; /* Reduzido de 20px */
    font-size: 1.3em; /* Reduzido */
}

.form-group {
    margin-bottom: 12px; /* Reduzido de 15px */
}

.form-group label {
    display: block;
    margin-bottom: 4px; /* Reduzido de 5px */
    font-weight: bold;
    font-size: 0.9em; /* Reduzido */
}

.form-group input[type="number"] {
    width: calc(100% - 18px); /* Reduzido padding */
    padding: 8px; /* Reduzido de 10px */
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9em; /* Reduzido */
}

button {
    background-color: #000000;
    color: #C0C0C0;
    padding: 8px 16px; /* Reduzido de 10px 20px */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px; /* Reduzido de 16px */
}

button:hover {
    background-color: #333333;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px; /* Reduzido de 20px */
    font-size: 0.85em; /* Reduzido */
}

table th,
table td {
    border: 1px solid #ddd;
    padding: 6px; /* Reduzido de 8px */
    text-align: center; /* Centralizado para melhor visualização */
    font-size: 0.8em; /* Reduzido */
}

table th {
    background-color: #f2f2f2;
    font-weight: bold;
    font-size: 0.75em; /* Ainda menor para cabeçalhos */
}

footer {
    text-align: center;
    padding: 15px; /* Reduzido de 20px */
    margin-top: 20px; /* Reduzido de 30px */
    color: #777;
    font-size: 0.8em; /* Reduzido */
}

.content-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* Reduzido de 20px */
    justify-content: space-between;
}

.input-section {
    flex: 1;
    min-width: 280px; /* Reduzido de 300px */
    max-width: 45%;
}

.output-section {
    flex: 2;
    min-width: 280px; /* Reduzido de 300px */
    max-width: 55%;
}

@media (max-width: 768px) {
    .input-section,
    .output-section {
        max-width: 100%;
    }
}

.table-grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between; /* Alterado para empurrar os itens para as extremidades */
}

.table-half {
    flex: 1 1 calc(50% - 10px); /* Tenta ocupar 50% do espaço menos metade do gap */
    min-width: 280px; /* Ajuste o min-width se 300px estiver apertado */
}

.summary-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #eee;
    text-align: right;
}

.summary-section p {
    margin: 5px 0;
    font-size: 1.1em;
}

.summary-section strong {
    color: #333;
}

.pdf-logo {
    display: none; /* Oculta o logo por padrão na visualização web */
}

/* Melhorias na interface */
.form-group input[type="number"]:focus {
    border-color: #000000;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.error-message {
    color: #d32f2f;
    font-size: 0.9em;
    margin-top: 5px;
    display: none;
}

.success-message {
    color: #C0C0C0;
    font-size: 0.9em;
    margin-top: 10px;
    padding: 10px;
    background-color: #333333;
    border-radius: 4px;
    display: none;
}

/* Animação para as tabelas */
.table-container {
    transition: opacity 0.3s ease-in-out;
}

.table-container.loading {
    opacity: 0.5;
}

/* Responsividade melhorada */
@media (max-width: 1024px) {
    .table-grid-container {
        flex-direction: column;
    }
    
    .table-half {
        flex: 1 1 100%;
        min-width: auto;
    }
}

/* Estilo para campos obrigatórios */
.form-group label::after {
    content: " *";
    color: #d32f2f;
}

/* Melhor visualização dos totais */
.summary-section {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #000000;
}

.summary-section .highlight {
    font-size: 1.3em;
    color: #000000;
    font-weight: bold;
}
/* Di
sclaimer Section */
.disclaimer-section {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #000000;
}

.disclaimer-content h3 {
    color: #000000;
    margin: 0 0 10px 0;
    font-size: 1.1em;
}

.disclaimer-content p {
    margin: 8px 0;
    font-size: 0.9em;
    color: #333;
}

.social-section {
    margin-top: 15px;
    text-align: center;
}

.social-section p {
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #000000;
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
    z-index: -1;
}

.social-icon:hover::before {
    transform: scale(1);
}

.social-icon svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
    z-index: 1;
}

/* Instagram */
.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.social-icon.instagram:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(240, 148, 51, 0.4);
}

.social-icon.instagram:hover svg {
    transform: rotate(15deg);
}

/* YouTube */
.social-icon.youtube {
    background-color: #FF0000;
    color: white;
}

.social-icon.youtube:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
}

.social-icon.youtube:hover svg {
    transform: scale(1.2);
}

/* Telegram */
.social-icon.telegram {
    background-color: #0088cc;
    color: white;
}

.social-icon.telegram:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 136, 204, 0.4);
}

.social-icon.telegram:hover svg {
    transform: rotate(-15deg);
}

/* Animação de pulso para chamar atenção */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

.social-icons:hover .social-icon:not(:hover) {
    opacity: 0.6;
    transform: scale(0.9);
}

/* Responsividade para o disclaimer */
@media (max-width: 768px) {
    .disclaimer-section {
        margin-top: 15px;
        padding: 12px;
    }
    
    .social-icons {
        gap: 12px;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
    }
    
    .social-icon svg {
        width: 20px;
        height: 20px;
    }
}