*{margin:0;padding:0;box-sizing:border-box}body{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:#f8f9fb;color:#1e293b;line-height:1.6;-webkit-font-smoothing:antialiased}.app-layout{min-height:100vh}.app-layout.with-sidebar{display:flex}.main-content{flex:1;min-height:100vh;overflow-y:auto}.sidebar{width:260px;background:#0f172a;color:#cbd5e1;display:flex;flex-direction:column;height:100vh;position:sticky;top:0;flex-shrink:0}.sidebar-brand{display:flex;align-items:center;gap:12px;padding:20px 20px 16px;border-bottom:1px solid rgba(255,255,255,.06)}.sidebar-logo{width:40px;height:40px;background:linear-gradient(135deg,#6366f1,#8b5cf6);border-radius:10px;display:flex;align-items:center;justify-content:center;color:#fff;flex-shrink:0}.sidebar-logo svg{width:22px;height:22px}.sidebar-brand-text{display:flex;flex-direction:column}.sidebar-brand-name{font-size:1.05rem;font-weight:700;color:#fff;letter-spacing:-.01em}.sidebar-brand-sub{font-size:.72rem;color:#64748b;text-transform:uppercase;letter-spacing:.05em;font-weight:500}.sidebar-nav{flex:1;padding:12px 10px;overflow-y:auto}.sidebar-section-label{font-size:.68rem;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:#475569;padding:12px 12px 6px}.sidebar-link{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:8px;color:#94a3b8;text-decoration:none;font-size:.875rem;font-weight:500;transition:all .15s;margin-bottom:2px}.sidebar-link:hover{background:#ffffff0f;color:#e2e8f0}.sidebar-link.active{background:#6366f126;color:#a5b4fc}.sidebar-link-icon{display:flex;align-items:center;flex-shrink:0;opacity:.7}.sidebar-link.active .sidebar-link-icon{opacity:1}.sidebar-footer{padding:12px 14px;border-top:1px solid rgba(255,255,255,.06);display:flex;align-items:center;justify-content:space-between}.sidebar-user{display:flex;align-items:center;gap:10px;min-width:0}.sidebar-avatar{width:34px;height:34px;background:linear-gradient(135deg,#6366f1,#8b5cf6);border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:700;color:#fff;flex-shrink:0}.sidebar-user-info{display:flex;flex-direction:column;min-width:0}.sidebar-user-name{font-size:.82rem;font-weight:600;color:#e2e8f0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-user-role{font-size:.7rem;color:#64748b;text-transform:capitalize}.sidebar-logout{background:none;border:none;color:#64748b;cursor:pointer;padding:6px;border-radius:6px;display:flex;align-items:center;transition:all .15s}.sidebar-logout:hover{background:#ef444426;color:#f87171}.page{max-width:1100px;margin:0 auto;padding:32px 40px}.page-header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:28px}.page-header h2{font-size:1.6rem;font-weight:700;color:#0f172a;letter-spacing:-.02em}.page-subtitle{font-size:.875rem;color:#64748b;margin-top:2px}.btn{display:inline-flex;align-items:center;justify-content:center;padding:8px 16px;border:none;border-radius:8px;cursor:pointer;font-size:.875rem;font-weight:500;font-family:inherit;text-decoration:none;transition:all .15s;gap:4px;white-space:nowrap}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:#4f46e5;color:#fff;box-shadow:0 1px 2px #4f46e54d}.btn-primary:hover:not(:disabled){background:#4338ca;box-shadow:0 2px 4px #4f46e54d}.btn-secondary{background:#e2e8f0;color:#475569}.btn-secondary:hover:not(:disabled){background:#cbd5e1}.btn-danger{background:#ef4444;color:#fff}.btn-danger:hover:not(:disabled){background:#dc2626}.btn-ghost{background:transparent;color:#475569;padding:6px 10px}.btn-ghost:hover:not(:disabled){background:#f1f5f9;color:#1e293b}.btn-ghost-danger:hover:not(:disabled){background:#fef2f2;color:#dc2626}.btn-outline-danger{background:transparent;border:1px solid #fca5a5;color:#dc2626}.btn-outline-danger:hover:not(:disabled){background:#fef2f2}.btn-outline-success{background:transparent;border:1px solid #86efac;color:#16a34a}.btn-outline-success:hover:not(:disabled){background:#f0fdf4}.btn-sm{padding:5px 10px;font-size:.8rem;border-radius:6px}.table-container{background:#fff;border-radius:12px;border:1px solid #e2e8f0;overflow:hidden}.table{width:100%;border-collapse:collapse}.table th,.table td{text-align:left;padding:12px 16px;border-bottom:1px solid #f1f5f9}.table th{background:#f8fafc;font-weight:600;font-size:.75rem;text-transform:uppercase;letter-spacing:.05em;color:#64748b}.table tbody tr:last-child td{border-bottom:none}.table tbody tr:hover{background:#f8fafc}.table .actions{display:flex;gap:6px}.table .empty{text-align:center;color:#94a3b8;padding:40px 16px}.table-user{display:flex;align-items:center;gap:10px}.table-avatar{width:32px;height:32px;border-radius:8px;background:linear-gradient(135deg,#6366f1,#8b5cf6);color:#fff;display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:700;flex-shrink:0}.table-avatar-img{width:32px;height:32px;border-radius:8px;object-fit:cover;flex-shrink:0}.table-username{font-weight:600;color:#1e293b}.table-email{color:#64748b}.badge{display:inline-flex;align-items:center;padding:3px 10px;border-radius:100px;font-size:.72rem;font-weight:600;letter-spacing:.01em}.badge-success{background:#dcfce7;color:#15803d}.badge-danger{background:#fee2e2;color:#b91c1c}.badge-warning{background:#fef3c7;color:#a16207}.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px}.card{background:#fff;border-radius:12px;border:1px solid #e2e8f0;display:flex;flex-direction:column;transition:box-shadow .2s,border-color .2s}.card:hover{border-color:#cbd5e1;box-shadow:0 4px 12px #0000000d}.course-thumb{position:relative;aspect-ratio:16 / 9;overflow:hidden;border-radius:12px 12px 0 0;background:#f1f5f9;cursor:pointer}.course-thumb-img{width:100%;height:100%;object-fit:cover;display:block}.course-thumb-empty{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#94a3b8;transition:all .15s}.course-thumb-empty span{font-size:.78rem;font-weight:500}.course-thumb:hover .course-thumb-empty{background:#e2e8f0;color:#64748b}.course-thumb-badges{position:absolute;top:10px;left:10px;display:flex;gap:6px}.course-thumb-badges .badge{box-shadow:0 1px 4px #0000001f}.badge-info{background:#dbeafe;color:#1d4ed8}.course-thumb-overlay{position:absolute;top:0;right:0;bottom:0;left:0;background:#0f172a80;display:flex;align-items:center;justify-content:center;gap:8px;opacity:0;transition:opacity .2s}.course-thumb:hover .course-thumb-overlay{opacity:1}.card-body{padding:12px 16px 16px;flex:1}.course-title{font-size:1.05rem;font-weight:650;color:#0f172a;margin-bottom:6px;letter-spacing:-.01em}.card-desc{color:#64748b;font-size:.85rem;margin-bottom:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.card-meta{display:flex;align-items:center;gap:12px;font-size:.82rem;color:#64748b}.meta-item{display:flex;align-items:center;gap:5px}.card-actions{display:flex;gap:4px;padding:10px 12px;border-top:1px solid #f1f5f9;flex-wrap:wrap}.card-footer{display:flex;align-items:center;gap:8px;padding:12px 14px;border-top:1px solid #f1f5f9}.card-btn{flex:1;padding:10px 16px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;color:#475569;font-size:.85rem;font-weight:600;cursor:pointer;transition:all .15s}.card-btn:hover{background:#f8fafc;border-color:#cbd5e1;color:#334155}.card-btn-primary{background:#6366f1;border-color:#6366f1;color:#fff}.card-btn-primary:hover{background:#4f46e5;border-color:#4f46e5}.card-menu-wrapper{position:relative}.card-btn-menu{flex:0;padding:10px;min-width:40px;display:flex;align-items:center;justify-content:center}.card-dropdown{position:absolute;bottom:calc(100% + 6px);right:0;min-width:180px;background:#fff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 10px 40px #0000001f;z-index:100;overflow:hidden;animation:dropdownFadeIn .15s ease}@keyframes dropdownFadeIn{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.card-dropdown button{display:flex;align-items:center;gap:10px;width:100%;padding:11px 14px;border:none;background:none;color:#374151;font-size:.85rem;font-weight:500;cursor:pointer;text-align:left;transition:background .1s}.card-dropdown button:hover{background:#f8fafc}.card-dropdown button svg{color:#64748b;flex-shrink:0}.dropdown-divider{height:1px;background:#f1f5f9;margin:4px 0}.dropdown-danger{color:#dc2626!important}.dropdown-danger:hover{background:#fef2f2!important}.dropdown-danger svg{color:#dc2626!important}.alert{padding:12px 16px;border-radius:10px;margin-bottom:16px;font-size:.875rem;font-weight:500}.alert-error{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca}.alert-info{background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe}.alert-info code{background:#0000000f;padding:1px 6px;border-radius:4px;font-size:.82rem;word-break:break-all}.alert-info p{margin:4px 0}.login-page{display:flex;min-height:100vh}.login-left{flex:1;background:linear-gradient(135deg,#0f172a,#1e293b);display:flex;align-items:center;justify-content:center;padding:40px}.login-hero{max-width:400px;color:#fff}.login-hero-logo{width:64px;height:64px;background:linear-gradient(135deg,#6366f1,#8b5cf6);border-radius:16px;display:flex;align-items:center;justify-content:center;margin-bottom:24px}.login-hero h1{font-size:2rem;font-weight:800;margin-bottom:12px;letter-spacing:-.03em}.login-hero>p{color:#94a3b8;font-size:1rem;line-height:1.6;margin-bottom:32px}.login-hero-features{display:flex;flex-direction:column;gap:12px}.login-feature{display:flex;align-items:center;gap:10px;color:#a5b4fc;font-size:.9rem;font-weight:500}.login-right{flex:1;display:flex;align-items:center;justify-content:center;padding:40px;background:#fff}.login-form{width:100%;max-width:400px}.login-form-header{margin-bottom:28px}.login-form-header h2{font-size:1.5rem;font-weight:700;color:#0f172a;letter-spacing:-.02em}.login-form-header p{color:#64748b;font-size:.9rem;margin-top:4px}label{display:block;margin-bottom:16px;font-weight:500;font-size:.85rem;color:#374151}label input,label textarea{display:block;width:100%;margin-top:6px;padding:10px 12px;border:1px solid #d1d5db;border-radius:8px;font-size:.9rem;font-family:inherit;color:#1e293b;background:#fff;transition:all .15s}label input::placeholder,label textarea::placeholder{color:#9ca3af}label input:focus,label textarea:focus{outline:none;border-color:#6366f1;box-shadow:0 0 0 3px #6366f11f}.checkbox-label{display:flex;align-items:center;gap:8px;font-weight:400;cursor:pointer}.checkbox-label input{width:16px;height:16px;margin:0;accent-color:#6366f1}form .btn{width:100%;margin-top:8px;padding:10px 16px}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a80;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:100;animation:fadeIn .15s ease}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.modal-content{background:#fff;border-radius:14px;width:100%;max-width:460px;box-shadow:0 20px 60px #00000026;animation:slideUp .2s ease}.modal-lg{max-width:860px;width:90%}.modal-lg .modal-header{padding:24px 28px}.modal-lg .modal-header h3{font-size:1.2rem}.modal-lg .modal-body{padding:28px}.modal-lg .modal-body label{font-size:.92rem;font-weight:600;margin-bottom:20px}.modal-lg .modal-body input,.modal-lg .modal-body textarea{font-size:.95rem;padding:12px 14px}.modal-lg .modal-body textarea{min-height:180px;resize:vertical}@keyframes slideUp{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid #f1f5f9}.modal-header h3{font-size:1.05rem;font-weight:650;color:#0f172a}.modal-close{background:none;border:none;font-size:1.4rem;cursor:pointer;color:#94a3b8;line-height:1;padding:4px;border-radius:6px;transition:all .15s}.modal-close:hover{background:#f1f5f9;color:#475569}.modal-body{padding:20px}.upload-progress{display:flex;align-items:center;gap:8px;min-width:120px}.progress-bar{flex:1;height:6px;background:#e2e8f0;border-radius:100px;overflow:hidden}.progress-fill{height:100%;background:linear-gradient(90deg,#6366f1,#8b5cf6);border-radius:100px;transition:width .3s ease}.progress-text{font-size:.75rem;font-weight:600;color:#6366f1;white-space:nowrap;min-width:36px;text-align:right}.cell-desc{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#64748b;font-size:.85rem}.stats-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px;margin-bottom:32px}.stat-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:20px;display:flex;align-items:center;gap:16px;cursor:pointer;transition:all .15s}.stat-card:hover{border-color:#cbd5e1;box-shadow:0 2px 8px #0000000a}.stat-icon{width:44px;height:44px;border-radius:10px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.stat-icon-blue{background:#eef2ff;color:#4f46e5}.stat-icon-green{background:#f0fdf4;color:#16a34a}.stat-icon-amber{background:#fffbeb;color:#d97706}.stat-icon-purple{background:#faf5ff;color:#9333ea}.stat-icon-red{background:#fef2f2;color:#dc2626}.stat-info{display:flex;flex-direction:column}.stat-value{font-size:1.5rem;font-weight:700;color:#0f172a;line-height:1.2;letter-spacing:-.02em}.stat-label{font-size:.8rem;color:#64748b;font-weight:500}.dashboard-section{background:#fff;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden}.dashboard-section h3{font-size:.95rem;font-weight:650;padding:16px 20px;border-bottom:1px solid #f1f5f9;color:#0f172a}.dashboard-course-list{display:flex;flex-direction:column}.dashboard-course-row{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;border-bottom:1px solid #f1f5f9;cursor:pointer;transition:background .1s}.dashboard-course-row:last-child{border-bottom:none}.dashboard-course-row:hover{background:#f8fafc}.dashboard-course-info{display:flex;flex-direction:column;gap:2px}.dashboard-course-title{font-weight:600;font-size:.9rem;color:#1e293b}.dashboard-course-meta{font-size:.8rem;color:#94a3b8}.empty-state{text-align:center;padding:60px 20px;color:#94a3b8}.empty-state svg{margin-bottom:16px;opacity:.4}.empty-state h3{font-size:1.1rem;color:#475569;margin-bottom:6px}.empty-state p{color:#94a3b8;margin-bottom:20px;font-size:.9rem}.empty-state .btn{width:auto}.dashboard-empty{text-align:center;padding:60px 20px;background:#fff;border:1px solid #e2e8f0;border-radius:12px}.dashboard-empty svg{margin-bottom:16px;color:#94a3b8;opacity:.5}.dashboard-empty h3{font-size:1.1rem;color:#475569;margin-bottom:6px}.dashboard-empty p{color:#94a3b8;font-size:.9rem;margin-bottom:20px}.dashboard-empty .btn{width:auto}.coming-soon{text-align:center;padding:80px 20px}.coming-soon-icon{color:#c7d2fe;margin-bottom:20px}.coming-soon h2{font-size:1.5rem;font-weight:700;color:#0f172a;margin-bottom:8px}.coming-soon p{color:#64748b;font-size:.95rem;max-width:400px;margin:0 auto 24px;line-height:1.6}.coming-soon-features{display:flex;justify-content:center;gap:8px}.coming-soon-tag{display:inline-flex;align-items:center;gap:6px;padding:6px 14px;background:#eef2ff;color:#4f46e5;border-radius:100px;font-size:.8rem;font-weight:600}.loading-state{text-align:center;padding:60px 20px;color:#94a3b8}.spinner{width:32px;height:32px;border:3px solid #e2e8f0;border-top-color:#6366f1;border-radius:50%;margin:0 auto 12px;animation:spin .6s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.loading-state p{font-size:.9rem}.sidebar-avatar-img{width:34px;height:34px;border-radius:8px;object-fit:cover;flex-shrink:0}.settings-section{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:24px;margin-bottom:20px}.settings-section-title{font-size:1rem;font-weight:650;color:#0f172a;margin-bottom:16px}.profile-photo-area{display:flex;align-items:center;gap:20px}.profile-photo-preview{width:80px;height:80px;border-radius:12px;overflow:hidden;flex-shrink:0;border:2px solid #e2e8f0}.profile-photo-img{width:100%;height:100%;object-fit:cover}.profile-photo-placeholder{width:100%;height:100%;background:linear-gradient(135deg,#6366f1,#8b5cf6);display:flex;align-items:center;justify-content:center;color:#fff;font-size:1.4rem;font-weight:700}.profile-photo-actions{display:flex;flex-direction:column;gap:8px}.profile-photo-hint{font-size:.82rem;color:#64748b}.profile-photo-actions label.btn{width:auto;margin-top:0}@media (max-width: 768px){.sidebar{display:none}.page{padding:20px 16px}.login-page{flex-direction:column}.login-left{display:none}.card-grid{grid-template-columns:1fr}.stats-grid{grid-template-columns:repeat(2,1fr)}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
