/* ===========================================
   Chronological Age Calculator - Tool Specific Styles
   =========================================== */

/* Tool Layout */
.ac-box {
    max-width: 650px;
    margin: 0 auto;
}

/* Controls and Inputs */
.ac-controls {
    display: flex;
    gap: 20px;
    background: #fdf2f8; /* Light Pink BG */
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #fbcfe8;
    margin-bottom: 30px;
    flex-wrap: wrap; 
    align-items: flex-end; 
}

.ac-input-group {
    flex: 1; 
    min-width: 180px;
    display: flex;
    flex-direction: column;
}

.ac-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #9d174d; /* Dark Pink Label */
    margin-bottom: 6px;
}

.ac-input {
    padding: 10px;
    border: 1px solid #ec4899; /* Medium Pink Border */
    border-radius: 6px;
    font-size: 1.1rem;
    color: #1f2937;
    width: 100%;
    height: 40px; /* Standardize height */
}

/* Calculate Button */
.ac-btn-calc {
    padding: 10px 20px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: #db2777; /* Primary Pink Button */
    color: white;
    transition: background 0.2s;
    height: 40px; 
    white-space: nowrap;
}
.ac-btn-calc:hover {
    background: #be185d;
}

/* --- Results Section --- */

.ac-results-section {
    margin-top: 30px;
    text-align: center;
}

.ac-result-box {
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.ac-card-title {
    font-size: 1rem;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 10px;
}

/* Main Age Display (e.g., 30 Years) */
.ac-value-main {
    font-size: 3.5rem;
    font-weight: 800;
    color: #db2777;
    line-height: 1;
}

/* Breakdown Display (Years, Months, Days) */
.ac-breakdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px dashed #fbcfe8;
}

.ac-breakdown-item {
    text-align: center;
}

.ac-breakdown-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
}
.ac-breakdown-unit {
    font-size: 0.9rem;
    color: #6b7280;
    text-transform: uppercase;
}

/* Responsive Styling */
@media (max-width: 600px) {
    .ac-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .ac-btn-calc {
        flex: 1; /* Make button fill the width */
        height: auto;
        padding: 12px 20px;
    }
    .ac-breakdown {
        flex-wrap: wrap;
    }
}