/* --- Global Styles --- */
#age-calc-tool {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f0f2f5;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
		margin-top:120px;
}
#age-calc-tool * { box-sizing: border-box; }

/* Container */
.age-container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Header */
.age-header-strip {
    background: #3b609c;
    color: white;
    padding: 12px 15px;
    font-weight: 600;
}

/* Form Area */
.age-form-box { padding: 20px; }

.age-label {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 600;
    display: block;
}

/* Input Row */
.age-input-row {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    align-items: center;
}

/* Inputs Styling */
.age-select, .age-input {
    padding: 5px 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    height: 45px;
    background: white;
}

/* --- FLEX RATIOS (Width Control) --- */
/* Day (DD): छोटा */
.day-select { flex: 1; min-width: 60px; }

/* Month (MM): थोड़ा बड़ा (लेकिन पहले से छोटा) */
.month-select { flex: 1.4; min-width: 80px; } 

/* Year (YYYY): सबसे बड़ा */
.year-input { flex: 1.6; min-width: 70px; }

/* Calendar Icon Button */
.calendar-icon {
    font-size: 24px;
    color: #3b609c;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Button */
.age-calc-btn {
    background: #558b2f;
    color: white;
    font-size: 18px;
    font-weight: bold;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
}
.age-calc-btn:hover { background: #33691e; }

/* Result Table */
#age-result-box { border-top: 2px solid #558b2f; background: #fff; }
.result-header { background: #f1f8e9; color: #33691e; padding: 10px 20px; font-weight: bold; font-size: 20px; }
.result-content { padding: 20px; }
.main-age-text { font-size: 22px; margin-bottom: 15px; color: #333; }
.age-table { width: 100%; border-collapse: collapse; }
.age-table td { border-bottom: 1px solid #eee; padding: 8px 0; font-size: 15px; }
.age-table td:first-child { font-weight: 600; color: #555; width: 40%; }

/* --- MOBILE FIXES --- */
@media (max-width: 768px) {
    
    /* 1. Full Width Breakout */
    #age-calc-tool {
        width: 100vw !important;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
        padding: 10px 0 !important;
    }

    .age-container { border: none; box-shadow: none; border-radius: 0; }

    /* 2. One Line Layout */
    .age-input-row {
        gap: 5px !important;
        padding-right: 5px; /* Icon ke liye jagah */
    }

    /* 3. Fonts Small on Mobile */
    .age-select, .age-input {
        font-size: 14px !important;
        padding: 5px !important;
    }
    
    /* 4. Icon visible on mobile now */
    .calendar-icon {
        font-size: 22px !important;
        padding: 0 5px !important;
    }
}
