/* ===========================================
    Startup Cost Calculator - Tool Specific Styles
    =========================================== */

/* Box Styling */
.sc-box {
    max-width: 750px; /* Slightly wider for better category layout */
    margin: 0 auto;
    padding: 0; 
}

/* Form Container */
.sc-form {
    padding: 25px; 
    border: 1px solid #2196F3; /* Primary Blue Border */
    border-radius: 8px;
    background-color: #E3F2FD; /* Very Light Blue Background */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.sc-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1976D2; /* Darker Blue */
    border-bottom: 2px solid #BBDEFB;
    padding-bottom: 5px; 
    margin-top: 5px; 
    margin-bottom: 20px; 
}

/* --- Core Inputs (Initial Investment & Rate) --- */
.sc-core-inputs {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between;
    gap: 15px 2%;
    margin-bottom: 20px; 
}

.sc-input-group {
    flex-basis: 48%; /* Allows two inputs per row */
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

.sc-input-group label {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem; 
    margin-bottom: 8px;
}

.sc-input-group input {
    padding: 12px;
    border: 1px solid #90CAF9;
    border-radius: 6px;
    font-size: 1rem;
    flex-grow: 1;
    text-align: right;
}

/* --- Cost List Styling (Dynamic) --- */
.cost-list-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px 2%;
}

.cost-category {
    flex-basis: 48%;
    min-width: 300px; 
    padding: 15px;
    border: 1px solid #FFCC80; /* Light Orange */
    border-radius: 6px;
    background-color: #FFF8E1;
}

.cost-category h3 {
    font-size: 1.1rem;
    color: #FF9800; /* Orange */
    margin-top: 0;
    padding-bottom: 5px;
    border-bottom: 1px dashed #FFCC80;
}

#initialCostList, #monthlyCostList {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cost-item label {
    font-weight: 500;
    color: #616161;
    width: 60%;
    margin-right: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cost-item input {
    width: 40%;
    padding: 6px;
    border: 1px solid #FFCC80;
    border-radius: 4px;
    text-align: right;
    font-size: 0.9rem;
}

/* Button Styles */
.sc-calculate-btn {
    display: block;
    width: 100%;
    padding: 16px; 
    margin-top: 30px; 
    background-color: #1976D2; /* Darker Blue */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}
.sc-calculate-btn:hover {
    background-color: #0D47A1;
}

/* --- Results Display --- */
.sc-results {
    margin-top: 20px; 
    padding: 25px;
    border: 2px solid #2196F3; 
    border-radius: 8px;
    background-color: #BBDEFB; /* Medium Light Blue */
    text-align: center;
}

.sc-results-title {
    color: #1976D2;
    font-size: 1.6rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #90CAF9;
    padding-bottom: 5px;
}

/* Results Table */
.sc-results-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.sc-results-table th, .sc-results-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #90CAF9;
    text-align: left;
}
.sc-results-table th {
    background-color: #E3F2FD; 
    color: #1976D2;
    font-weight: 600;
    width: 60%;
}

/* Key Value Styling */
.sc-results-table td {
    font-size: 1.1rem;
    font-weight: 700;
    color: #FF5722; /* Deep Orange for cost values */
}

/* Final Metric Highlight */
.sc-results-table tr.final-funding td {
    font-size: 1.6rem;
    color: #00897B; /* Teal for key result */
}

/* Recalculate Button (Global Style Reuse) */
.bc-recalculate-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    background-color: #9E9E9E;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}
.bc-recalculate-btn:hover {
    background-color: #616161;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .sc-core-inputs {
        flex-direction: column;
    }
    .cost-category {
        flex-basis: 100%;
        min-width: unset;
    }
}