/* 
 * style.css 
 * modern & clean design for age calculator widget 
 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: linear-gradient(145deg, #f0f4fa 0%, #e9eef5 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
}

.card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 42px;
    box-shadow: 0 25px 45px -12px rgba(0, 20, 40, 0.25),
                0 2px 8px rgba(0, 0, 0, 0.02),
                inset 0 1px 1px rgba(255, 255, 255, 0.6);
    padding: 2.2rem 2rem;
    max-width: 560px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.2s ease;
}

.card:hover {
    transform: scale(1.01);
    box-shadow: 0 30px 55px -12px rgba(18, 52, 86, 0.3);
}

h2 {
    font-size: 2.1rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #1a2639;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.2rem;
    border-left: 7px solid #3a7ca5;
    padding-left: 1.3rem;
}

h2 span {
    background: #eef3f9;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 400;
    padding: 0.2rem 1rem;
    margin-left: 10px;
    color: #2b4b6f;
    border: 1px solid #cdddee;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 1.8rem;
}

.input-group label {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #3f506e;
    margin-left: 8px;
}

.date-input {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 60px;
    padding: 4px 6px 4px 24px;
    border: 1.5px solid #d7e0e9;
    transition: all 0.2s;
    box-shadow: 0 4px 10px -5px rgba(0,0,0,0.05);
}

.date-input:focus-within {
    border-color: #3a7ca5;
    box-shadow: 0 6px 14px -8px #1e4f76, 0 0 0 3px rgba(58,124,165,0.15);
}

.date-input i {
    font-style: normal;
    font-weight: 400;
    color: #6b7f9c;
    margin-right: 8px;
    font-size: 1.1rem;
}

.date-input input {
    width: 100%;
    padding: 16px 8px 16px 0;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    font-weight: 450;
    color: #121f33;
    outline: none;
}

.date-input input::-webkit-calendar-picker-indicator {
    opacity: 0.4;
    padding: 6px;
    cursor: pointer;
    filter: invert(0.2);
}

.button-group {
    display: flex;
    gap: 14px;
    margin: 2rem 0 1.8rem;
    flex-wrap: wrap;
}

.btn {
    flex: 1 1 auto;
    background: white;
    border: 1.5px solid #cbd6e4;
    padding: 16px 18px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 550;
    color: #1a2b3c;
    cursor: pointer;
    transition: 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffffdd;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px -8px #1e3b5a1a;
}

.btn-primary {
    background: #1e3b5a;
    border: 1.5px solid #1e3b5a;
    color: white;
    box-shadow: 0 12px 22px -12px #1e3b5a;
}

.btn-primary:hover {
    background: #264f73;
    border-color: #264f73;
    transform: translateY(-2px);
    box-shadow: 0 22px 28px -14px #163753;
}

.btn-secondary:hover {
    background: #e9eef5;
    border-color: #9eb1c9;
    transform: translateY(-2px);
}

.result-panel {
    background: #e4ecf5b3;
    border-radius: 36px;
    padding: 1.6rem 1.8rem;
    border: 1px solid #ffffff;
    box-shadow: inset 0 2px 6px #ffffff, 0 10px 20px -15px #1d3c58;
}

.age-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 1px dashed #b2c6dd;
    padding: 0.7rem 0;
}

.age-row:last-child {
    border-bottom: none;
}

.age-label {
    font-size: 1rem;
    font-weight: 500;
    color: #2b4b6f;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.age-value {
    font-size: 2.1rem;
    font-weight: 450;
    color: #0f293f;
    line-height: 1.2;
}

.age-unit {
    font-size: 0.9rem;
    color: #617e9e;
    margin-left: 5px;
    font-weight: 400;
}

.total-months-days {
    display: flex;
    justify-content: space-between;
    margin-top: 0.8rem;
    background: #cddeef70;
    border-radius: 34px;
    padding: 0.9rem 1.5rem;
    backdrop-filter: blur(2px);
}

.total-months-days span {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.total-months-days .big {
    font-size: 1.5rem;
    font-weight: 470;
    color: #002856;
}

.total-months-days .small {
    font-size: 0.75rem;
    color: #3f6180;
    text-transform: uppercase;
    margin-top: 4px;
}

.footer-note {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: #7891ad;
    border-top: 1px solid #cddbea;
    padding-top: 1.2rem;
}

.footer-note a {
    color: #2b5f8a;
    text-decoration: none;
    font-weight: 500;
}