/* ===========================================
    Study Break Calculator - Tool Specific Styles
    =========================================== */

/* Box Styling */
.sb-box {
    max-width: 700px; 
    margin: 0 auto;
    padding: 0; 
}

/* Form Container */
.sb-form {
    padding: 25px; 
    border: 1px solid #1B5E20; /* Dark Green Border */
    border-radius: 8px;
    background-color: #F1F8E9; /* Pale Green Background */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.sb-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2E7D32; /* Medium Green */
    border-bottom: 2px solid #DCEDC8;
    padding-bottom: 5px; 
    margin-top: 5px; 
    margin-bottom: 20px; 
}

/* --- Input Grid --- */
.sb-input-grid {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between;
    gap: 15px 3%;
    margin-bottom: 10px; 
}

.sb-input-group {
    flex-basis: 31%; /* Allows three inputs per row */
    min-width: 180px;
    display: flex;
    flex-direction: column;
}

/* Full width for the total duration input */
.sb-input-group-full {
    flex-basis: 100%;
}


.sb-input-group label {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem; 
    margin-bottom: 8px;
}

.sb-input-group input[type="number"] {
    padding: 12px;
    border: 1px solid #A5D6A7;
    border-radius: 6px;
    font-size: 1rem;
    flex-grow: 1;
    text-align: right; 
    background-color: white;
}

/* Button Styles */
.sb-calculate-btn {
    display: block;
    width: 100%;
    padding: 16px; 
    margin-top: 30px; 
    background-color: #4CAF50; /* Primary Green */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}
.sb-calculate-btn:hover {
    background-color: #388E3C;
}

/* --- Results Display --- */
.sb-results {
    margin-top: 20px; 
    padding: 25px;
    border: 2px solid #388E3C; 
    border-radius: 8px;
    background-color: #E8F5E9; /* Lightest Green for results */
    text-align: center;
}

.sb-results-title {
    color: #1B5E20;
    font-size: 1.6rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #DCEDC8;
    padding-bottom: 5px;
}

/* Total Time Breakdown */
.sb-time-summary {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 15px 0 30px 0;
    padding: 10px;
    border: 1px solid #C8E6C9;
    border-radius: 6px;
    background-color: #FFFFFF;
}
.sb-summary-item {
    text-align: center;
}
.sb-summary-item .value {
    font-size: 2rem;
    font-weight: 900;
    color: #0D47A1; /* Dark Blue for contrast/focus */
    line-height: 1;
}
.sb-summary-item .unit {
    font-size: 0.9rem;
    color: #4CAF50;
    margin-top: 5px;
}

/* Schedule Table */
.sb-schedule-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

.sb-schedule-table th, .sb-schedule-table td {
    padding: 12px 10px;
    text-align: center;
    border: 1px solid #DCEDC8;
}

.sb-schedule-table th {
    background-color: #4CAF50;
    color: white;
    font-weight: 600;
}
.sb-schedule-table .work-row {
    background-color: #E8F5E9;
    font-weight: 600;
}
.sb-schedule-table .break-row {
    background-color: #F1F8E9;
    color: #1B5E20;
    font-style: italic;
}

/* 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: 600px) {
    .sb-input-group {
        flex-basis: 100%;
        min-width: unset;
    }
    .sb-time-summary {
        flex-direction: column;
        gap: 15px;
    }
}