html,body{height:100%}body{font-family:'Noto Nastaliq Urdu','Inter',sans-serif;background-color:#F8F8F8;color:#333;display:flex;justify-content:space-evenly;align-items:center;margin:0;padding:0;box-sizing:border-box}.layout-wrapper{display:flex;gap:20px;align-items:flex-start;max-width:1100px;width:100%}.ad-space{width:160px;min-height:400px;background-color:#fff;border-radius:8px;padding:15px;text-align:center;font-size:.8rem;color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0}.container{background-color:#fff;border-radius:12px;box-shadow:0 8px 20px rgb(0 0 0 / .1);padding:20px 20px;width:100%;text-align:center;display:flex;flex-direction:column;gap:15px;position:relative;flex-grow:1}.text-display{font-size:1.6rem;line-height:1.8;padding:10px;border:1px solid #e0e0e0;border-radius:8px;background-color:#f9f9f9;text-align:right;direction:rtl;height:150px;overflow-y:auto;user-select:none}.text-display span{transition:background-color 0.1s ease}.correct{color:#10B981}.incorrect{color:#EF4444;background-color:#FEF2F2;border-radius:4px;padding:0 2px}.current{background-color:#DBEAFE;border-radius:4px;padding:0 2px}.input-field{height:140px;width:100%;padding:10px;font-size:1.6rem;border:2px solid #D1D5DB;border-radius:8px;outline:none;transition:border-color 0.2s ease-in-out,box-shadow 0.2s ease-in-out;text-align:right;direction:rtl;font-family:'Noto Nastaliq Urdu',sans-serif;padding:5px;overflow-y:auto;resize:none}.input-field:focus{border-color:#3B82F6;box-shadow:0 0 0 3px rgb(59 130 246 / .3)}.button{background-color:#28a745;color:#fff;padding:12px 25px;font-size:1.1rem;font-weight:700;border:none;border-radius:8px;cursor:pointer;transition:background-color 0.2s ease-in-out,transform 0.1s ease-in-out}.button:hover{background-color:#00f83a}.message-box,.lesson-popup{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);background-color:#fff;padding:30px;border-radius:16px;box-shadow:0 10px 30px rgb(0 0 0 / .2);z-index:1000;text-align:center;font-size:1.2rem;color:#333;display:none;flex-direction:column;gap:20px;max-width:90%;width:400px}.message-box-overlay,.lesson-popup-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgb(0 0 0 / .5);z-index:999;display:none;box-sizing:border-box}.message-box-button{background-color:#28a745;color:#fff;padding:10px 20px;border:none;border-radius:8px;cursor:pointer;font-size:1rem;transition:background-color 0.2s ease}.message-box-button:hover{background-color:#0aff1f;color:#000}.keyboard-container{background-color:#f0f2f5;padding:10px;border-radius:8px;display:flex;flex-direction:column;gap:5px;width:100%;max-width:100%;direction:ltr}.keyboard-row{display:flex;justify-content:center;gap:5px;direction:ltr}.key{background-color:#fff;border:1px solid #d1d5db;border-radius:5px;padding:4px 6px;font-size:.85rem;font-weight:600;color:#374151;min-width:34px;height:38px;display:flex;justify-content:center;align-items:center;cursor:default;user-select:none;box-shadow:0 1px 2px rgb(0 0 0 / .05);transition:all 0.1s ease-in-out;position:relative;flex-grow:1}.key-wide{flex-grow:1.5}.key-wide-lg{flex-grow:2}.key-space{flex-grow:5}.key.active{background-color:#000;color:#fff;border-color:#12b803;color:#fff;box-shadow:0 0 0 3px rgb(23 114 5 / .527);transform:scale(1.05)}.key.active::after{content:'';position:absolute;bottom:3px;left:50%;transform:translateX(-50%);width:1px;height:1px;background-color:red;border-radius:50%;border:1px solid red}.key-content{display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.1}.key-normal-char{font-size:.9rem;font-weight:700}.key-shift-char{font-size:.6rem;opacity:.8}.cancel-icon{position:fixed;top:15px;right:15px;padding:8px;border-radius:50%;font-size:1.5rem;color:#fff;cursor:pointer;background-color:#000;z-index:1100;line-height:1;width:40px;height:40px;display:flex;align-items:center;justify-content:center}.timer-controls-sidebar{width:160px;flex-shrink:0;display:flex;flex-direction:column;align-items:center;gap:15px;background-color:#fff;padding:20px;border-radius:12px;box-shadow:0 8px 20px rgb(0 0 0 / .1);height:fit-content}.timer-display{font-size:1.8rem;font-weight:700;color:#3B82F6;order:1}.duration-buttons{display:flex;flex-direction:column;gap:8px;width:100%;order:2}.duration-buttons button{width:100%;background-color:#fff;color:#000;padding:8px 12px;font-size:1rem;border:1px solid #D1D5DB;border-radius:6px;cursor:pointer;transition:all 0.2s ease}.duration-buttons button:hover{background-color:#E5E7EB;border-color:#9CA3AF}.duration-buttons button.selected{background-color:#3B82F6;color:#fff;border-color:#3B82F6;font-weight:700}.cancel-popup-buttons{display:flex;flex-direction:column;gap:10px;width:100%}.message-box-button.secondary{background-color:#6B7280}.message-box-button.secondary:hover{background-color:#4B5563}.lesson-popup{max-width:100%;width:100%;height:100%;max-height:100vh;padding:20px;display:flex;flex-direction:column;gap:20px;background-color:#FFF;border-radius:0;box-shadow:none;border:none;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:1000;overflow-y:auto;box-sizing:border-box}.lesson-popup .lesson-title{font-size:2.8em;color:#28a745;text-align:center;margin-bottom:30px;letter-spacing:.5px;text-shadow:1px 1px 3px rgb(0 0 0 / .08);font-weight:700}.lesson-popup .lesson-list{display:flex;flex-direction:column;gap:12px;flex-grow:1}.lesson-item{text-decoration:none;color:#444;background-color:#FDFDFD;padding:16px 22px;border-radius:10px;transition:background-color 0.3s ease,transform 0.2s ease,box-shadow 0.2s ease,border-color 0.3s ease;border:1px solid #EAEAEA;position:relative;overflow:hidden;display:flex;align-items:center;cursor:pointer}.lesson-item:hover{background-color:#E6FFE6;transform:translateY(-2px);box-shadow:0 5px 15px rgb(0 0 0 / .08);border-color:#A3E7A3}.lesson-item .lesson-number{font-weight:700;font-size:1.05em;color:#6c757d;margin-right:15px}.lesson-item .lesson-name{font-size:1.05em;font-weight:500;flex-grow:1}.lesson-item .lesson-time{font-size:.9em;color:#888}.status-icon{width:24px;height:24px;min-width:24px;display:flex;justify-content:center;align-items:center;margin-right:10px}.status-icon .radio-button{width:18px;height:18px;border:2px solid #BBB;border-radius:50%;background-color:#fff0;transition:border-color 0.3s ease,background-color 0.3s ease}.status-icon .checkmark{fill:#28a745;width:24px;height:24px;display:block}.lesson-item.completed{background-color:#F0FFF0;border-color:#98D898}.lesson-item.completed .lesson-name,.lesson-item.completed .lesson-number{color:#28a745}.lesson-item.completed .lesson-time{color:#6C757D}.lesson-item.completed .status-icon .radio-button{display:none}.lesson-item.active{background-color:#28a745;color:#FFF;box-shadow:0 8px 20px rgb(40 167 69 / .4);border-color:#A3E7A3;transform:translateY(-2px)}.lesson-item.active .lesson-number,.lesson-item.active .lesson-name,.lesson-item.active .lesson-time{color:#FFF}.lesson-item.active .status-icon .radio-button{border-color:#FFF;background-color:#FFF;box-shadow:inset 0 0 0 4px #28a745}@media (max-width:1024px){.layout-wrapper{flex-direction:column;align-items:center}.ad-space{width:100%;max-width:600px;margin-bottom:20px}.timer-controls-sidebar{width:100%;max-width:600px;flex-direction:row;justify-content:center;margin-top:20px}.timer-controls-sidebar .timer-display{margin-right:20px}.timer-controls-sidebar .duration-buttons{flex-direction:row;gap:10px}}@media (max-width:768px){body{padding:10px}.lesson-popup{padding:15px;width:100%;max-height:100vh}.lesson-popup .lesson-title{font-size:2em;margin-bottom:15px}.lesson-item{padding:12px 18px}.lesson-item .lesson-name{font-size:.95em}.timer-display{font-size:1.5rem}.duration-buttons button{font-size:.9rem;padding:6px 10px}}@media (max-width:480px){.lesson-popup{padding:10px;border-radius:0;max-height:100vh}.lesson-popup .lesson-title{font-size:1.8em;margin-bottom:20px}.lesson-item{flex-wrap:wrap;justify-content:center;text-align:center;padding:10px 15px}.lesson-item>div{margin-bottom:5px}.lesson-item .lesson-number,.lesson-item .status-icon,.lesson-item .lesson-name,.lesson-item .lesson-time{width:100%;text-align:center;margin-right:0!important}.keyboard-container .key{display:none;}.key-normal-char{font-size:.8rem}.key-shift-char{font-size:.5rem}.input-field{font-size:1.2rem}}.text-display::-webkit-scrollbar{width:.5px;height:.5px}.text-display::-webkit-scrollbar-track{background:#fff}.text-display::-webkit-scrollbar-thumb{background-color:green;border-radius:10px}.text-display{scrollbar-width:thin;scrollbar-color:green #fff}
