@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');


:root {
    --bg-color: #f3f4f6;
    --panel-bg: #ffffff;
    --panel-border: #e5e7eb;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --accent-color: #2a5eb9;
    --accent-hover: #1e458e;
    --input-bg: #f9fafb;
    --highlight: #059669;
    --warning: #d97706;

    /* Theme colors for buttons */
    --primary-navy: #2a5eb9;
    --primary-hover: #1e458e;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
     font-family: "Figtree", sans-serif;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
}

body.modal-open {
    overflow: hidden;
}

.calculator-wrapper {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* --- App Header --- */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-icon {
    width: 48px;
    height: 48px;
    background-color: var(--primary-navy);
    color: #ffffff;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-title h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-navy);
    margin: 0;
}

.btn-account {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #e2e8f0;
    color: var(--primary-navy);
    padding: 0.65rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-account:hover {
    background-color: #cbd5e1;
}

/* --- Form Layout --- */
.form-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row.form-cols-2 > .input-group,
.form-row.form-cols-2 > .full-width {
    flex: 1 1 50%;
}

.form-row.align-start {
    align-items: flex-start;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex: 1;
}

.input-group.full-width {
    flex: 1 1 100%;
}

label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #334155;
}

/* --- Input Types --- */
input, select {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

input:focus, select:focus {
    border-color: var(--primary-navy);
    box-shadow: 0 0 0 3px rgba(26, 34, 127, 0.1);
}

input::placeholder {
    color: #94a3b8;
}

/* Prefixes & Suffixes */
.input-with-prefix, .input-with-suffix {
    position: relative;
    display: flex;
    align-items: center;
}

.prefix {
    position: absolute;
    left: 1rem;
    color: #64748b;
    font-weight: 600;
}

.suffix {
    position: absolute;
    right: 1rem;
    color: #64748b;
    font-weight: 600;
}

.prefixed-input {
    padding-left: 2.5rem;
}

.suffixed-input {
    padding-right: 2.5rem;
}

/* Select Box custom icon */
.select-wrapper {
    position: relative;
}

.select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2.5rem;
    color: #334155;
    cursor: pointer;
}

.select-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #64748b;
}

/* Custom Radio Buttons */
.custom-radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.custom-radio {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #475569;
    font-size: 0.95rem;
    transition: all 0.2s;
    background: #ffffff;
    flex: 1;
    justify-content: center;
}

.custom-radio:hover {
    border-color: #cbd5e1;
}

.custom-radio.active {
    border-color: var(--primary-navy);
    background-color: #f8fafc;
    color: var(--primary-navy);
}

.custom-radio input[type="radio"] {
    display: none;
}

.radio-circle {
    width: 16px;
    height: 16px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.custom-radio.active .radio-circle {
    border-color: var(--primary-navy);
}

.custom-radio.active .radio-circle::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary-navy);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.form-divider {
    border: none;
    border-top: 1px solid #f1f5f9;
    margin: 2rem 0;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.results-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.results-section.full-width {
    grid-column: 1 / -1;
}

.results-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--panel-border);
    padding-bottom: 0.75rem;
    margin-bottom: 0.5rem;
}

.result-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f4f5f7;
    padding: 0.85rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    border: 1px solid #eaeaea;
    color: #4b5563;
}

.result-item span:first-child small.percent-label {
    color: var(--accent-color);
    font-weight: 500;
    margin-left: 0.5rem;
    font-size: 0.85em;
    opacity: 0.8;
}

.result-item span:last-child {
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    color: #1f2937;
}

.result-total {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--panel-border);
    font-weight: 700;
    font-size: 1.1rem;
    color: #1f2937;
}

.result-total.highlight span:last-child {
    color: var(--highlight);
    font-size: 1.25rem;
}

.provisions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.in-warning {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--warning);
    font-size: 0.85rem;
    line-height: 1.4;
}

.hidden {
    display: none !important;
}

/* Botão Primário */
.btn-print-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: var(--primary-navy);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 99px; /* Pill shape */
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(26, 34, 127, 0.2);
}

.btn-print-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(26, 34, 127, 0.3);
}

