/* ===========================================
   Date-to-Date Calculator - Tool Specific Styles (Green/Earth Theme)
   =========================================== */

/* Tool Layout */
.dtdc-box {
    max-width: 650px;
    margin: 0 auto;
}

/* --- Controls and Inputs --- */
.dtdc-controls {
    background: #f0fdfa; /* Light Green/Mint BG */
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #a7f3d0;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two dates side-by-side */
    gap: 20px;
}

.dtdc-input-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.dtdc-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #047857; /* Dark Green Label */
    margin-bottom: 6px;
}

.dtdc-input {
    padding: 10px;
    border: 1px solid #34d399; 
    border-radius: 6px;
    font-size: 1.1rem;
    color: #1f2937;
    width: 100%;
}

/* --- Results Summary --- */
.dtdc-results {
    margin-top: 30px;
    text-align: center;
}

.dtdc-summary {
    padding: 25px;
    background: #f0fdfa; 
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.dtdc-difference-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Years, Months, Days */
    gap: 15px;
    margin-bottom: 20px;
}

.dtdc-result-item {
    border-right: 1px solid #a7f3d0;
    padding: 0 5px;
}
.dtdc-result-item:last-child {
    border-right: none;
}

.dtdc-result-label {
    font-size: 0.9rem;
    color: #047857;
    font-weight: 600;
    margin-bottom: 5px;
}

.dtdc-result-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #10b981; /* Primary Teal/Green Highlight */
    line-height: 1.1;
}

.dtdc-total-days {
    padding-top: 15px;
    border-top: 1px dashed #a7f3d0;
    margin-top: 10px;
}

.dtdc-total-days-value {
    font-size: 3rem;
    font-weight: 800;
    color: #047857;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .dtdc-controls {
        grid-template-columns: 1fr; 
    }
    .dtdc-difference-grid {
        grid-template-columns: 1fr;
    }
    .dtdc-result-item {
        border-right: none;
        border-bottom: 1px solid #a7f3d0;
        padding-bottom: 15px;
    }
    .dtdc-result-item:last-child {
        border-bottom: none;
    }
    .dtdc-result-value {
        font-size: 1.8rem;
    }
    .dtdc-total-days-value {
        font-size: 2.5rem;
    }
}