        *,
        *::before,
        *::after {
            box-sizing: border-box;
        }

 body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(to bottom, #e0f7fa, #80deea);
            color: #01579b;
            margin: 0;
            padding: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            text-align: center;
        }

             .flatpickr-calendar {
            font-family: Arial, sans-serif;
        }

        .date-picker input,
        .preference-field select {
            padding: 10px;
            border: 1px solid #b7dbe3;
            border-radius: 4px;
            font-size: 16px;
            width: 100%;
            cursor: pointer;
            box-sizing: border-box;
            background: #fff;
            color: #01579b;
        }

        .container {
            background: white;
            position: relative;
            padding: 56px 40px 40px;
            border-radius: 15px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            max-width: 600px;
            width: 100%;
            overflow-x: clip;
        }

        .settings-toggle {
            position: absolute;
            top: 16px;
            right: 16px;
            width: 42px;
            height: 42px;
            border: 1px solid #b7dbe3;
            border-radius: 999px;
            background: #f1fbff;
            color: #0277bd;
            font-size: 24px;
            line-height: 1;
            cursor: pointer;
            box-shadow: 0 6px 16px rgba(2, 119, 189, 0.12);
            transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
        }

        .settings-toggle:hover,
        .settings-toggle:focus {
            background: #e1f5fe;
            box-shadow: 0 10px 24px rgba(2, 119, 189, 0.18);
            transform: rotate(20deg);
            outline: none;
        }

        h1 {
            color: #0277bd;
            font-size: 2.5em;
            margin-bottom: 10px;
        }

        .clickable {
            cursor: pointer;
        }

        .clickable2 {
            cursor: pointer;
        }

        .date-picker {
            margin: 10px 0;
            font-size: 1em;
            text-align: left;
        }

        .date-picker label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
        }

        .preferences-panel {
            display: grid;
            grid-template-columns: 1fr;
            gap: 14px;
            position: absolute;
            top: 66px;
            right: 16px;
            left: 16px;
            width: auto;
            max-width: 320px;
            margin: 0;
            padding: 18px;
            border-radius: 12px;
            background: #f1fbff;
            border: 1px solid #d3edf3;
            text-align: left;
            box-shadow: 0 16px 40px rgba(0, 77, 64, 0.12);
            z-index: 2;
        }

        .preferences-panel[hidden] {
            display: none !important;
        }

        .preferences-help {
            margin: 0;
            color: #4f7b85;
            font-size: 0.95em;
            text-align: left;
        }

        .preference-field label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
        }

        .today-reading {
            font-size: 1.8em;
            color: #004d40;
            margin: 20px 0;
            padding: 20px;
            background: #e8f5e9;
            border-radius: 10px;
        }

        .week-list {
            list-style: none;
            padding: 0;
            overflow-y: auto;
            height: 400px;
        }

        .week-list li {
            margin: 10px 0;
            padding: 15px;
            background: #f1f8e9;
            border-radius: 8px;
            font-size: 1.2em;
            transition: transform 0.2s;
        }

        .week-list li:hover {
            transform: scale(1.05);
        }

        .today-highlight {
            background: #fff176 !important;
            font-weight: bold;
        }

        footer {
            margin-top: 30px;
            font-size: 0.8em;
            color: #757575;
        }

        .modal {
            display: none;
            position: fixed;
            z-index: 1;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0,0,0,0.4);
        }
        .modal-content {
            background-color: #fefefe;
            margin: 15% auto;
            padding: 20px;
            border: 1px solid #888;
            width: 80%;
            max-width: 500px;
            border-radius: 10px;
        }
        .close {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
        }
        .close:hover,
        .close:focus {
            color: black;
            text-decoration: none;
            cursor: pointer;
        }
        #chapters-list {
            list-style-type: none;
            padding: 0;
        }
        #chapters-list li {
            margin-bottom: 10px;
        }
        #chapters-list a {
               text-decoration: none;
                color: #06918c;
                font-size: 1.5em;
                font-weight: 400;
                transition: .15s;
        }
        .chapters-preferences {
            margin: -8px 0 18px;
            color: #4f7b85;
        }
        #chapters-list a:hover {
                text-shadow: 0px 2px 4px #4b4647;
        }

        @media(max-width: 600px) {
            body {
            background: #fff;
            padding: 0;
            align-items: stretch;
            }
              
            .week-list li {
            display: grid;
            width: calc(100% - 20px);
            }
            .container {
            max-width: none;
            min-height: 100vh;
            padding: 56px 10px 10px;
            border-radius: 0;
            box-shadow: none;
            }
            .preferences-panel {
            left: 10px;
            right: 10px;
            width: auto;
            max-width: none;
            padding: 14px;
            }
           
            h1 {
                font-size: 2em;
                margin:0;
            }
            .today-reading {
                font-size: 1.5em;
                padding: 15px;
            }
            .week-list li {
                font-size: 1em;
                padding: 10px;
            }
        }