.btn-print-primary:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Botão Secundário */
.btn-print-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: var(--white);
  color: var(--primary-navy);
  padding: 12px 24px;
  border-radius: 99px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-print-secondary:hover {
  background-color: #f8fafc;
  border-color: var(--primary-navy);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background: var(--panel-bg);
    width: 100%;
    max-width: 1200px;
    margin-top: 2rem;
    position: relative;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

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

/* Terms Modal Specifics */
.terms-modal {
    max-width: 800px;
    background: #ffffff;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.terms-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.warning-icon {
    width: 56px;
    height: 56px;
    background-color: rgba(217, 119, 6, 0.1); /* Light amber background */
    color: #d97706;
    border-radius: 12px; /* Square-ish with rounded corners like screenshot */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.terms-header-text h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.35rem;
}

.terms-header-text p {
    color: #4b5563;
    font-size: 0.95rem;
}

.terms-body {
    max-height: 45vh;
    overflow-y: auto;
    padding-right: 1.5rem;
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1.5rem;
}

.terms-body hr {
    border: none;
    border-top: 1px solid #cbd5e1;
    margin-top: 1rem;
    margin-bottom: 2.5rem;
}

/* Custom Scrollbar for terms */
.terms-body::-webkit-scrollbar {
    width: 6px;
}
.terms-body::-webkit-scrollbar-track {
    background: #f3f4f6; 
    border-radius: 4px;
}
.terms-body::-webkit-scrollbar-thumb {
    background: #c1c5cb; 
    border-radius: 4px;
}
.terms-body::-webkit-scrollbar-thumb:hover {
    background: #9ca3af; 
}

.terms-section {
    margin-bottom: 2rem;
}

.terms-section h3 {
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.terms-content {
    padding-left: 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.terms-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.terms-item h4 {
    font-size: 1.05rem;
    color: #334155;
    font-weight: 800;
}

.terms-item p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
    margin: 0;
}

.terms-conclusion {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.6;
    margin: 0;
}

.terms-table {
    width: 100%;
    margin-top: 1rem;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.terms-table th, .terms-table td {
    padding: 0.8rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.terms-table th {
    font-weight: 600;
    color: #0f172a;
    background-color: #f8fafc;
}

.terms-table tr:last-child td {
    border-bottom: none;
}

.terms-table th:not(:first-child),
.terms-table td:not(:first-child) {
    text-align: center;
}

.lucide-inline {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-right: 0.25rem;
    flex-shrink: 0;
}

.terms-info-box {
    background-color: #f8fafc; /* Very light slate box */
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem;
    margin-top: 2rem;
    color: #475569;
    font-size: 0.9rem;
}

.terms-info-box em {
    font-style: italic;
}

.terms-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
}

.terms-checkbox-area {
    flex: 1;
}

.terms-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #1f2937;
    font-weight: 500;
}

.terms-checkbox-label input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 1.15rem;
    height: 1.15rem;
    cursor: pointer;
}

.terms-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-text {
    background: none;
    border: none;
    color: #4b5563;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    font-family: 'Inter', sans-serif;
    transition: color 0.2s;
}

.btn-text:hover {
    color: #111827;
}

/* Contract Prompt Modal Specifics */
.contract-prompt-modal {
    max-width: 550px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.contract-prompt-body {
    padding: 2.5rem 2.5rem 1.5rem 2.5rem;
}

.contract-prompt-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.contract-prompt-icon {
    width: 48px;
    height: 48px;
    background-color: #f1f5f9;
    color: #0f172a;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.contract-prompt-header h3 {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.contract-prompt-desc {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.contract-prompt-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contract-prompt-input-group label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
}

.contract-prompt-input-group input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #334155;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contract-prompt-input-group input:focus {
    border-color: var(--primary-navy);
    box-shadow: 0 0 0 3px rgba(26, 34, 127, 0.1);
}

.contract-prompt-input-group input::placeholder {
    color: #94a3b8;
}

.contract-prompt-footer {
    background-color: #f8fafc;
    border-top: 1px solid #f1f5f9;
    padding: 1.25rem 2.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    align-items: center;
}

@media (max-width: 768px) {
    .results-grid, .provisions-grid {
        grid-template-columns: 1fr;
    }
    .dash-cards-tributos, .dash-cards-encargos {
        grid-template-columns: 1fr;
    }
    .dash-provisoes-grid {
        grid-template-columns: 1fr;
    }
}

/* Dashboard Panel (New Results Modal) */
.dashboard-panel {
    width: fit-content;
    max-width: 95vw;
    padding: 0;
    overflow: hidden;
    background: #f8fafc; /* Very light gray/blue background like mockup */
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

.dashboard-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dashboard-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e1b4b; /* Dark navy */
    margin: 0;
}

.dashboard-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dashboard-scroll {
    padding: 2rem;
    max-height: 75vh;
    overflow-y: auto;
}

.dash-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.dash-cards-tributos, .dash-cards-encargos {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    padding-bottom: 0.5rem;
}

.dash-cards-tributos::-webkit-scrollbar,
.dash-cards-encargos::-webkit-scrollbar {
    height: 6px;
}

.dash-cards-tributos::-webkit-scrollbar-thumb,
.dash-cards-encargos::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 4px;
}

