#age-calc-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: #f4f4f4; /* Background sirf calculator area mein rahega */
    padding: 40px 10px;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    box-sizing: border-box;
}

#age-calc-wrapper * { box-sizing: border-box; }

.ac-container {
    background-color: #ffffff !important;
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top: 8px solid #27ae60 !important;
    color: #333 !important;
}

.ac-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #333 !important;
    font-size: 1.8rem;
}

.ac-container h2 span { color: #27ae60 !important; }

.ac-input-group { margin-bottom: 20px; text-align: left; }

.ac-label {
    display: block;
    color: #555 !important;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.ac-input-wrapper { display: flex; align-items: flex-end; gap: 10px; }
.ac-date-row { display: flex; gap: 8px; flex: 1; }
.ac-date-field { flex: 1; }

/* Input boxes styling with black text */
.ac-date-field input, 
.ac-date-field select {
    width: 100% !important;
    padding: 8px 5px !important;
    background-color: #fff !important;
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
    color: #000 !important; /* Force Black Text */
    font-size: 1rem !important;
    text-align: center !important;
    outline: none !important;
    height: 45px !important;
    box-shadow: none !important;
}

.ac-date-field select:focus, 
.ac-date-field input:focus {
    border-color: #27ae60 !important;
}

.ac-date-field span {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: #888;
    margin-top: 5px;
}

.ac-picker-box {
    position: relative;
    width: 45px;
    height: 45px;
    margin-bottom: 20px;
    background-color: #27ae60;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ac-picker-box input[type="date"] {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; z-index: 10; cursor: pointer;
}

.ac-picker-icon { font-size: 1.2rem; color: #fff; }

.ac-btn-row { display: flex; gap: 10px; margin: 10px 0 25px 0; }

.ac-calc-btn {
    flex: 2;
    padding: 15px;
    background-color: #27ae60 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 1.1rem !important;
    font-weight: bold !important;
    cursor: pointer;
}

.ac-reset-btn {
    flex: 1;
    padding: 15px;
    background-color: #e0e0e0 !important;
    color: #333 !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    cursor: pointer;
}

.ac-result-container { display: flex; gap: 10px; margin-bottom: 25px; }
.ac-result-box { 
    background-color: #f9f9f9; 
    flex: 1; 
    padding: 15px 5px; 
    border-radius: 10px; 
    border: 1px solid #eee; 
    text-align: center;
}
.ac-result-value { font-size: 1.8rem; font-weight: bold; color: #27ae60; }
.ac-result-label { font-size: 0.8rem; color: #777; display: block; }

.ac-extra-results { border-top: 1px solid #eee; padding-top: 15px; text-align: left; }
.ac-result-line { font-size: 0.95rem; margin: 8px 0; color: #444; border-left: 4px solid #27ae60; padding-left: 10px; }
.ac-result-line strong { color: #27ae60; }

.ac-formula-section {
    margin-top: 25px;
    padding: 15px;
    background-color: #fdfdfd;
    border-radius: 8px;
    border: 1px solid #efefef;
    text-align: left;
}
.ac-formula-section h3 { font-size: 1rem; color: #27ae60; margin: 0 0 10px 0; }
.ac-formula-section ul { padding-left: 18px; font-size: 0.85rem; color: #666; margin: 0; }
.ac-error-msg { color: #e74c3c; text-align: center; display: none; margin-bottom: 10px; font-weight: 600; }