/* Calculator Form Styles */
.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.calculator-form,
.calculator-result {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2563eb;
}

.calculate-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
    transition: background 0.3s;
}

.calculate-btn:hover {
    background: #1d4ed8;
}

.result-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.result-item:last-child {
    border-bottom: none;
}

.result-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2563eb;
}

/* Breadcrumb */
.breadcrumb {
    padding: 1rem 0;
    font-size: 0.9rem;
    color: #64748b;
}

.breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}

.breadcrumb span {
    color: #94a3b8;
}

/* Page Content */
.page-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 2rem 0;
}

.page-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.page-content h2 {
    font-size: 1.8rem;
    margin: 1.5rem 0 1rem;
    color: #374151;
}

.page-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Unit Toggle */
.unit-toggle {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.unit-option {
    flex: 1;
    padding: 0.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
}

.unit-option.active {
    border-color: #2563eb;
    background: #eff6ff;
    color: #2563eb;
}

/* Tip Presets */
.tip-presets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin: 1rem 0;
}

.tip-preset {
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
    font-weight: 600;
}

.tip-preset:hover,
.tip-preset.active {
    border-color: #2563eb;
    background: #eff6ff;
    color: #2563eb;
}

/* BMI Categories */
.bmi-category {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-weight: 600;
}

.bmi-underweight {
    background: #dbeafe;
    color: #1d4ed8;
}

.bmi-normal {
    background: #dcfce7;
    color: #166534;
}

.bmi-overweight {
    background: #fef3c7;
    color: #92400e;
}

.bmi-obese {
    background: #fee2e2;
    color: #dc2626;
}

/* Amortization Table */
.amortization-table {
    margin-top: 2rem;
    overflow-x: auto;
}

.amortization-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.amortization-table th,
.amortization-table td {
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.amortization-table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #374151;
}

/* Per Person Breakdown */
.per-person-breakdown {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.per-person-breakdown h4 {
    color: #374151;
    margin-bottom: 0.5rem;
}

.per-person-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* BMI Chart */
.bmi-chart {
    margin-top: 2rem;
}

.bmi-chart table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.bmi-chart th,
.bmi-chart td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.bmi-chart th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #374151;
}

/* Responsive Design for Calculator Pages */
@media (max-width: 768px) {
    .calculator-container {
        grid-template-columns: 1fr;
    }

    .tip-presets {
        grid-template-columns: repeat(2, 1fr);
    }
}