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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8fafc;
    color: #2d3748;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header h1 {
    color: #1a202c;
    font-size: 28px;
    margin-bottom: 8px;
}

.header p {
    color: #718096;
    font-size: 16px;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: calc(100vh - 200px);
    min-height: 600px;
}
.input-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.preview-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.tab-navigation {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    margin: 0;
    background: #f7fafc;
    border-radius: 12px 12px 0 0;
}

.tab-button {
    flex: 1;
    padding: 12px 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: #718096;
    transition: all 0.2s;
    border-radius: 12px 12px 0 0;
    font-size: 14px;
}

.tab-button.active {
    background: white;
    color: #2d3748;
    border-bottom: 2px solid #4f46e5;
}

.tab-button:hover:not(.active) {
    background: #edf2f7;
    color: #4a5568;
}

.tab-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}
label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

input[type="number"],
input[type="text"],
select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

input[type="number"]:focus,
input[type="text"]:focus,
select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    background: #f7fafc;
    border-radius: 0 0 12px 12px;
    gap: 8px;
}

.nav-button {
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: #374151;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}
.nav-button:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f9fafb;
}

.nav-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f9fafb;
}

.preview-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.preview-content h2 {
    color: #1a202c;
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

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

.comparison-table th {
    background: #f7fafc;
    font-weight: 600;
    color: #2d3748;
    text-align: center;
}

.comparison-table td:first-child {
    font-weight: 500;
    background: #f9fafb;
}

.comparison-table td:nth-child(2) {
    text-align: center;
    background: #fef7f0;
}

.comparison-table td:nth-child(3) {
    text-align: center;
    background: #f0f9ff;
}
.summary-box {
    background: #f0f9ff;
    border: 1px solid #0284c7;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.summary-box h3 {
    color: #0369a1;
    margin-bottom: 8px;
    font-size: 16px;
}

.summary-box p {
    margin-bottom: 4px;
    font-size: 14px;
}

.warning-box {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.warning-box h3 {
    color: #92400e;
    margin-bottom: 8px;
    font-size: 16px;
}

.recommendations {
    background: #f0fdf4;
    border: 1px solid #16a34a;
    border-radius: 8px;
    padding: 16px;
}

.recommendations h3 {
    color: #15803d;
    margin-bottom: 8px;
    font-size: 16px;
}

.recommendations ul {
    margin-left: 16px;
}

.recommendations li {
    margin-bottom: 4px;
    font-size: 14px;
}

.highlighted-text {
    background-color: #fff9c4;
    display: inline-block;
    padding: 2px 0;
    animation: highlight 2s;
}

@keyframes highlight {
    0% { background-color: #ffeb3b; }
    100% { background-color: #fff9c4; }
}
.amount {
    font-weight: 600;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
}

.positive {
    color: #16a34a;
}

.negative {
    color: #dc2626;
}

.neutral {
    color: #6b7280;
}

.info-box {
    background: #eff6ff;
    border: 1px solid #3b82f6;
    border-radius: 6px;
    padding: 12px;
    margin-top: 12px;
    font-size: 13px;
    color: #1e40af;
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .navigation-buttons {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .nav-button {
        font-size: 12px;
        padding: 8px 12px;
    }
}