/* ===========================================
    Date Difference Calculator - Tool Specific Styles
    =========================================== */

/* Box Styling */
.dd-box {
    max-width: 750px; 
    margin: 0 auto;
    padding: 0; 
}

/* Form Container */
.dd-form {
    padding: 25px; 
    border: 1px solid #37474F; /* Dark Blue Grey Border */
    border-radius: 8px;
    background-color: #F5F5F5; /* Light Grey Background */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.dd-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #263238; /* Very Dark Grey */
    border-bottom: 2px solid #CFD8DC;
    padding-bottom: 5px; 
    margin-top: 5px; 
    margin-bottom: 20px; 
}

/* --- Input Grid --- */
.dd-input-grid {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between;
    gap: 15px 2%;
    margin-bottom: 10px; 
}

.dd-input-group {
    flex-basis: 48%; /* Allows two inputs per row */
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

.dd-input-group label {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem; 
    margin-bottom: 8px;
}

.dd-input-group input,
.dd-input-group select {
    padding: 12px;
    border: 1px solid #B0BEC5;
    border-radius: 6px;
    font-size: 1rem;
    flex-grow: 1;
    text-align: left; 
    background-color: white;
}

/* Specific styling for the Timezone select */
#timezoneInput {
    flex-basis: 100%;
    min-width: unset;
}

/* Time Input Alignment */
.dd-time-row {
    display: flex;
    gap: 10px;
    align-items: center;
}
.dd-time-row input {
    flex-basis: 50%;
    text-align: right;
}

/* Button Styles */
.dd-calculate-btn {
    display: block;
    width: 100%;
    padding: 16px; 
    margin-top: 30px; 
    background-color: #03A9F4; /* Primary Blue */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}
.dd-calculate-btn:hover {
    background-color: #0288D1;
}

/* --- Results Display --- */
.dd-results {
    margin-top: 20px; 
    padding: 25px;
    border: 2px solid #03A9F4; 
    border-radius: 8px;
    background-color: #E1F5FE; /* Pale Blue for results */
    text-align: center;
}

.dd-results-title {
    color: #0288D1;
    font-size: 1.6rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #B3E5FC;
    padding-bottom: 5px;
}

/* Result Grid for Time Breakdown (Years, Months, Days, etc.) */
.dd-time-breakdown {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 15px 10px;
    margin-top: 20px;
    text-align: center;
}

.dd-breakdown-item {
    flex-basis: 18%; /* Allows 5 items per row */
    padding: 10px;
    border-radius: 6px;
    background-color: #FFFFFF;
}

.dd-breakdown-item .value {
    font-size: 2rem;
    font-weight: 900;
    color: #009688; /* Teal for time values */
    line-height: 1;
}

.dd-breakdown-item .unit {
    font-size: 0.9rem;
    color: #78909C;
    margin-top: 5px;
}

/* Total Days/Business Days Table */
.dd-summary-table {
    width: 100%;
    max-width: 400px;
    margin: 30px auto 10px auto;
    border-collapse: collapse;
}

.dd-summary-table th, .dd-summary-table td {
    padding: 12px 15px;
    border-bottom: 1px dashed #B3E5FC;
}
.dd-summary-table th {
    font-weight: 600;
    color: #455A64;
    text-align: left;
}
.dd-summary-table td {
    font-size: 1.3rem;
    font-weight: 700;
    color: #263238;
    text-align: right;
}

/* 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) {
    .dd-input-group {
        flex-basis: 100%;
        min-width: unset;
    }
    .dd-time-breakdown {
        justify-content: space-between;
        gap: 10px 5px;
    }
    .dd-breakdown-item {
        flex-basis: 30%; /* Three items per row */
    }
}