/* Finance Calculator Pro - WordPress Plugin Styles */
.fcp-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* Tabs */
.fcp-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    overflow-x: auto;
    scrollbar-width: none;
}
.fcp-tabs::-webkit-scrollbar { display: none; }
.fcp-tab {
    padding: 12px 18px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 500;
    color: #6c757d;
    white-space: nowrap;
    transition: all 0.2s;
}
.fcp-tab:hover { color: #1a73e8; background: rgba(26,115,232,0.05); }
.fcp-tab.active {
    color: #1a73e8;
    border-bottom-color: #1a73e8;
    background: #fff;
}

/* Calculator Panel */
.fcp-calc-panel { padding: 24px; }
.fcp-panel.fcp-hidden { display: none !important; }

.fcp-calc-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.fcp-icon { font-size: 20px; }

/* Form Fields */
.fcp-form { display: flex; flex-direction: column; gap: 16px; }
.fcp-field { display: flex; flex-direction: column; gap: 6px; }
.fcp-field label {
    font-size: 13px;
    font-weight: 500;
    color: #495057;
    letter-spacing: 0.02em;
}
.fcp-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    font-size: 15px;
    color: #212529;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    background: #fff;
}
.fcp-input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26,115,232,0.12);
}
select.fcp-input { cursor: pointer; }

.fcp-range {
    width: 100%;
    height: 4px;
    accent-color: #1a73e8;
    cursor: pointer;
}

/* Button */
.fcp-btn {
    margin-top: 8px;
    padding: 13px 28px;
    background: linear-gradient(135deg, #1a73e8, #0d5bcd);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    letter-spacing: 0.02em;
}
.fcp-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(26,115,232,0.35);
}
.fcp-btn:active { transform: translateY(0); }

/* Results */
.fcp-result {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    animation: fcpFadeIn 0.3s ease;
}
@keyframes fcpFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.fcp-result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.fcp-result-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    border: 1px solid #e9ecef;
}
.fcp-result-card.fcp-accent { background: #fff5f5; border-color: #ffcdd2; }
.fcp-result-card.fcp-highlight { background: #e8f0fe; border-color: #c5d7fb; }
.fcp-result-card.fcp-success { background: #e8f5e9; border-color: #c8e6c9; }

.fcp-result-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6c757d;
    margin-bottom: 6px;
}
.fcp-result-value {
    display: block;
    font-size: 19px;
    font-weight: 700;
    color: #1a1a2e;
}
.fcp-result-card.fcp-accent .fcp-result-value { color: #c62828; }
.fcp-result-card.fcp-highlight .fcp-result-value { color: #1a73e8; }
.fcp-result-card.fcp-success .fcp-result-value { color: #2e7d32; }

/* Chart */
.fcp-chart-wrap {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 16px;
}

/* Amortization Table */
.fcp-amort-table { margin-top: 16px; overflow-x: auto; }
.fcp-amort-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.fcp-amort-table th {
    background: #1a73e8;
    color: #fff;
    padding: 8px 12px;
    text-align: right;
    font-weight: 600;
}
.fcp-amort-table th:first-child { text-align: left; border-radius: 8px 0 0 0; }
.fcp-amort-table th:last-child { border-radius: 0 8px 0 0; }
.fcp-amort-table td {
    padding: 7px 12px;
    border-bottom: 1px solid #e9ecef;
    text-align: right;
    color: #495057;
}
.fcp-amort-table td:first-child { text-align: left; font-weight: 500; }
.fcp-amort-table tr:nth-child(even) td { background: #f8f9fa; }

/* Responsive */
@media (max-width: 500px) {
    .fcp-calc-panel { padding: 16px; }
    .fcp-result-grid { grid-template-columns: 1fr 1fr; }
    .fcp-result-grid .fcp-result-card:last-child { grid-column: span 2; }
    .fcp-result-value { font-size: 15px; }
}
