/* ===========================================
   Patio Base Calculator - Tool Specific Styles
   =========================================== */

/* Tool Layout */
.pbc-box {
    max-width: 850px;
    margin: 0 auto;
}

/* Controls and Inputs */
.pbc-controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    background: #eff6ff; /* Light Blue BG */
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #bfdbfe;
    margin-bottom: 30px;
}

/* Input Group Styling */
.pbc-input-group {
    display: flex;
    flex-direction: column;
}

.pbc-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e40af; /* Dark Blue Label */
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pbc-input-row {
    display: flex;
    gap: 10px;
}

.pbc-input {
    padding: 10px;
    border: 1px solid #60a5fa; /* Medium Blue Border */
    border-radius: 6px;
    font-size: 1rem;
    color: #1f2937;
    flex-grow: 1; /* Input takes up most space */
}

/* Unit Selector */
.pbc-unit {
    padding: 10px;
    border: 1px solid #60a5fa;
    border-radius: 6px;
    background: #e0f2fe; /* Very Light Blue BG for unit */
    color: #1e40af;
    font-weight: 600;
    font-size: 0.9rem;
    width: 60px; /* Fixed width for unit */
    text-align: center;
}

/* Calculate Button */
.pbc-btn-calc {
    grid-column: 1 / -1; 
    padding: 12px 20px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: #3b82f6; /* Primary Blue Button */
    color: white;
    transition: background 0.2s;
    margin-top: 10px;
}
.pbc-btn-calc:hover {
    background: #2563eb;
}

/* --- Results Section --- */

.pbc-results-section {
    margin-top: 30px;
}

.pbc-result-summary {
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    text-align: center;
}

.pbc-result-title {
    font-size: 1.1rem;
    color: #1e40af;
    margin-bottom: 10px;
}

.pbc-value-main {
    font-size: 3rem;
    font-weight: 800;
    color: #3b82f6;
    line-height: 1;
}

.pbc-value-main small {
    font-size: 1.5rem;
    font-weight: 500;
    color: #60a5fa;
    margin-left: 5px;
}

/* Material Breakdown */
.pbc-breakdown {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px dashed #bfdbfe;
    margin-top: 20px;
}

.pbc-breakdown-item {
    text-align: center;
    flex: 1;
}

.pbc-material-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
}

.pbc-material-label {
    font-size: 0.9rem;
    color: #6b7280;
    text-transform: uppercase;
    margin-top: 5px;
}

/* Responsive Styling */
@media (max-width: 600px) {
    .pbc-controls {
        grid-template-columns: 1fr;
    }
    .pbc-breakdown {
        flex-direction: column;
    }
}