/* ===========================================
Time Duration Calculator - Tool Specific Styles
=========================================== */

/* Tool Layout */
.tdc-box {
max-width: 800px;
margin: 0 auto;
}

/* Controls and Inputs */
.tdc-controls {
display: flex;
gap: 25px;
background: #f0fdf4; /* Very Light Green BG */
padding: 30px;
border-radius: 12px;
border: 1px solid #d1fae5;
margin-bottom: 30px;
flex-wrap: wrap;
align-items: stretch; /* Align columns */
}

.tdc-input-column {
flex: 1 1 45%; /* Allows two columns on wider screens */
padding: 15px;
border-radius: 8px;
border: 1px solid #a7f3d0;
}
.start-date {
background: #ecfdf5;
}
.end-date {
background: #d1fae5;
}

.tdc-column-title {
font-size: 1.1rem;
font-weight: 700;
color: #065f46; /* Dark Green Title */
margin-bottom: 15px;
text-align: center;
}

.tdc-input-group {
margin-bottom: 15px;
display: flex;
flex-direction: column;
}

.tdc-label {
font-size: 0.9rem;
font-weight: 600;
color: #047857; /* Medium Green Label */
margin-bottom: 6px;
}

.tdc-input {
padding: 10px;
border: 1px solid #34d399; /* Bright Green Border */
border-radius: 6px;
font-size: 1.1rem;
color: #1f2937;
width: 100%;
height: 40px;
}

/* Calculate Button */
.tdc-btn-calc {
width: 100%;
padding: 12px 20px;
font-size: 1.1rem;
font-weight: 700;
border: none;
border-radius: 8px;
cursor: pointer;
background: #10b981; /* Primary Green Button */
color: white;
transition: background 0.2s;
margin-top: 15px;
}
.tdc-btn-calc:hover {
background: #059669;
}

/* --- Results Section (Breakdown) --- */

.tdc-results-section {
margin-top: 30px;
text-align: center;
}

.tdc-result-box {
background: #ffffff;
padding: 30px;
border-radius: 10px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.tdc-card-title {
font-size: 1.1rem;
text-transform: uppercase;
color: #047857;
margin-bottom: 20px;
font-weight: 700;
}

/* Breakdown Display */
.tdc-breakdown {
display: flex;
justify-content: center;
gap: 15px;
flex-wrap: wrap;
padding-bottom: 20px;
border-bottom: 2px solid #e5e7eb;
}

.tdc-breakdown-item {
text-align: center;
flex: 0 0 auto;
padding: 10px 15px;
border-radius: 8px;
background: #f0fdf4; /* Lightest green for item background */
border: 1px solid #34d399;
}

.tdc-breakdown-number {
font-size: 2.5rem;
font-weight: 800;
color: #059669;
line-height: 1;
}
.tdc-breakdown-unit {
font-size: 0.9rem;
color: #065f46;
text-transform: uppercase;
margin-top: 5px;
}


/* --- Summary Section (Total Units) --- */
.tdc-summary-box {
margin-top: 25px;
padding: 15px;
background: #f3f4f6;
border-radius: 8px;
text-align: left;
}
.tdc-summary-title {
font-size: 1rem;
font-weight: 600;
color: #1f2937;
margin-bottom: 10px;
border-bottom: 1px dashed #d1d5db;
padding-bottom: 5px;
}
.tdc-summary-row {
display: flex;
justify-content: space-between;
padding: 5px 0;
}
.tdc-summary-label {
color: #4b5563;
}
.tdc-summary-value {
font-weight: 700;
color: #047857;
}

/* Responsive Styling */
@media (max-width: 768px) {
.tdc-controls {
flex-direction: column;
gap: 15px;
}
.tdc-input-column {
flex-basis: 100%;
}
.tdc-breakdown {
gap: 10px;
}
.tdc-breakdown-number {
font-size: 2rem;
}
.tdc-breakdown-item {
flex-basis: 25%; /* Force 3-4 items per row on mobile */
min-width: 80px;
padding: 8px 10px;
}
}