/* =============================================
   TIME CALCULATOR — time.css
   Tool-specific styles only.
   Common styles are in tool.css
   ============================================= */

.time-calc { width: 100%; display: flex; flex-direction: column; gap: 24px; }

/* Section card */
.time-section {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
}
.time-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--teal);
    display: inline-block;
}
.time-desc {
    font-size: 13px;
    color: var(--text2);
    margin-bottom: 16px;
    line-height: 1.6;
}

/* Column headers */
.time-row-inputs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 8px;
}
.time-col-header {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: center;
}

/* Time inputs */
.time-input {
    width: 100%;
    padding: 10px 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--font-mono);
    color: var(--text);
    background: var(--white);
    outline: none;
    text-align: center;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.time-input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,201,167,0.1); }

.time-input-sm {
    width: 60px;
    padding: 8px 6px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-mono);
    color: var(--text);
    background: var(--white);
    outline: none;
    text-align: center;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.time-input-sm:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,201,167,0.1); }

/* Operator row */
.time-op-row {
    display: flex;
    gap: 20px;
    margin: 10px 0;
    padding: 8px 12px;
    background: var(--light);
    border-radius: 8px;
    border: 1px solid var(--border);
}
.time-date-op-row {
    display: flex;
    gap: 20px;
    margin: 12px 0;
}
.bmi-radio-label { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; color: var(--text); cursor: pointer; }
.bmi-radio-label input[type="radio"] { width: 17px; height: 17px; accent-color: var(--teal); cursor: pointer; }

.time-equals-row {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
    margin: 6px 0;
}

/* Date row */
.time-date-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.time-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    min-width: 90px;
}
.time-date-inputs {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.time-colon {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
}

/* Reuse age select styles */
.age-select {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-main);
    color: var(--text);
    background: var(--white);
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
}
.age-select:focus { border-color: var(--teal); }
.age-select-day { width: 68px; }
.age-year-input {
    width: 88px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-mono);
    color: var(--text);
    background: var(--white);
    outline: none;
    text-align: center;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.age-year-input:focus { border-color: var(--teal); }

/* Expression input */
.time-expr-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: var(--font-mono);
    color: var(--text);
    background: var(--white);
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.time-expr-input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,201,167,0.1); }

/* Result box */
.time-result-box {
    margin-top: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.time-result-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 10px 18px;
}

/* Answer cards */
.time-ans-cards {
    padding: 16px;
    background: var(--light);
    border-bottom: 1px solid var(--border);
}
.time-ans-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 18px;
}
.time-ans-card.highlight { border-color: var(--teal); background: #f0fdf9; }
.time-ans-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}
.time-ans-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--teal);
    font-family: var(--font-mono);
    line-height: 1.2;
}
.time-ans-sub {
    font-size: 14px;
    color: var(--text2);
    margin-top: 4px;
}

/* Breakdown table */
.time-ans-breakdown { padding: 14px 16px 16px; }
.time-table { width: 100%; max-width: 360px; }
.time-table td:last-child {
    text-align: right;
    font-family: var(--font-mono);
    color: var(--navy);
}

@media (max-width: 600px) {
    .time-row-inputs { grid-template-columns: repeat(2, 1fr); }
    .time-date-inputs { gap: 4px; }
}
