/* FSBO Rental Calculator Styles */

.fsbo-rental-calculator {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #333;
}

.fsbo-rc-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #2563eb;
}

.fsbo-rc-header h2 {
    font-size: 2.5em;
    margin: 0 0 10px 0;
    color: #1e40af;
    font-weight: 700;
}

.fsbo-rc-subtitle {
    font-size: 1.1em;
    color: #64748b;
    margin: 0;
}

/* Form Sections */
.fsbo-rc-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.fsbo-rc-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.fsbo-rc-section-title {
    font-size: 1.5em;
    color: #1e40af;
    margin: 0 0 25px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
}

.fsbo-rc-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

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

.fsbo-rc-field {
    display: flex;
    flex-direction: column;
}

.fsbo-rc-field label {
    font-size: 0.95em;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
    display: block;
}

.fsbo-rc-field input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.2s ease;
    background: #f8fafc;
    box-sizing: border-box;
}

.fsbo-rc-field input[type="number"]:focus {
    outline: none;
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.fsbo-rc-field input[type="number"]:hover {
    border-color: #cbd5e1;
}

/* Buttons */
.fsbo-rc-button-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 35px;
    flex-wrap: wrap;
}

.fsbo-rc-calculate-btn,
.fsbo-rc-reset-btn {
    padding: 16px 40px;
    font-size: 1.1em;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fsbo-rc-calculate-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.fsbo-rc-calculate-btn:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

.fsbo-rc-reset-btn {
    background: #f1f5f9;
    color: #475569;
    border: 2px solid #e2e8f0;
}

.fsbo-rc-reset-btn:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

/* Results Section */
.fsbo-rc-results {
    margin-top: 50px;
    padding: 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    border-radius: 16px;
    border: 2px solid #c7d2fe;
}

.fsbo-rc-results-title {
    font-size: 2em;
    color: #1e40af;
    margin: 0 0 30px 0;
    text-align: center;
    font-weight: 700;
}

/* Metrics Grid */
.fsbo-rc-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.fsbo-rc-metric-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.fsbo-rc-metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: #2563eb;
}

.fsbo-rc-metric-label {
    font-size: 0.95em;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.fsbo-rc-metric-value {
    font-size: 2.2em;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.fsbo-rc-metric-value.positive {
    color: #16a34a;
}

.fsbo-rc-metric-value.negative {
    color: #dc2626;
}

.fsbo-rc-metric-desc {
    font-size: 0.85em;
    color: #94a3b8;
    line-height: 1.4;
}

/* Summary Section */
.fsbo-rc-summary-section,
.fsbo-rc-cashflow-section,
.fsbo-rc-expenses-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.fsbo-rc-summary-title {
    font-size: 1.4em;
    color: #1e40af;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
}

.fsbo-rc-summary-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fsbo-rc-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.fsbo-rc-summary-row:last-child {
    border-bottom: none;
}

.fsbo-rc-summary-label {
    font-weight: 600;
    color: #475569;
    font-size: 1.05em;
}

.fsbo-rc-summary-value {
    font-weight: 700;
    color: #1e293b;
    font-size: 1.15em;
}

/* Cash Flow Table */
.fsbo-rc-cashflow-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fsbo-rc-cashflow-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #f8fafc;
    border-radius: 6px;
}

.fsbo-rc-cashflow-row.fsbo-rc-divider {
    margin-top: 10px;
    border-top: 2px solid #cbd5e1;
    padding-top: 20px;
}

.fsbo-rc-cashflow-row.fsbo-rc-highlight {
    background: #dbeafe;
    border: 2px solid #93c5fd;
    font-weight: 600;
}

.fsbo-rc-cashflow-row.fsbo-rc-final {
    background: #fef3c7;
    border: 2px solid #fbbf24;
    margin-top: 10px;
}

.fsbo-rc-cashflow-row.fsbo-rc-annual {
    background: #e0e7ff;
    border: 2px solid #a5b4fc;
}

.fsbo-rc-cashflow-label {
    color: #475569;
    font-size: 1em;
}

.fsbo-rc-cashflow-value {
    font-weight: 700;
    font-size: 1.1em;
    color: #1e293b;
}

.fsbo-rc-cashflow-value.positive {
    color: #16a34a;
}

.fsbo-rc-cashflow-value.negative {
    color: #dc2626;
}

/* Expenses Grid */
.fsbo-rc-expenses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.fsbo-rc-expense-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.fsbo-rc-expense-label {
    font-weight: 600;
    color: #64748b;
    font-size: 0.95em;
}

.fsbo-rc-expense-value {
    font-weight: 700;
    color: #1e293b;
    font-size: 1em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fsbo-rc-header h2 {
        font-size: 2em;
    }
    
    .fsbo-rc-section {
        padding: 20px;
    }
    
    .fsbo-rc-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .fsbo-rc-metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .fsbo-rc-button-container {
        flex-direction: column;
    }
    
    .fsbo-rc-calculate-btn,
    .fsbo-rc-reset-btn {
        width: 100%;
    }
    
    .fsbo-rc-results {
        padding: 25px 20px;
    }
    
    .fsbo-rc-cashflow-row,
    .fsbo-rc-summary-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .fsbo-rc-expenses-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .fsbo-rental-calculator {
        padding: 0 15px;
    }
    
    .fsbo-rc-header h2 {
        font-size: 1.6em;
    }
    
    .fsbo-rc-metric-value {
        font-size: 1.8em;
    }
}
