.app-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

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

.app-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.app-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.calculator-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid var(--border);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
    .calc-grid {
        grid-template-columns: 1fr;
    }
}

.calc-section {
    padding: 2rem;
}

.inputs-section {
    background: white;
}

.results-section {
    background: #f8fafc;
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .results-section {
        border-left: none;
        border-top: 1px solid var(--border);
    }
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
}

.section-title i {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.rate-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.rate-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-main);
}

.rate-btn:hover {
    border-color: var(--primary);
}

.rate-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon .icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.input-with-icon input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    background: white;
    color: var(--text-main);
    transition: all 0.2s;
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.calc-mode-switch {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f1f5f9;
    border-radius: 8px;
}

.radio-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-group input {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--primary);
    cursor: pointer;
}

.radio-group label {
    cursor: pointer;
    font-weight: 500;
}

.result-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: auto;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.result-row:last-child {
    margin-bottom: 0;
}

.result-label {
    color: var(--text-muted);
    font-weight: 500;
}

.result-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

.highlight-row {
    background: #eff6ff;
    padding: 0.75rem;
    border-radius: 8px;
    margin: 1rem -0.75rem;
}

.result-divider {
    height: 1px;
    background: var(--border);
    margin: 1rem 0;
}

.total-row .result-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

.total-row .result-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.text-blue { color: #3b82f6; }
.text-green { color: #10b981; }

.full-width {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    padding: 0.875rem;
}

.mt-4 { margin-top: 1.5rem; }


