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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #2d3748;
    min-height: 100vh;
    padding-bottom: 80px;
    line-height: 1.6;
}

/* Header Styles */
.app-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
   
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
}

.header-logo {
    height: 48px;
    width: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.header-text {
    text-align: center;
}

.app-header h1 {
    color: #1a202c;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: -0.025em;
}

.app-header p {
    color: #718096;
    font-size: 0.95rem;
    font-weight: 500;
}

.language-toggle-container {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.language-toggle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    min-width: 40px;
    text-align: center;
}

.language-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.language-toggle:active {
    transform: translateY(0);
}

/* Main Content */
.app-main {
    padding: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    display: none;
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.section.active {
    display: block;
}

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

/* Home Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    color: white;
    text-align: center;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.hero-logo {
    margin-bottom: 1rem;
}

.hero-logo-img {
    height: 88px;
    width: auto;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    padding: 0.5rem;
}

.hero-logo-img:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.hero-text h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    letter-spacing: -0.025em;
}

.hero-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta-button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    backdrop-filter: blur(10px);
}

.hero-cta-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.hero-cta-button i {
    font-size: 1.25rem;
}

.stats-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.stats-title {
    text-align: center;
    color: #1a202c;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

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

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.stat-icon {
    flex-shrink: 0;
}

.stat-card i {
    font-size: 2.25rem;
    opacity: 0.9;
}

.stat-content {
    flex: 1;
    text-align: left;
}

.stat-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 500;
}

.cta-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1.25rem 2.5rem;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: 0.025em;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.cta-button i {
    font-size: 1.125rem;
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(4px);
}

.features-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.features-title {
    text-align: center;
    color: #1a202c;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

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

.feature-card {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.feature-icon {
    margin-bottom: 1rem;
}

.feature-icon i {
    font-size: 2rem;
    color: #667eea;
}

.feature-card h4 {
    color: #1a202c;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Calculator Section */
.calculator-container {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.tabs {
    display: flex;
    background: #f7fafc;
    border-bottom: 1px solid #e2e8f0;
}

.tab-button {
    flex: 1;
    background: none;
    border: none;
    padding: 1.25rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #718096;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
}

.tab-button.active {
    background: white;
    color: #667eea;
    border-bottom: 3px solid #667eea;
}

.tab-button:hover {
    background: rgba(102, 126, 234, 0.08);
    color: #667eea;
}

.tab-button i {
    font-size: 1.125rem;
}

.tab-content {
    display: none;
    padding: 2.5rem;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f7fafc;
    color: #2d3748;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-group small {
    color: #718096;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: block;
    font-weight: 500;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2.5rem;
}

.next-button,
.prev-button,
.calculate-button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: 0.025em;
}

.next-button,
.calculate-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-left: auto;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.prev-button {
    background: #f7fafc;
    color: #718096;
    border: 2px solid #e2e8f0;
}

.next-button:hover,
.calculate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.prev-button:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

/* Results Section */
.results-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.results-logo {
    display: flex;
    align-items: center;
}

.results-logo-img {
    height: 64px;
    width: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.results-title {
    text-align: center;
}

.results-header h3 {
    color: #1a202c;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.recommendation-badge {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
}

.recommendation-badge.presumido {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(72, 187, 120, 0.3);
}

.recommendation-badge.real {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(237, 137, 54, 0.3);
}

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

.regime-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
}

.regime-card.presumido {
    border-color: #48bb78;
}

.regime-card.real {
    border-color: #ed8936;
}

.regime-card.recommended {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.regime-card h4 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #1a202c;
}

.tax-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tax-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f7fafc;
    font-weight: 500;
}

.tax-total {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    font-weight: 700;
    font-size: 1.125rem;
    border-top: 2px solid #667eea;
    margin-top: 0.75rem;
    color: #1a202c;
}

.savings-card {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 32px rgba(72, 187, 120, 0.3);
}

.savings-card h4 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.savings-amount {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.savings-percentage {
    font-size: 1.25rem;
    opacity: 0.9;
    font-weight: 600;
}

.chart-container {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.chart-container canvas {
    max-height: 400px;
    width: 100% !important;
    height: 400px !important;
    display: block !important;
    visibility: visible !important;
}

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

.export-button,
.save-button,
.new-button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: 0.025em;
}

.export-button {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(245, 101, 101, 0.3);
}

.save-button {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(72, 187, 120, 0.3);
}

.new-button {
    background: linear-gradient(135deg, #805ad5 0%, #6b46c1 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(128, 90, 213, 0.3);
}

.export-button:hover,
.save-button:hover,
.new-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* History Section */
.history-container {
    background: white;
    border-radius: 24px;
   
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.history-header {
    display: flex;
    align-items: center;
    gap: 1 rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.history-logo {
    display: flex;
    align-items: center;
}

.history-logo-img {
    height: 64px;
    width: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.history-title {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-header h2 {
    color: #1a202c;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.clear-history-button {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 16px rgba(245, 101, 101, 0.3);
}

.clear-history-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 101, 101, 0.4);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.history-item {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.history-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.history-item-title {
    font-weight: 700;
    color: #1a202c;
    font-size: 1.125rem;
}

.history-item-date {
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
}

.history-item-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.summary-item {
    text-align: center;
}

.summary-label {
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.summary-value {
    font-weight: 700;
    color: #1a202c;
    font-size: 1.125rem;
}

.history-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.view-button,
.delete-button {
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-button {
    background: #667eea;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.delete-button {
    background: #f56565;
    color: white;
    box-shadow: 0 2px 8px rgba(245, 101, 101, 0.3);
}

.view-button:hover,
.delete-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #718096;
}

.empty-icon {
    margin-bottom: 1.5rem;
}

.empty-state i {
    font-size: 3.5rem;
    opacity: 0.4;
    color: #cbd5e0;
}

.empty-state p {
    font-size: 1.125rem;
    font-weight: 500;
}

/* Simulator Section */
.simulator-container {
    background: white;
    border-radius: 24px;
 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.scenario-form {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.form-section h3 {
    color: #1a202c;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-grid .form-group {
    margin-bottom: 0;
}

.form-group small {
    display: block;
    color: #718096;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.simulate-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.simulate-button {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: none;
    min-width: 200px;
    justify-content: center;
}

.simulate-button.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.simulate-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.simulate-button.secondary {
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(113, 128, 150, 0.3);
}

.simulate-button.secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(113, 128, 150, 0.4);
}

.simulation-results {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.results-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.results-header h3 {
    color: #1a202c;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.results-header p {
    color: #4a5568;
    font-size: 1.125rem;
    margin: 0;
}

.results-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.result-card {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.result-card.primary {
    border-color: #667eea;
}

.result-card.secondary {
    border-color: #718096;
}

.card-icon {
    margin-bottom: 1rem;
}

.card-icon i {
    font-size: 2.5rem;
    color: #667eea;
}

.result-card.secondary .card-icon i {
    color: #718096;
}

.card-content h4 {
    color: #1a202c;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.breakeven-value {
    color: #059669;
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.analysis-range {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.range-min,
.range-max {
    color: #059669;
    font-size: 1.5rem;
    font-weight: 700;
}

.range-separator {
    color: #718096;
    font-size: 0.875rem;
}

.card-content p {
    color: #4a5568;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.chart-section {
    margin-bottom: 2.5rem;
}

.chart-section h4 {
    color: #1a202c;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.chart-container {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a5568;
    font-size: 0.95rem;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.legend-color.presumido {
    background: #667eea;
}

.legend-color.real {
    background: #764ba2;
}

.results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.action-button {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: none;
    min-width: 180px;
    justify-content: center;
}

.action-button.export {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.3);
}

.action-button.export:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.4);
}

.action-button.share {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.action-button.share:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.simulator-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.simulator-logo {
    display: flex;
    align-items: center;
}

.simulator-logo-img {
    height: 64px;
    width: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.simulator-title {
    text-align: center;
}

.simulator-container h2 {
    color: #1a202c;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0;
}

.scenario-form {
    background: #f7fafc;
    padding: 2.5rem;
    border-radius: 20px;
    margin-bottom: 2.5rem;
    border: 1px solid #e2e8f0;
}

.simulate-button {
    background: linear-gradient(135deg, #805ad5 0%, #6b46c1 100%);
    color: white;
    border: none;
    padding: 1.25rem 2.5rem;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 2.5rem auto 0;
    box-shadow: 0 4px 16px rgba(128, 90, 213, 0.3);
    letter-spacing: 0.025em;
}

.simulate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(128, 90, 213, 0.4);
}

.simulation-results {
    background: #f7fafc;
    padding: 2.5rem;
    border-radius: 20px;
    margin-top: 2.5rem;
    border: 1px solid #e2e8f0;
}

.simulation-results h3 {
    color: #1a202c;
    margin-bottom: 2.5rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.breakeven-info {
    margin-bottom: 2.5rem;
}

.breakeven-card {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(237, 137, 54, 0.3);
}

.breakeven-card h4 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.breakeven-value {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.breakeven-card p {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}



/* FAQ Page Styles */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.faq-footer {
    margin-top: 3rem;
}

.help-card {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(76, 175, 80, 0.3);
    border: 1px solid rgba(76, 175, 80, 0.1);
}

.help-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.help-card p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.help-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.back-button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.faq-intro {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.faq-intro h2 {
    color: #1a202c;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.faq-intro p {
    color: #4a5568;
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

.disclaimer-banner {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border: 2px solid #feb2b2;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(254, 178, 178, 0.3);
}

.disclaimer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.disclaimer-content i {
    color: #c53030;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.disclaimer-content p {
    color: #c53030;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.5;
}

.disclaimer-notice {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border: 2px solid #feb2b2;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1.5rem;
    text-align: center;
}

.disclaimer-notice p {
    color: #c53030;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.5;
}

.faq-categories {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.faq-category {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.faq-category h3 {
    color: #1a202c;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
}

.faq-item {
    border-bottom: 1px solid #f7fafc;
    margin-bottom: 1rem;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem 0;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: #2d3748;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-question:hover {
    color: #667eea;
}

.faq-question[aria-expanded="true"] {
    color: #667eea;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #667eea;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

.faq-answer {
    padding: 0 0 1.5rem 0;
    color: #4a5568;
    line-height: 1.7;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
}

.faq-answer[hidden] {
    display: none;
}

.faq-answer p {
    margin-bottom: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
    color: #4a5568;
}

.faq-answer strong {
    color: #2d3748;
}

/* FAQ Responsive Styles */
@media (max-width: 768px) {
    .faq-container {
        padding: 1rem;
    }
    
    .faq-intro {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .faq-intro h2 {
        font-size: 1.75rem;
    }
    
    .faq-category {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .faq-category h3 {
        font-size: 1.25rem;
    }
    
    .faq-question {
        font-size: 1rem;
        padding: 1.25rem 0;
    }
    
    .help-card {
        padding: 1.75rem;
        border-radius: 18px;
    }
    
    .help-card h3 {
        font-size: 1.375rem;
    }
    
    .help-card p {
        font-size: 1.125rem;
    }
    
    .back-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .faq-container {
        padding: 0.75rem;
    }
    
    .faq-intro {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .faq-intro h2 {
        font-size: 1.5rem;
    }
    
    .faq-category {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .faq-question {
        font-size: 0.95rem;
        padding: 1rem 0;
    }
    
    .faq-answer {
        font-size: 0.9rem;
    }
    
    .help-card {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .help-card h3 {
        font-size: 1.25rem;
    }
    
    .help-card p {
        font-size: 1rem;
    }
    
    .back-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 320px) {
    .faq-container {
        padding: 0.5rem;
    }
    
    .faq-intro {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .faq-intro h2 {
        font-size: 1.25rem;
    }
    
    .faq-category {
        padding: 0.75rem;
        border-radius: 8px;
    }
    
    .faq-question {
        font-size: 0.9rem;
        padding: 0.75rem 0;
    }
    
    .faq-answer {
        font-size: 0.85rem;
    }
    
    .help-card {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .help-card h3 {
        font-size: 1.25rem;
    }
    
    .help-card p {
        font-size: 1rem;
    }
    
    .back-button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-around;
    padding: 0.75rem 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #718096;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 64px;
    border-radius: 12px;
}

.nav-item i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.nav-item.active {
    color: #667eea;
    transform: translateY(-2px);
    background: rgba(102, 126, 234, 0.1);
}

.nav-item:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

/* Footer */
.app-footer {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 2rem;
    margin-top: 3rem;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo-img {
    height: 44px;
    width: auto;
    border-radius: 8px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-logo-img:hover {
    opacity: 1;
}

.footer-info {
    text-align: center;
}

.footer-info p {
    margin: 0;
    color: #718096;
    font-size: 0.95rem;
    font-weight: 500;
}

.footer-info a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-info a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #718096;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #667eea;
    text-decoration: underline;
}

/* Error Messages */
.error-message {
    background: #fed7d7;
    color: #c53030;
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    border-left: 4px solid #c53030;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.success-message {
    background: #c6f6d5;
    color: #2f855a;
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    border-left: 4px solid #2f855a;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

/* Loading States */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #718096;
    font-weight: 500;
}

.loading i {
    animation: spin 1s linear infinite;
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .header-logo {
        height: 40px;
    }
    
    .hero-logo-img {
        height: 64px;
    }
    
    .language-toggle-container {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .language-toggle {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1.125rem;
    }
    
    .hero-cta-button {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
    
    .disclaimer-content {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* Otimizações para telas médias */
    .app-main {
        padding: 1rem;
    }
    
    .hero-section,
    .stats-section,
    .features-section,
    .calculator-container,
    .history-container,
    .simulator-container {
        margin: 0 0.5rem 1rem 0.5rem;
        border-radius: 16px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .results-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .simulate-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .simulate-button {
        min-width: auto;
        width: 100%;
    }
    
    .results-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .action-button {
        min-width: auto;
        width: 100%;
    }
}
    
    .results-logo-img,
    .history-logo-img,
    .simulator-logo-img {
        height: 56px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.25rem;
    }
    
    .footer-links {
        justify-content: center;
        gap: 1rem;
    }
    
    .app-main {
        padding: 0.5rem;
    }
    
    .welcome-card,
    .calculator-container,
    .history-container,
    .simulator-container {
        margin: 0.5rem 0;
        border-radius: 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1.25rem;
        border-radius: 16px;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .regime-card {
        padding: 1.25rem;
        border-radius: 16px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        margin-bottom: 0.5rem;
        font-size: 0.95rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
    
    .button-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
    }
    
    .history-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .history-item-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .history-item {
        padding: 1.25rem;
        border-radius: 16px;
        margin-bottom: 0.75rem;
    }
    
    .tab-button {
        font-size: 0.85rem;
        padding: 0.875rem 0.5rem;
        gap: 0.5rem;
    }
    
    .tab-button span {
        display: none;
    }
    
    .nav-item span {
        font-size: 0.75rem;
    }
    
    .bottom-nav {
        padding: 0.75rem;
    }
    
    .nav-item {
        padding: 0.75rem 0.5rem;
        gap: 0.5rem;
    }
    

    
    .welcome-card h2 {
        font-size: 1.875rem;
    }
    
    .welcome-card p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .savings-amount {
        font-size: 2rem;
    }
    
    .breakeven-value {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .header-logo {
        height: 36px;
    }
    
    .hero-logo-img {
        height: 56px;
    }
    
    .footer-logo-img {
        height: 40px;
    }
    
    .results-logo-img,
    .history-logo-img,
    .simulator-logo-img {
        height: 48px;
    }
    
    .app-header h1 {
        font-size: 1.5rem;
    }
    
    .hero-text h1 {
        font-size: 1.625rem;
    }
    
    .hero-text p {
        font-size: 0.95rem;
    }
    
    .hero-cta-button {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
    }
    
    .savings-amount {
        font-size: 1.75rem;
    }
    
    .breakeven-value {
        font-size: 1.75rem;
    }
    
    .history-item-summary {
        grid-template-columns: 1fr;
    }
    
    .tab-content {
        padding: 0.75rem;
    }
    
    .scenario-form,
    .simulation-results {
        padding: 1.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .results-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .simulate-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .simulate-button {
        min-width: auto;
        width: 100%;
    }
    
    .results-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .action-button {
        min-width: auto;
        width: 100%;
    }
    
    .chart-container {
        min-height: 250px;
        padding: 1rem;
    }
    
    .hero-section,
    .calculator-container,
    .history-container,
    .simulator-container {
        padding: 1rem;
        margin: 0 0.25rem 0.75rem 0.25rem;
        border-radius: 16px;
    }
    
    .app-main {
        padding: 0.5rem;
    }
    
    .form-group {
        margin-bottom: 0.75rem;
    }
    
    .form-group label {
        margin-bottom: 0.25rem;
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .button-group {
        gap: 0.5rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .stats-grid {
        gap: 0.5rem;
    }
    
    .stat-card {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .comparison-grid {
        gap: 0.5rem;
    }
    
    .regime-card {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .history-item {
        padding: 1rem;
        border-radius: 12px;
        margin-bottom: 0.5rem;
    }
    
    .tab-button {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .bottom-nav {
        padding: 0.5rem;
    }
    
    .nav-item {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .nav-item i {
        font-size: 1rem;
    }
}

/* Extra Small Screens */
@media (max-width: 320px) {
    .app-main {
        padding: 0.125rem;
    }
    
    .welcome-card,
    .calculator-container,
    .history-container,
    .simulator-container {
        margin: 0.125rem 0;
        padding: 0.5rem;
        border-radius: 8px;
    }
    
    .form-group {
        margin-bottom: 0.5rem;
    }
    
    .form-group label {
        margin-bottom: 0.125rem;
        font-size: 0.85rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .stat-card {
        padding: 0.75rem;
        border-radius: 8px;
    }
    
    .regime-card {
        padding: 0.75rem;
        border-radius: 8px;
    }
    
    .history-item {
        padding: 0.75rem;
        border-radius: 8px;
        margin-bottom: 0.25rem;
    }
    
    .tab-button {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
    }
    
    .bottom-nav {
        padding: 0.25rem;
    }
    
    .nav-item {
        padding: 0.25rem;
        font-size: 0.75rem;
    }
    
    .nav-item i {
        font-size: 0.9rem;
    }
    
    .header-content {
        padding: 1rem 0.5rem;
    }
    
    .footer-content {
        padding: 1rem 0.5rem;
    }
}

/* Print Styles */
@media print {
    .bottom-nav,
    .app-header,
    .action-buttons {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section {
        display: block !important;
        page-break-inside: avoid;
    }
    
    .chart-container {
        page-break-inside: avoid;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .regime-card {
        border-width: 2px;
    }
    
    .nav-item.active {
        background: #667eea;
        color: white;
        border-radius: 8px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
