        :root {
            --bg-color: #121212;
            --primary-color: #8ab4f8;
            --secondary-color: #c58af9;
            --text-color: #e0e0e0;
            --text-muted-color: #888;
            --border-color: rgba(255, 255, 255, 0.1);
            --button-bg-color: #333;
            --button-text-color: #e0e0e0;
        }

        html.light-theme {
            --bg-color: #ffffff;
            --primary-color: #323131;
            --secondary-color: #323131;
            --text-color: #323131;
            --text-muted-color: #555555;
            --border-color: rgba(0, 0, 0, 0.1);
            --button-bg-color: #f0f0f0;
            --button-text-color: #000000;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Poppins', sans-serif;
            font-weight: 300;
            background-color: var(--bg-color);
            color: var(--text-color);
            transition: background-color 0.3s, color 0.3s;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            line-height: 1.6;
        }

        p {
            font-size: 16px;
        }

        h1 { font-size: 32px; }
        h2 { font-size: 28px; }
        h3 { font-size: 26px; }
        h4 { font-size: 24px; }


        .page-wrapper {
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            width: 100%;
        }

        .site-header {
            width: 100%;
            padding: 10px 0;
            
            border-bottom: 1px solid var(--border-color);
            background-color: var(--bg-color);
        }

        .site-footer {
            width: 100%;
            border-top: 1px solid var(--border-color);
            text-align: center;
            margin-top: auto;
            padding: 30px 20px;
            background-color: var(--bg-color);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 20px;
        }

        .footer-navigation {
            display: flex;
            gap: 25px;
            font-size: 0.9rem;
        }

        .footer-navigation a {
            color: var(--text-muted-color);
            text-decoration: none;
            transition: color 0.2s;
        }

        .footer-navigation a:hover {
            color: var(--primary-color);
            text-decoration: underline;
        }

        .social-icons {
            display: flex;
            gap: 20px;
        }

        .social-icons a {
            color: var(--text-muted-color);
            transition: color 0.2s, transform 0.2s;
            display: inline-block;
        }

        .social-icons a:hover {
            color: var(--primary-color);
            transform: scale(1.15) translateY(-2px);
        }

        .social-icons svg {
            width: 26px;
            height: 26px;
        }

        .section-subtitle {
            font-size: 1rem;
            color: var(--text-muted-color);
            text-align: left;
            max-width: 800px;
            margin: -10px auto 25px auto;
            font-weight: 300;
        }

        .section-subtitle strong {
            font-weight: 500;
            color: var(--text-color);
        }

        .info-table tr.result-highlight td {
            font-weight: 500;
            color: var(--primary-color);
        }

        .info-table tr.result-highlight {
            background-color: color-mix(in srgb, var(--primary-color) 10%, transparent);
        }

        html.light-theme .info-table tr.result-highlight {
            background-color: #f5f5f5;
        }

        .site-header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .site-branding {
            font-size: 1.5rem;
            font-weight: 600;
        }

        .site-branding a {
            text-decoration: none;
            color: var(--text-color);
        }

        #theme-toggle {
            background-color: var(--button-bg-color);
            border: 1px solid var(--border-color);
            color: var(--button-text-color);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 1.2rem;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: background-color 0.2s, transform 0.2s;
        }

        #theme-toggle:hover {
            transform: scale(1.1);
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .main-navigation ul {
            list-style: none;
            display: flex;
            gap: 20px;
        }

        .main-navigation a {
            text-decoration: none;
            color: var(--text-muted-color);
            font-weight: 400;
            transition: color 0.3s;
        }

        .main-navigation a:hover {
            color: var(--primary-color);
        }

        #menu-toggle {
            display: none;
        }

        .main-content-wrapper {
            display: flex;
            justify-content: center;
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 10px;
            gap: 40px;
            align-items: flex-start;
            flex-grow: 1;
        }

        .calculator-container {
            width: 100%;
            max-width: 800px;
            display: flex;
            flex-direction: column;
            gap: 40px;
            padding: 50px 0;
        }

        .sidebar {
            width: 350px;
            flex-shrink: 0;
            padding: 50px 0;
            position: sticky;
            top: 20px;
        }

        .sidebar-widget {
           background: transparent;
           padding: 20px;
           border: 1px solid var(--border-color);
           border-radius: 10px;
           margin-bottom: 30px; 
       }
            
        

        .sidebar-widget h3 {
            font-weight: 500;
            margin-bottom: 20px;
            color: var(--primary-color);
            padding-bottom: 10px;
            
        }

        .sidebar-widget ul {
            list-style: none;
        }

        .sidebar-widget ul li a {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 13px;
            margin-bottom: 5px;
            text-decoration: none;
            color: var(--text-muted-color);
            transition: background-color 0.2s, color 0.2s;
            font-weight: 400;
        }

        .sidebar-widget ul li a:hover {
            background-color: color-mix(in srgb, var(--primary-color) 10%, transparent);
            color: var(--text-color);
        }

        .sidebar-widget ul li a.active {
            background-color: color-mix(in srgb, var(--primary-color) 20%, transparent);
            color: var(--primary-color);
            font-weight: 500;
        }
        
        
         
        .arrow-icon {
            font-size: 1.5rem;
            color: var(--text-muted-color);
            transition: transform 0.2s ease, color 0.2s ease;
        }

        .sidebar-widget ul li a:hover .arrow-icon {
            transform: translateX(5px);
            color: var(--primary-color);
        }

        .sun-icon {
            display: none;
        }

        html.light-theme .moon-icon {
            display: none;
        }

        html.light-theme .sun-icon {
            display: block;
        }

        .page-title {
            text-align: left;
        }

        .page-title h1 {
            font-weight: 500;
            color: var(--primary-color);
        }

        .page-title .subtitle {
            font-size: 1rem;
            color: var(--text-muted-color);
            margin-top: 10px;
            font-weight: 400;
        }

        #dynamic-question-title {
            text-align: left;
            font-weight: 500;
        }

        #dynamic-question-title span {
            font-weight: 500;
            color: var(--primary-color);
        }

        #main-result-paragraph {
            text-align: left;
            line-height: 1.6;
            margin-top: -20px;
        }

        #main-result-paragraph span {
            font-weight: 400;
            color: var(--primary-color);
        }

        .content-box {
            background: transparent;
            padding: 10px;
            border: 1px solid var(--border-color);
            border-radius: 10px;
        }

        #big-font-result {
            font-size: 2rem;
            font-weight: 500;
            text-align: center;
            color: rgb(9, 9, 9);
            background-color: #dbdcde;
            padding: 10px;
            border-radius: 8px;
        }

        .result-section-title {
            font-weight: 500;
            margin-bottom: 20px;
            color: var(--primary-color);
            padding-bottom: 10px;
            border-bottom: 1px solid var(--border-color);
            text-align: left;
        }

        .result-section-title span {
            font-weight: 500;
            color: var(--secondary-color);
        }

        .info-section h2 {
            text-align: left;
            font-weight: 500;
            color: var(--text-muted-color);
            margin-bottom: 20px;
        }
        
        #quick-dates-heading {
            text-align: left;
        }

        .info-section h2 span {
            color: var(--text-color);
            font-weight: 500;
        }

        .info-table {
            width: 100%;
            border-collapse: collapse;
        }

        .info-table tr {
            border-bottom: 1px solid var(--border-color);
        }

        .info-table tr:last-child {
            border-bottom: none;
        }

        .info-table td {
            padding: 10px 8px;
            vertical-align: middle;
        }

        .info-table td:first-child {
            border-right: 1px solid var(--border-color);
        }

        .info-table .flag-cell,
        .info-table .label-cell {
            font-weight: 400;
        }

        .info-table .flag-cell {
            font-size: 2rem;
            width: 60px;
            font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "Twitter Color Emoji", sans-serif;
        }

        .info-table .date-cell {
            text-align: left;
            font-family: monospace;
            font-size: 1rem;
            color: var(--primary-color);
        }

        #quick-dates-table .label-cell,
        .breakdown-table .label-cell {
            color: var(--text-muted-color);
        }

        #quick-dates-table .date-cell {
            color: var(--secondary-color);
        }

        .input-section {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .input-wrapper {
            flex-grow: 1;
            position: relative;
        }

        #daysInput {
            width: 100%;
            padding: 15px 20px 15px 55px;
            font-size: 1.2rem;
            font-weight: 500;
            background: transparent;
            border: 1px solid var(--border-color);
            border-radius: 10px;
            color: var(--text-color);
            outline: none;
            transition: border-color 0.3s, box-shadow 0.3s;
        }

        #daysInput:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 20%, transparent);
        }

        .input-wrapper::before {
            position: absolute;
            left: 20px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 1.5rem;
        }

        #calculateBtn {
            padding: 15px 35px;
            font-size: 1.2rem;
            font-weight: 500;
            color: #fff;
            background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
            border: none;
            border-radius: 10px;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.3s;
        }

        #calculateBtn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px color-mix(in srgb, var(--primary-color) 20%, transparent);
        }

        .revealable {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.5s ease, transform 0.5s ease;
        }

        .revealable.visible {
            opacity: 1;
            transform: translateY(0);
        }
        
        
        #dynamic-breakdown-title.result-section-title {
            font-weight: 500;
            color: var(--primary-color);
            text-align: left;
            margin-bottom: 8px;
            border-bottom: none;
            padding-bottom: 0;
        }

        #result-breakdown-title-sub {
            font-size: 0.9rem;
            font-weight: 400;
            color: var(--text-muted-color);
            text-align: left;
            margin-top: 0;
            margin-bottom: 25px;
        }

        .breakdown-table .value-cell {
            text-align: left;
            font-weight: 400;
            color: var(--text-color);
        }

        .calendar-visual {
            display: flex;
            justify-content: space-between;
            gap: 20px;
        }

        .calendar {
            flex: 1;
            background: transparent;
            padding: 20px;
            border-radius: 10px;
            border: 1px solid var(--border-color);
        }

        .calendar h3 {
            text-align: center;
            margin-bottom: 15px;
            font-weight: 400;
        }

        .calendar-header {
            text-align: center;
            font-weight: 400;
            font-size: 1.1rem;
            margin-bottom: 15px;
            color: var(--secondary-color);
        }

        
        .calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 0;
            border-right: 1px solid var(--border-color);
            border-bottom: 1px solid var(--border-color);
        }

        .calendar-grid>div {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 38px;
            font-size: 0.9rem;
            border-top: 1px solid var(--border-color);
            border-left: 1px solid var(--border-color);
        }

        .day-name {
            font-weight: 400;
            color: var(--text-muted-color);
        }

        .day.empty {
            visibility: hidden;
        }

        .day.today {
            background-color: var(--primary-color);
            color: var(--bg-color);
            font-weight: 600;
        }

        .day.target-day {
            background-color: var(--secondary-color);
            color: var(--bg-color);
            font-weight: 600;
        }

        input[type=number]::-webkit-inner-spin-button,
        input[type=number]::-webkit-outer-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        input[type=number] {
            -moz-appearance: textfield;
        }

        @media (max-width: 1200px) {
            .main-content-wrapper {
                flex-direction: column;
            }
            .sidebar {
                width: 100%;
                position: static;
                padding-top: 0;
            }
            .calculator-container {
                max-width: none;
            }
        }

        @media (max-width: 768px) {
            h1 { font-size: 28px; }
            h2 { font-size: 24px; }
            h3 { font-size: 22px; }
            h4 { font-size: 20px; }

            .site-header-content {
                padding: 0 20px;
            }
            .site-header {
                padding: 15px 0;
            }
            .main-navigation {
                position: relative;
            }
            #menu-toggle {
                display: block;
                background: transparent;
                border: none;
                font-size: 1.8rem;
                cursor: pointer;
                color: var(--text-color);
                z-index: 1001;
            }
            
            #theme-toggle {
                order: 1;
            }
            .main-navigation {
                order: 2;
            }

            .main-navigation nav ul {
                display: block;
                position: absolute;
                top: calc(100% + 15px);
                right: 0;
                background-color: var(--bg-color);
                border: 1px solid var(--border-color);
                box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
                border-radius: 8px;
                list-style: none;
                padding: 10px;
                width: 220px;
                z-index: 1000;
                opacity: 0;
                transform: translateY(-10px) scale(0.95);
                pointer-events: none;
                transition: opacity 0.25s ease-out, transform 0.25s ease-out;
            }
            .main-navigation nav ul.nav-open {
                opacity: 1;
                transform: translateY(0) scale(1);
                pointer-events: auto;
            }
            .main-navigation nav ul li {
                padding: 10px;
            }
            .main-content-wrapper {
                padding: 0 10px;
            }
            .calculator-container {
                padding: 30px 0;
            }
            .page-title {
                text-align: left;
            }
            
            #dynamic-question-title,
            #main-result-paragraph {
                text-align: left;
            }
            #main-result-paragraph {
                margin-top: 0;
                font-size: 1rem;
            }
            .input-section {
                flex-direction: row;
                gap: 15px;
            }
            .calendar-visual {
                flex-direction: column;
            }
            
            #big-font-result {
                font-size: 1.8rem;
            }
            .info-table td {
                padding: 10px 5px;
            }
            .info-table .flag-cell {
                font-size: 1.5rem;
                width: 50px;
                
            
            }
        }