.dash-card {
    flex: 1 1 0;
    min-width: max-content;
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1rem; /* Reduced padding from 1.25rem to allow more text width */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #f1f5f9;
}

.dash-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
}

.card-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.card-val {
    font-size: 1.15rem; /* Reduced from 1.4rem to fit large R$ text */
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
    white-space: nowrap; /* Prevent numbers from breaking into two lines */
}

.card-pill {
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 1rem;
    display: none; /* Hidden by default until easter egg */
}

body.show-easter-egg .card-pill {
    display: inline-block;
}

.pill-red {
    background: #fee2e2;
    color: #dc2626;
}

.pill-gray {
    background: #f1f5f9;
    color: #64748b;
}
.encargo-card {
    flex-direction: row;
    padding: 1rem;
    border-left: 4px solid var(--primary-navy);
    justify-content: left;
    gap: 20px;
    min-width: 250px;
}

.encargo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff; /* light blue bg is fine */
    color: var(--primary-navy);
    padding: 0.75rem;
    border-radius: 0.5rem;
}

.encargo-data {
    display: flex;
    flex-direction: column;
}

.dash-provisoes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.provisao-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
    color: #475569;
}

.provisao-row:last-child {
    border-bottom: none;
}

.prov-val {
    font-weight: 700;
    color: var(--primary-navy);
}

.consolidado-card {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.consolidado-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.consolidado-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 1rem;
    color: #334155;
}

.cons-val {
    font-weight: 800;
    color: #0f172a;
}

.dash-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Report Modal Styles */
.report-modal {
    max-width: 900px;
    background: #ffffff;
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.report-actions {
    background: #f9fafb;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
}

.close-report-btn {
    font-size: 2rem;
    color: #4b5563;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}
.close-report-btn:hover { color: #000; }

.report-content {
    padding: 2.5rem 3rem;
    max-height: 70vh;
    overflow-y: auto;
    font-family: 'Times New Roman', Times, serif; /* Closer to formal document */
    color: #000;
}

.report-header {
    text-align: center;
    border-bottom: 2px solid #000;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.report-header h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.report-info {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
}

.report-section {
    margin-bottom: 2rem;
}

.report-section h3 {
    font-size: 1.1rem;
    background-color: #f3f4f6;
    padding: 0.5rem;
    border: 1px solid #000;
    text-align: center;
    margin-bottom: 1rem;
}

.report-section h4 {
    font-size: 1rem;
    background-color: #f3f4f6;
    padding: 0.25rem;
    border: 1px dashed #000;
    text-align: center;
    margin: 1rem 0;
}

.report-grid, .report-lines {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 1rem;
}

.report-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.report-lines p {
    display: grid;
    grid-template-columns: 350px 1fr; /* Set fixed width for labels to keep values close and aligned */
    align-items: center;
    margin-bottom: 0.25rem;
}

.report-subtotal {
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid #ccc;
    font-weight: 700;
}
.report-subtotal strong {
    text-transform: uppercase;
}

.report-text-block {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: justify;
}

.report-text-block p {
    margin-bottom: 0.75rem;
}

#totalEncargos{
    color: var(--highlight);
}

/* Print Styles */
@media print {
    body * {
        visibility: hidden;
    }
    
    body {
        background: #fff;
        padding: 0;
        margin: 0;
        min-height: auto;
    }

    #reportModal, #reportContent, #reportContent * {
        visibility: visible;
    }

    #reportModal {
        position: absolute;
        left: 0;
        top: 0;
        background: none;
        padding: 0;
        width: 100%;
        height: auto;
        overflow: visible;
    }

    .report-modal {
        box-shadow: none;
        max-width: none;
        width: 100%;
    }

    .report-content {
        max-height: none;
        overflow-y: visible;
        padding: 0;
    }

    .no-print {
        display: none !important;
    }
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-header, .form-card, .results-grid, .terms-modal, .contract-prompt-modal {
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.btn-print-primary, .btn-print-secondary, .btn-account, .custom-radio {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-print-primary:active, .btn-print-secondary:active, .btn-account:active, .custom-radio:active {
    transform: scale(0.97);
}

.dash-section {
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.dash-section:nth-child(1) { animation-delay: 0.1s; }
.dash-section:nth-child(2) { animation-delay: 0.15s; }
.dash-section:nth-child(3) { animation-delay: 0.2s; }
.dash-section:nth-child(4) { animation-delay: 0.25s; }

.deducao-input {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.deducao-input.reveal {
    max-height: 120px;
    opacity: 1;
    margin-top: 1rem;
}
