/* ===========================================
    Day of Week Calculator - Tool Specific Styles
    =========================================== */

/* Box Styling */
.dow-box {
    max-width: 800px; /* Slightly wider to accommodate complex results table */
    margin: 0 auto;
    padding: 0; 
}

/* Form Container */
.dow-form {
    padding: 25px; 
    border: 1px solid #607D8B; /* Blue Grey Border */
    border-radius: 8px;
    background-color: #ECEFF1; /* Light Blue Grey Background */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.dow-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #455A64; /* Dark Blue Grey */
    border-bottom: 2px solid #CFD8DC;
    padding-bottom: 5px; 
    margin-top: 5px; 
    margin-bottom: 20px; 
}

/* --- Input Grid --- */
.dow-input-grid {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between;
    gap: 15px 2%;
    margin-bottom: 10px; 
}

.dow-input-group {
    flex-basis: 48%; /* Allows two inputs per row */
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

.dow-input-group label {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem; 
    margin-bottom: 8px;
}

.dow-input-group input[type="date"] {
    padding: 12px;
    border: 1px solid #90A4AE;
    border-radius: 6px;
    font-size: 1rem;
    flex-grow: 1;
    text-align: left; 
    background-color: white;
}

/* Button Styles */
.dow-calculate-btn {
    display: block;
    width: 100%;
    padding: 16px; 
    margin-top: 30px; 
    background-color: #607D8B; /* Primary Blue Grey */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}
.dow-calculate-btn:hover {
    background-color: #455A64;
}

/* --- Results Display --- */
.dow-results {
    margin-top: 20px; 
    padding: 25px;
    border: 2px solid #607D8B; 
    border-radius: 8px;
    background-color: #F8F9FA; /* Off-White for Results */
    text-align: center;
}

.dow-results-title {
    color: #455A64;
    font-size: 1.6rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #CFD8DC;
    padding-bottom: 5px;
}

/* Main Day Display */
#outputDayOfWeek {
    font-size: 3rem;
    font-weight: 900;
    color: #009688; /* Teal for high visibility */
    margin: 10px 0 20px 0;
}

/* Results Grid/Table Layout */
.dow-results-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.dow-results-panel {
    flex-basis: 48%; /* Two panels side-by-side */
    min-width: 300px;
    padding: 15px;
    border: 1px solid #B0BEC5;
    border-radius: 6px;
    background-color: #FFFFFF;
    text-align: left;
}
.dow-results-panel h3 {
    font-size: 1.2rem;
    color: #455A64;
    border-bottom: 1px dashed #CFD8DC;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

/* Inner Data Table */
.dow-data-table {
    width: 100%;
    border-collapse: collapse;
}
.dow-data-table th, .dow-data-table td {
    padding: 8px 0;
}
.dow-data-table th {
    font-weight: 500;
    color: #78909C;
    width: 60%;
}
.dow-data-table td {
    font-weight: 700;
    text-align: right;
    color: #263238;
}

/* Highlighted Status */
.status-yes { color: #C62828; } /* Red for Yes/True */
.status-no { color: #388E3C; } /* Green for No/False */

/* 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: 700px) {
    .dow-results-panel {
        flex-basis: 100%;
        min-width: unset;
    }
}