* {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: 'Poppins', sans-serif;
            background: #2c3e50;
            color: #fff;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px;
            min-height: 100vh;
            transition: background-color 0.5s ease;
        }

        body.scrolled {
            background: #111926;
        }

        .page-header {
            text-align: center;
            margin: 20px 0 50px;
        }

        .page-header h1 {
            font-size: 2.5rem;
            font-weight: 600;
            color: #ecf0f1;
            text-transform: uppercase;
            letter-spacing: 2px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        }

        .calendar-wrapper {
            height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .calendar {
            width: 500px;
            max-width: 90%;
            height: 480px;
            background: #1e2a38;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .calendar-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 20px;
            background: #003087;
            color: #fff;
            font-size: 1.4rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .calendar-header .dropdowns {
            display: flex;
            gap: 10px;
        }

        .calendar-header select {
            font-family: 'Poppins', sans-serif;
            font-size: 1rem;
            padding: 5px 10px;
            border: none;
            border-radius: 4px;
            background: #2c3e50;
            color: #fff;
            cursor: pointer;
            outline: none;
            transition: background 0.2s ease;
            width: 120px;
            text-align: left;
            text-align-last: left;
        }

        #yearSelect {
            text-align: center;
            text-align-last: center;
        }

        .calendar-header select:hover,
        .calendar-header select:focus {
            background: #3e5a78;
        }

        .calendar-header button {
            background: none;
            border: none;
            color: #fff;
            font-size: 1.5rem;
            cursor: pointer;
            transition: transform 0.2s ease;
        }

        .calendar-header button:hover {
            transform: scale(1.2);
        }

        .calendar-body {
            padding: 15px;
            background: #1e2a38;
        }

        #daysOfWeek {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            text-align: center;
            font-size: 0.9rem;
            color: #e0e0e0;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        #calendarDays {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            grid-template-rows: repeat(6, 1fr);
            gap: 5px;
            padding-top: 10px;
            flex-grow: 1;
            min-height: 0;
        }

        .calendar-body div {
            padding: 12px;
            text-align: center;
            font-size: 1rem;
            cursor: pointer;
            transition: background 0.3s ease, transform 0.2s ease, color 0.3s ease;
            border-radius: 8px;
        }

        #calendarDays div:not(.empty) {
            background: #2c3e50;
            color: #ecf0f1;
        }

        #calendarDays div:not(.empty):hover {
            background: #ffffff;
            color: #000000;
            transform: translateY(-3px);
        }

        #calendarDays .empty {
            background: transparent;
            cursor: default;
        }

        .calendar-footer {
            padding: 10px;
            background: #ddd;
            font-size: 0.9rem;
            color: #111;
            font-weight: bold;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        #currentDate {
            text-align: center;
            flex-grow: 1;
        }

        #resetBtn {
            font-family: 'Poppins', sans-serif;
            font-size: 0.9rem;
            padding: 5px 10px;
            background: #E30613;
            color: #fff;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            transition: background 0.2s ease;
        }

        #resetBtn:hover {
            background: #B20410;
        }

        .today {
            background: #E30613 !important;
            color: #fff !important;
            font-weight: bold;
        }

        .age-calculator-wrapper {
            height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .age-calculator {
            width: 600px;
            max-width: 90%;
            padding: 30px;
            background: #1e2a38;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            color: #ecf0f1;
        }

        .age-calculator h3 {
            font-size: 1.2rem;
            margin-bottom: 12px;
            text-align: center;
            color: #003087;
        }

        .age-calculator form {
            margin-bottom: 20px;
        }

        .age-calculator .input-labels {
            display: flex;
            justify-content: center;
            gap: 60px;
            margin-bottom: 8px;
            font-size: 1rem;
            font-weight: 600;
            color: #a0a0a0;
        }

        .age-calculator .input-group {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 20px;
        }

        .age-calculator input,
        .age-calculator select {
            font-family: 'Poppins', sans-serif;
            font-size: 1rem;
            padding: 8px 12px;
            border: none;
            border-radius: 4px;
            background: #2c3e50;
            color: #fff;
            width: 90px;
            text-align: center;
            outline: none;
            transition: background 0.2s ease;
        }

        .age-calculator input:focus,
        .age-calculator select:focus {
            background: #3e5a78;
        }

        #currentMonth, #birthMonth {
            text-align: left;
            text-align-last: left;
        }

        .age-calculator button {
            font-family: 'Poppins', sans-serif;
            font-size: 1rem;
            padding: 10px 25px;
            background: #003087;
            color: #fff;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            transition: background 0.2s ease;
            display: block;
            margin: 0 auto;
        }

        .age-calculator button:hover {
            background: #001f5c;
        }

        #ageResult {
            text-align: center;
            font-size: 1.1rem;
            margin-top: 15px;
            color: #ecf0f1;
        }

        #totalDays {
            text-align: center;
            font-size: 1rem;
            margin-top: 10px;
            color: #a0a0a0;
        }

        #ageResetBtn {
            font-family: 'Poppins', sans-serif;
            font-size: 0.9rem;
            padding: 8px 15px;
            background: #E30613;
            color: #fff;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            transition: background 0.2s ease;
            display: block;
            margin: 15px auto 0;
        }

        #ageResetBtn:hover {
            background: #B20410;
        }

        @media (max-width: 600px) {
            .page-header h1 {
                font-size: 1.8rem;
            }

            .calendar, .age-calculator {
                width: 100%;
                max-width: 100%;
            }

            .calendar {
                height: 400px;
            }

            .calendar-header {
                font-size: 1.1rem;
                padding: 10px 15px;
            }

            .calendar-header select {
                font-size: 0.9rem;
                padding: 4px 8px;
                width: 100px;
            }

            .calendar-header button {
                font-size: 1.2rem;
            }

            .calendar-body div {
                padding: 8px;
                font-size: 0.9rem;
            }

            .calendar-footer {
                font-size: 0.8rem;
            }

            #resetBtn {
                font-size: 0.8rem;
                padding: 4px 8px;
            }

            .age-calculator {
                padding: 20px;
            }

            .age-calculator h3 {
                font-size: 1rem;
            }

            .age-calculator .input-labels {
                gap: 20px;
                font-size: 0.8rem;
            }

            .age-calculator .input-group {
                gap: 10px;
            }

            .age-calculator input,
            .age-calculator select {
                font-size: 0.9rem;
                width: 70px;
                padding: 6px 8px;
            }

            .age-calculator button {
                font-size: 0.9rem;
                padding: 8px 20px;
            }

            #ageResult {
                font-size: 0.9rem;
            }

            #totalDays {
                font-size: 0.8rem;
            }

            #ageResetBtn {
                font-size: 0.8rem;
                padding: 6px 12px;
            }
        }
