/* ===========================================
   Time Difference Calculator - Tool Specific Styles (Forest Green/Light Gray Theme)
   =========================================== */

/* Tool Layout */
.tdc-box {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* --- Input Area --- */
.tdc-input-group {
    background: #f0fdf4; /* Pale Green BG */
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    padding: 30px 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.tdc-input-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap; 
}

.tdc-input-item {
    flex: 1 1 45%; /* Two items per row on wider screens */
    text-align: left;
}

.tdc-label {
    font-size: 1rem;
    font-weight: 600;
    color: #065f46; /* Forest Green Label */
    margin-bottom: 8px;
    display: block;
}

.tdc-input-field {
    width: 100%;
    padding: 12px;
    border: 2px solid #34d399; /* Medium Green Border */
    border-radius: 8px;
    font-size: 1.1rem;
    color: #1f2937;
    box-sizing: border-box;
    background-color: white;
}
.tdc-input-field:focus {
    border-color: #059669; /* Darker Green Focus */
    outline: none;
}

/* --- Results Display --- */
.tdc-results {
    margin-top: 30px;
}

.tdc-summary-box {
    padding: 30px;
    background: #10b981; /* Primary Green Background */
    border: 3px solid #d1fae5;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    color: white;
}

.tdc-result-header {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    border-bottom: 2px solid #a7f3d0;
    padding-bottom: 10px;
}

/* Primary Result (Years, Months, Days format) */
.tdc-primary-result {
    font-size: 2.5rem;
    font-weight: 900;
    color: #d1fae5; /* Pale Green Highlight */
    line-height: 1.2;
    margin-bottom: 25px;
}

/* Detailed Result (Total Units) */
.tdc-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid #059669; /* Dark Green Separator */
}

.tdc-detail-item {
    text-align: center;
}

.tdc-detail-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ecfdf5;
    line-height: 1.1;
}

.tdc-detail-unit {
    font-size: 0.9rem;
    color: #d1fae5;
    text-transform: uppercase;
    margin-top: 5px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .tdc-input-row {
        flex-direction: column;
        gap: 15px;
    }
    .tdc-input-item {
        flex: 1 1 100%;
    }
    .tdc-primary-result {
        font-size: 1.8rem;
    }
    .tdc-detail-grid {
        grid-template-columns: 1fr 1fr; /* 2 columns on mobile */
    }
    .tdc-detail-value {
        font-size: 1.4rem;
    }
}