*{box-sizing:border-box}html{scroll-behavior:smooth}body{color:#111827;background:#f8fafc;margin:0;font-family:Arial,Helvetica,sans-serif}button,input{font-family:inherit}button{cursor:pointer}a{color:inherit}#root{min-height:100vh}.app-header{z-index:1000;background:#fff;border-bottom:1px solid #e5e7eb;justify-content:space-between;align-items:center;gap:24px;min-height:68px;padding:0 28px;display:flex;position:sticky;top:0}.app-header-left{align-items:center;gap:18px;display:flex}.app-logo{color:#2563eb;font-size:23px;font-weight:800;text-decoration:none}.app-back-button{cursor:pointer;color:#374151;background:#fff;border:1px solid #d1d5db;border-radius:7px;padding:8px 13px;font-weight:600}.app-back-button:hover{background:#f3f4f6}.app-navigation{flex:1;justify-content:center;align-items:center;gap:22px;display:flex}.app-navigation a{color:#374151;font-size:14px;font-weight:600;text-decoration:none}.app-navigation a:hover{color:#2563eb}.app-header-right{align-items:center;gap:12px;display:flex}.app-user{color:#6b7280;font-size:13px}.app-role{color:#2563eb;background:#eff6ff;border-radius:6px;padding:5px 9px;font-size:12px;font-weight:700}.app-logout-button{color:#fff;cursor:pointer;background:#dc2626;border:none;border-radius:7px;padding:9px 15px;font-weight:600}.app-logout-button:hover{opacity:.9}.app-auth-link,.app-register-link{font-size:14px;font-weight:600}.app-auth-link{color:#374151;text-decoration:none}.app-register-link{color:#fff;background:#2563eb;border-radius:7px;padding:9px 13px;text-decoration:none}@media (width<=1050px){.app-user{display:none}.app-navigation{gap:12px}}@media (width<=850px){.app-header{flex-wrap:wrap;padding:12px 18px}.app-navigation{order:3;justify-content:flex-start;width:100%;padding-bottom:5px;overflow-x:auto}.app-navigation a{white-space:nowrap}}@media (width<=520px){.app-role{display:none}.app-logo{font-size:20px}}.session-timeout-overlay{z-index:9999;background:#0f172a8c;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0}.session-timeout-modal{text-align:center;background:#fff;border-radius:14px;width:100%;max-width:460px;padding:34px;box-shadow:0 20px 50px #0003}.session-timeout-icon{margin-bottom:12px;font-size:42px}.session-timeout-modal h2{color:#111827;margin:0 0 12px;font-size:24px}.session-timeout-modal p{color:#4b5563;margin:8px 0;line-height:1.6}.session-timeout-warning{font-weight:700;color:#dc2626!important}.session-timeout-actions{justify-content:center;gap:12px;margin-top:25px;display:flex}.session-continue-button,.session-logout-button{cursor:pointer;border:none;border-radius:8px;padding:11px 18px;font-weight:700}.session-continue-button{color:#fff;background:#2563eb}.session-continue-button:hover{background:#1d4ed8}.session-logout-button{color:#374151;background:#f3f4f6}.session-logout-button:hover{background:#e5e7eb}@media (width<=520px){.session-timeout-modal{padding:25px 20px}.session-timeout-actions{flex-direction:column}.session-continue-button,.session-logout-button{width:100%}}.app-layout{background:#f8fafc;min-height:100vh}.app-layout-content{min-height:calc(100vh - 68px)}.navbar{z-index:1000;background:#fff;border-bottom:1px solid #e5e7eb;justify-content:space-between;align-items:center;height:70px;padding:0 50px;display:flex;position:sticky;top:0}.logo{color:#2563eb;font-size:26px;font-weight:800;text-decoration:none}.nav-links{gap:35px;display:flex}.nav-links a{color:#374151;font-weight:500;text-decoration:none}.nav-links a:hover{color:#2563eb}.nav-actions{align-items:center;gap:20px;display:flex}.login-link{color:#374151;font-weight:600;text-decoration:none}.register-btn{color:#fff;background:#2563eb;border-radius:7px;padding:11px 20px;font-weight:600;text-decoration:none}.register-btn:hover{background:#1d4ed8}.home-page{background:#f8fafc}.hero-section{background:#eff6ff;justify-content:space-between;align-items:center;gap:60px;min-height:520px;padding:80px 8%;display:flex}.hero-content{max-width:650px}.hero-label,.section-label{letter-spacing:2px;color:#2563eb;margin-bottom:15px;font-size:13px;font-weight:700}.hero-content h1{color:#111827;margin:0 0 25px;font-size:56px;line-height:1.1}.hero-content h1 span{color:#2563eb}.hero-description{color:#4b5563;max-width:560px;font-size:18px;line-height:1.7}.hero-buttons{gap:15px;margin-top:30px;display:flex}.primary-btn,.secondary-btn{cursor:pointer;border-radius:7px;padding:13px 25px;font-size:16px;font-weight:600}.primary-btn{color:#fff;background:#2563eb;border:none}.primary-btn:hover{background:#1d4ed8}.secondary-btn{color:#2563eb;background:#fff;border:1px solid #2563eb}.hero-card{text-align:center;background:#fff;border-radius:15px;width:330px;padding:35px;box-shadow:0 10px 35px #00000014}.hero-card-icon{margin-bottom:15px;font-size:55px}.hero-card h3{margin-bottom:10px;font-size:24px}.hero-card p{color:#6b7280;line-height:1.6}.learning-stats{border-top:1px solid #e5e7eb;justify-content:space-between;margin-top:30px;padding-top:25px;display:flex}.learning-stats div{flex-direction:column;gap:5px;display:flex}.learning-stats strong{color:#2563eb;font-size:20px}.learning-stats span{color:#6b7280;font-size:12px}.popular-section{background:#fff;padding:80px 8%}.section-heading{text-align:center;max-width:650px;margin:0 auto 45px}.section-heading h2{color:#111827;margin:5px 0 15px;font-size:38px}.section-heading>p:last-child{color:#6b7280;font-size:17px}.course-grid{grid-template-columns:repeat(3,1fr);gap:25px;max-width:1150px;margin:auto;display:grid}.home-course-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:30px;transition:transform .2s,box-shadow .2s}.home-course-card:hover{transform:translateY(-5px);box-shadow:0 10px 30px #00000014}.course-icon{margin-bottom:15px;font-size:40px}.home-course-card h3{margin-bottom:12px;font-size:22px}.home-course-card p{color:#6b7280;min-height:75px;line-height:1.6}.home-course-card a{color:#2563eb;margin-top:15px;font-weight:600;text-decoration:none;display:inline-block}.why-section{background:#f8fafc;padding:80px 8%}.features{grid-template-columns:repeat(3,1fr);gap:30px;max-width:1100px;margin:auto;display:grid}.features>div{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:30px}.features h3{margin-bottom:10px;font-size:20px}.features p{color:#6b7280;line-height:1.6}@media (width<=800px){.navbar{padding:0 20px}.nav-links{display:none}.hero-section{text-align:center;flex-direction:column;padding:60px 25px}.hero-content h1{font-size:42px}.hero-buttons{justify-content:center}.hero-card{width:auto;max-width:350px}.course-grid,.features{grid-template-columns:1fr}}.courses-page{background:#f8fafc;min-height:calc(100vh - 70px)}.courses-header{text-align:center;background:#eff6ff;padding:70px 20px 50px}.courses-header h1{color:#111827;margin:10px 0 15px;font-size:44px}.courses-header>p:last-child{color:#6b7280;max-width:600px;margin:auto;font-size:17px;line-height:1.6}.courses-container{max-width:1200px;margin:auto;padding:60px 30px}.courses-container .course-grid{grid-template-columns:repeat(3,1fr);gap:25px;display:grid}.course-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;transition:transform .2s,box-shadow .2s;overflow:hidden}.course-card:hover{transform:translateY(-5px);box-shadow:0 10px 30px #00000014}.course-card-icon{background:#dbeafe;justify-content:center;align-items:center;height:130px;font-size:50px;display:flex}.course-info{padding:25px}.course-level{color:#2563eb;background:#eff6ff;border-radius:20px;padding:5px 10px;font-size:12px;font-weight:700;display:inline-block}.course-info h2{color:#111827;margin:15px 0 10px;font-size:22px}.course-info p{color:#6b7280;min-height:75px;line-height:1.6}.course-meta{border-top:1px solid #e5e7eb;justify-content:space-between;align-items:center;margin-top:25px;padding-top:20px;display:flex}.course-meta span{color:#6b7280;font-size:14px}.course-meta button{color:#fff;background:#2563eb;border:none;border-radius:6px;padding:9px 14px;font-weight:600}.course-meta button:hover{background:#1d4ed8}@media (width<=900px){.courses-container .course-grid{grid-template-columns:repeat(2,1fr)}}@media (width<=600px){.courses-container .course-grid{grid-template-columns:1fr}.courses-header h1{font-size:36px}}.enroll-btn{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:7px;padding:13px 25px;font-size:16px;font-weight:600;text-decoration:none;display:inline-block}.course-details-page{background:#f8fafc;min-height:calc(100vh - 70px)}.course-details-header{background:#eff6ff;padding:80px 8%}.course-details-content{max-width:850px;margin:auto}.course-details-content h1{color:#111827;margin:20px 0;font-size:48px}.course-details-content>p{color:#4b5563;max-width:700px;font-size:18px;line-height:1.7}.course-details-meta{gap:30px;margin:25px 0 30px;display:flex}.course-details-meta span{color:#6b7280;font-weight:600}.course-details-body{max-width:1000px;margin:auto;padding:70px 30px}.course-details-body h2{color:#111827;margin-bottom:30px;font-size:32px}.topics-grid{grid-template-columns:repeat(2,1fr);gap:20px;display:grid}.topic-card{color:#374151;background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:20px;font-weight:500}.back-courses{color:#2563eb;margin-top:35px;font-weight:600;text-decoration:none;display:inline-block}.back-courses:hover{text-decoration:underline}.course-not-found{text-align:center;padding:100px 20px}.course-not-found h1{color:#111827;margin-bottom:20px}.course-not-found a{color:#2563eb;font-weight:600;text-decoration:none}@media (width<=700px){.course-details-header{padding:60px 25px}.course-details-content h1{font-size:38px}.course-details-meta{flex-direction:column;gap:10px}.topics-grid{grid-template-columns:1fr}}.auth-page{background:#f8fafc;justify-content:center;align-items:center;min-height:calc(100vh - 70px);padding:60px 20px;display:flex}.auth-card{background:#fff;border:1px solid #e5e7eb;border-radius:15px;width:100%;max-width:450px;padding:40px;box-shadow:0 10px 35px #00000014}.auth-card h1{color:#111827;margin:0 0 10px;font-size:36px}.auth-card>p{color:#6b7280;margin-bottom:30px;line-height:1.6}.form-group{margin-bottom:20px}.form-group label{color:#374151;margin-bottom:8px;font-weight:600;display:block}.form-group input{box-sizing:border-box;border:1px solid #d1d5db;border-radius:7px;outline:none;width:100%;padding:12px 14px;font-size:16px}.form-group input:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.auth-card button{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:7px;width:100%;padding:13px 20px;font-size:16px;font-weight:600}.auth-card button:hover{background:#1d4ed8}.course-search{max-width:600px;margin:0 auto 40px}.course-search input{box-sizing:border-box;background:#fff;border:1px solid #d1d5db;border-radius:8px;outline:none;width:100%;padding:15px 18px;font-size:16px}.course-search input:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.view-course-btn{color:#fff;background:#2563eb;border-radius:6px;padding:9px 14px;font-weight:600;text-decoration:none;display:inline-block}.view-course-btn:hover{background:#1d4ed8}.no-courses{text-align:center;padding:60px 20px}.no-courses h2{color:#111827;margin-bottom:10px}.no-courses p{color:#6b7280}.dashboard-page{background:#f8fafc;min-height:calc(100vh - 70px)}.dashboard-header{background:#eff6ff;padding:60px 8%}.dashboard-header h1{color:#111827;margin:10px 0;font-size:40px}.dashboard-header>p{color:#6b7280;font-size:17px}.student-user-info{flex-wrap:wrap;align-items:center;gap:15px;margin-top:25px;display:flex}.student-user-info span{color:#374151;background:#fff;border-radius:6px;padding:8px 14px;font-size:14px}.student-user-info button{color:#fff;cursor:pointer;background:#dc2626;border:none;border-radius:6px;padding:9px 16px;font-weight:600}.student-user-info button:hover{background:#b91c1c}.dashboard-cards{grid-template-columns:repeat(3,1fr);gap:25px;max-width:1150px;margin:auto;padding:50px 30px;display:grid}.dashboard-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:28px}.dashboard-card h3{color:#111827;margin-top:0;font-size:21px}.dashboard-card p{color:#6b7280;line-height:1.6}.dashboard-card span{color:#2563eb;margin-top:15px;font-weight:600;display:inline-block}.dashboard-card-link{text-decoration:none;transition:transform .2s,box-shadow .2s}.dashboard-card-link:hover{transform:translateY(-4px);box-shadow:0 10px 25px #00000014}@media (width<=900px){.dashboard-cards{grid-template-columns:repeat(2,1fr)}}@media (width<=600px){.dashboard-cards{grid-template-columns:1fr}}.profile-page{background:#f8fafc;min-height:calc(100vh - 70px)}.profile-header{background:#eff6ff;padding:55px 8%}.profile-header h1{color:#111827;margin:10px 0;font-size:38px}.profile-header p{color:#6b7280}.profile-container{max-width:750px;margin:50px auto;padding:0 25px}.profile-card{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:35px}.profile-avatar{background:#eff6ff;border-radius:50%;justify-content:center;align-items:center;width:80px;height:80px;margin-bottom:20px;font-size:38px;display:flex}.profile-card h2{color:#111827;margin-bottom:30px}.profile-details{border-top:1px solid #e5e7eb}.profile-row{border-bottom:1px solid #e5e7eb;justify-content:space-between;gap:20px;padding:18px 0;display:flex}.profile-row span{color:#6b7280}.profile-row strong{color:#111827}.profile-actions{gap:15px;margin-top:30px;display:flex}.profile-back-btn{color:#fff;background:#2563eb;border-radius:7px;padding:11px 18px;font-weight:600;text-decoration:none}.profile-logout-btn{color:#fff;cursor:pointer;background:#dc2626;border:none;border-radius:7px;padding:11px 18px;font-weight:600}.course-details-container{max-width:800px;margin:50px auto;padding:0 25px}.course-details-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:30px}.course-detail-row{border-bottom:1px solid #e5e7eb;justify-content:space-between;padding:16px 0;display:flex}.enroll-btn{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:7px;width:100%;margin-top:25px;padding:14px;font-size:16px;font-weight:600}.enroll-btn:hover{background:#1d4ed8}.empty-courses{text-align:center;background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:50px 30px}.course-progress-container{max-width:550px;margin-top:22px}.course-progress-info{justify-content:space-between;align-items:center;margin-bottom:8px;display:flex}.course-progress-info span{color:#374151;font-size:15px;font-weight:600}.course-progress-info strong{color:#111827;font-size:17px;font-weight:700}.course-progress-track{background-color:#e5e7eb;border-radius:20px;width:100%;height:14px;overflow:hidden}.course-progress-fill{border-radius:20px;height:100%;transition:width .4s,background-color .4s}.progress-not-started{background-color:#d1d5db}.progress-light-yellow{background-color:#fde68a}.progress-yellow{background-color:#facc15}.progress-light-green{background-color:#86efac}.progress-green{background-color:#22c55e}.course-progress-count{color:#6b7280;margin-top:8px;margin-bottom:0;font-size:14px}.course-completed-message{color:#15803d;margin-top:8px;font-size:15px;font-weight:700}.lesson-btn{text-align:left;color:#374151;cursor:pointer;background-color:#fff;border:1px solid #e5e7eb;border-left:4px solid #0000;border-radius:6px;width:100%;margin-top:5px;padding:10px 12px;transition:background-color .2s,color .2s,border-color .2s}.lesson-btn:hover{background-color:#f9fafb}.lesson-btn.active{color:#1d4ed8;background-color:#dbeafe;border-left-color:#2563eb;font-weight:600}.lesson-btn.lesson-completed{color:#166534;background-color:#dcfce7;border-left-color:#22c55e}.lesson-btn.active.lesson-completed{color:#166534;background-color:#bbf7d0;border-left-color:#16a34a;font-weight:700}.mark-complete-button{color:#fff;cursor:pointer;background-color:#2563eb;border:none;border-radius:6px;padding:10px 18px;font-weight:600}.mark-complete-button:hover{background-color:#1d4ed8}.mark-complete-button:disabled{opacity:.6;cursor:not-allowed}.lesson-completed-button{color:#166534;cursor:default;background-color:#dcfce7;border:1px solid #86efac;border-radius:6px;padding:10px 18px;font-weight:700}.lesson-navigation{justify-content:space-between;gap:15px;margin-top:30px;display:flex}.lesson-navigation button{color:#374151;cursor:pointer;background-color:#fff;border:1px solid #d1d5db;border-radius:6px;padding:10px 16px;font-weight:600}.lesson-navigation button:hover:not(:disabled){background-color:#f3f4f6}.lesson-navigation button:disabled{opacity:.45;cursor:not-allowed}.dashboard-progress-card{min-height:220px}.dashboard-progress-content{margin-top:18px}.dashboard-overall-progress{border-bottom:1px solid #e5e7eb;margin-bottom:18px;padding-bottom:18px}.dashboard-progress-title{justify-content:space-between;align-items:center;gap:15px;margin-bottom:8px;display:flex}.dashboard-progress-title span{color:#374151;font-size:14px;font-weight:600}.dashboard-progress-title strong{color:#111827;font-size:15px}.dashboard-course-progress-list{flex-direction:column;gap:20px;display:flex}.dashboard-course-progress-item{background-color:#f9fafb;border:1px solid #e5e7eb;border-radius:8px;padding:12px}.dashboard-progress-footer{justify-content:space-between;align-items:center;gap:10px;margin-top:8px;font-size:12px;display:flex}.dashboard-progress-footer span{color:#6b7280}.dashboard-progress-footer a{color:#2563eb;white-space:nowrap;font-weight:600;text-decoration:none}.dashboard-progress-footer a:hover{text-decoration:underline}.progress-loading{color:#6b7280;margin-top:15px;font-size:14px}.progress-browse-link{color:#2563eb;margin-top:8px;font-weight:600;text-decoration:none;display:inline-block}.progress-browse-link:hover{text-decoration:underline}@media (width<=700px){.dashboard-progress-footer{flex-direction:column;align-items:flex-start}}.assignments-page,.assignment-details-page{padding:40px 50px}.assignments-header{margin-bottom:30px}.assignments-header button,.assignment-details-page>button{cursor:pointer;background:#fff;border:1px solid #d1d5db;border-radius:6px;margin-bottom:20px;padding:9px 14px}.assignment-list{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px;display:grid}.assignment-card{background-color:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:22px}.assignment-card-header{justify-content:space-between;align-items:flex-start;gap:15px;display:flex}.assignment-course-name{color:#2563eb;margin-bottom:5px;font-size:13px;font-weight:700}.assignment-description{color:#4b5563;margin-top:15px;line-height:1.6}.assignment-status{border-radius:20px;padding:5px 9px;font-size:11px;font-weight:700}.assignment-status.pending{color:#92400e;background-color:#fef3c7}.assignment-status.submitted{color:#166534;background-color:#dcfce7}.assignment-meta,.assignment-details-meta{color:#6b7280;flex-wrap:wrap;gap:20px;margin-top:18px;font-size:14px;display:flex}.assignment-open-link{color:#2563eb;margin-top:20px;font-weight:700;text-decoration:none;display:inline-block}.assignment-details-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;max-width:900px;margin:0 auto;padding:30px}.assignment-question-section{background-color:#f9fafb;border-radius:8px;margin-top:30px;padding:20px}.assignment-question-section p{line-height:1.8}.assignment-submission-form{flex-direction:column;gap:12px;margin-top:30px;display:flex}.assignment-submission-form label{color:#374151;font-weight:700}.assignment-submission-form textarea{box-sizing:border-box;resize:vertical;border:1px solid #d1d5db;border-radius:8px;width:100%;padding:14px;font-family:inherit;font-size:15px;line-height:1.6}.assignment-submission-form button{color:#fff;cursor:pointer;background-color:#2563eb;border:none;border-radius:7px;width:fit-content;padding:11px 20px;font-weight:700}.assignment-submission-form button:disabled{opacity:.6;cursor:not-allowed}.submitted-assignment{background-color:#f0fdf4;border:1px solid #86efac;border-radius:8px;margin-top:30px;padding:20px}.submitted-assignment-header{justify-content:space-between;align-items:center;gap:15px;display:flex}.submitted-answer{background-color:#fff;border-radius:7px;margin-top:15px;padding:15px}.submitted-answer p{white-space:pre-wrap;line-height:1.7}.assignment-score{color:#166534;margin-top:15px;font-weight:700}.assignment-feedback{background:#fff;border-radius:7px;margin-top:18px;padding:15px}.form-success{color:#166534;background-color:#dcfce7;border-radius:6px;margin-top:20px;padding:10px 12px;font-weight:600}@media (width<=700px){.assignments-page,.assignment-details-page{padding:25px 20px}.assignment-card-header,.submitted-assignment-header{flex-direction:column}.assignment-details-card{padding:20px}}
