/* ===========================================
    Boat Loan Calculator - Tool Specific Styles (Compact)
    =========================================== */

.blc-box {
    max-width: 800px; 
    margin: 0 auto;
    padding: 0; 
}

/* Form Styling */
.blc-form {
    padding: 15px; 
    border: 1px solid #00bcd4; /* Cyan/Teal Border */
    border-radius: 6px;
    background-color: #e0f7fa; /* Light Cyan Background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.blc-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #00838f; 
    border-bottom: 2px solid #00bcd4;
    padding-bottom: 3px; 
    margin-top: 15px; 
    margin-bottom: 10px; 
}
.input-instruction, .text-hint {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: -5px;
    margin-bottom: 10px;
    display: block;
}

/* Compact Grid Setup */
.blc-compact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px; 
}

.blc-compact-grid.columns-2 .blc-input-group {
    width: 48.5%; /* Two per row */
}
.blc-compact-grid.columns-3 .blc-input-group {
    width: 31%; /* Three per row */
}

.blc-input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 5px; 
}

.blc-input-group label {
    font-weight: 500;
    color: #495057;
    font-size: 0.85rem; 
    margin-bottom: 2px;
}

.blc-input-group input:not(.term-input), 
.blc-input-group input.term-input {
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    text-align: right;
    font-size: 1rem;
}
.blc-input-group input.read-only-like {
    background-color: #ffe0b2; /* Light Orange to indicate it's a solved value */
    border: 2px solid #ff9800;
}
.hidden-input {
    display: none !important;
}

/* Term Unit Selector Styling */
.term-group {
    display: flex;
    gap: 5px;
}
.term-input {
    flex-grow: 1;
}
.term-select {
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
}

/* Mode Selector (Radio Buttons) */
.mode-selector {
    display: flex;
    justify-content: space-around;
    padding: 5px 0;
    border: 1px dashed #4dd0e1;
    border-radius: 4px;
    background-color: #b2ebf2;
    font-size: 0.9rem;
    margin-bottom: 15px;
}
.mode-selector label {
    font-weight: 500;
    cursor: pointer;
    padding: 5px;
}

/* Button Styles */
.blc-calculate-btn {
    display: block;
    width: 100%;
    padding: 12px; 
    margin-top: 15px; 
    background-color: #00bcd4; /* Primary Cyan for action */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.blc-calculate-btn:hover {
    background-color: #00838f;
}

/* Results Display */
.blc-results {
    margin-top: 20px; 
    padding: 20px;
    border: 2px solid #00bcd4; 
    border-radius: 6px;
    background-color: #80deea; /* Lighter Cyan Background */
    text-align: center;
}

.blc-results-title {
    color: #00838f;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Main Result Grid */
.blc-data-grid {
    display: flex;
    flex-wrap: wrap; /* Allows the last result to be full width */
    justify-content: space-between;
    gap: 10px; 
    margin-bottom: 20px; 
}

.blc-data-segment.total-result {
    flex-basis: 32%;
    background: #ffffff;
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid #ced4da;
    transition: border 0.3s;
}
.blc-data-segment.full-width {
    flex-basis: 100%;
}

/* Highlight the key output based on mode */
.blc-data-segment.highlight-result {
    border: 3px solid #ff9800; /* Orange highlight */
}

.blc-data-segment .blc-data-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #00838f; /* Deep Cyan for Loan */
    margin-top: 5px;
}

.blc-data-segment .blc-data-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
}
.blc-data-segment .blc-data-subtext {
    font-size: 0.75rem;
    color: #90a4ae;
    margin-top: 5px;
}


.blc-recalculate-btn {
    padding: 8px 15px;
    margin-top: 15px;
    background-color: #607d8b; /* Blue-Grey secondary button */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blc-data-grid {
        flex-wrap: wrap;
        gap: 15px;
    }
    .blc-data-segment.total-result {
        flex-basis: 100%; /* Stack results on smaller screens */
    }
    .blc-compact-grid.columns-2 .blc-input-group,
    .blc-compact-grid.columns-3 .blc-input-group {
        width: 100%;
    }
}
@media (max-width: 600px) {
    .mode-selector {
        flex-direction: column;
    }
    .term-group {
        flex-direction: column;
    }
}