/* SmartCalc Hub - Calculator Styles */
.smartcalc-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.smartcalc-container h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1a1a2e;
}
.smartcalc-container .calc-desc {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.smartcalc-form { display: grid; gap: 1rem; }
.smartcalc-field { display: flex; flex-direction: column; }
.smartcalc-field label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: #333;
}
.smartcalc-field input, .smartcalc-field select {
    padding: 0.7rem 0.9rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}
.smartcalc-field input:focus, .smartcalc-field select:focus {
    outline: none;
    border-color: #4361ee;
}
.smartcalc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 600px) {
    .smartcalc-row { grid-template-columns: 1fr; }
}
.smartcalc-btn {
    padding: 0.8rem 2rem;
    background: #4361ee;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.smartcalc-btn:hover { background: #3a56d4; }
.smartcalc-btn.secondary {
    background: #e0e0e0;
    color: #333;
}
.smartcalc-btn.secondary:hover { background: #ccc; }
.smartcalc-result {
    margin-top: 1.5rem;
    padding: 1.2rem;
    background: #f8f9ff;
    border-radius: 8px;
    border-left: 4px solid #4361ee;
}
.smartcalc-result h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #1a1a2e;
}
.smartcalc-result-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e8e8e8;
}
.smartcalc-result-item:last-child { border-bottom: none; }
.smartcalc-result-item .label { color: #666; }
.smartcalc-result-item .value {
    font-weight: 700;
    color: #4361ee;
    font-size: 1.1rem;
}
.smartcalc-error {
    color: #d32f2f;
    background: #fce4ec;
    padding: 0.8rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.9rem;
}
.smartcalc-format-group {
    margin: 1rem 0;
    padding: 1rem;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}
.smartcalc-format-group legend {
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
    padding: 0 0.5rem;
}
/* Scientific calculator specific */
.smartcalc-sci-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
}
.smartcalc-sci-grid button {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f8f8f8;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.15s;
}
.smartcalc-sci-grid button:hover { background: #e8e8e8; }
.smartcalc-sci-grid button.fn { background: #e3f2fd; color: #1565c0; }
.smartcalc-sci-grid button.op { background: #fff3e0; color: #e65100; }
.smartcalc-sci-grid button.num { background: #fafafa; font-weight: 700; }
.smartcalc-sci-grid button.eq { background: #4361ee; color: #fff; font-weight: 700; }
.smartcalc-sci-grid button.clear { background: #ffebee; color: #c62828; }
.smartcalc-sci-display {
    width: 100%;
    padding: 1rem;
    font-size: 1.5rem;
    text-align: right;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
}
.smartcalc-sci-history {
    min-height: 2rem;
    padding: 0.5rem;
    color: #999;
    text-align: right;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
}
/* Amortization table */
.smartcalc-amortization {
    margin-top: 1.5rem;
    overflow-x: auto;
}
.smartcalc-amortization table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.smartcalc-amortization th {
    background: #f0f0f5;
    padding: 0.6rem;
    text-align: left;
    font-weight: 600;
}
.smartcalc-amortization td {
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid #eee;
}
.smartcalc-amortization tr:hover td { background: #f8f9ff; }
.smartcalc-amortization .paid-interest { color: #e65100; }
.smartcalc-amortization .paid-principal { color: #2e7d32; }
