/* Root Variables */ :root { /* Dark Theme */ --bg-primary: #0a0b0f; --bg-secondary: #13141a; --bg-card: #1a1b23; --bg-hover: rgba(131, 118, 252, 0.1); --text-primary: #ffffff; --text-secondary: #a1a5b7; --text-muted: #6b7280; --primary: #8376fc; --primary-hover: #9d8dfc; --secondary: #3a6ef2; --accent: #47cc88; --warning: #f59e0b; --error: #ef4444; --success: #10b981; --border-primary: rgba(255, 255, 255, 0.1); --border-secondary: rgba(131, 118, 252, 0.2); --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05); --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25); --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); --transition-fast: all 0.15s ease; } /* Light Theme */ [data-theme="light"] { --bg-primary: #ffffff; --bg-secondary: #f8fafc; --bg-card: #ffffff; --bg-hover: rgba(131, 118, 252, 0.1); --text-primary: #1f2937; --text-secondary: #4b5563; --text-muted: #9ca3af; --border-primary: rgba(0, 0, 0, 0.1); --border-secondary: rgba(131, 118, 252, 0.2); --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05); --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); } /* Global Styles */ * { margin: 0; padding: 0; box-sizing: border-box; } *::before, *::after { box-sizing: border-box; } html { scroll-behavior: smooth; } body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background-color: var(--bg-primary); color: var(--text-primary); line-height: 1.6; font-feature-settings: 'cv11', 'ss01'; font-variation-settings: 'opsz' 32; transition: var(--transition); overflow-x: hidden; } /* Scrollbar */ ::-webkit-scrollbar { width: 8px; } ::-webkit-scrollbar-track { background: var(--bg-secondary); } ::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: var(--primary-hover); } /* Container */ .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; } /* Main App Layout */ .main-app { display: none; min-height: 100vh; } .main-app.active { display: block; } /* Navbar */ .navbar { position: fixed; top: 0; left: 0; right: 0; height: 72px; background: rgba(10, 11, 15, 0.8); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-primary); z-index: 1000; transition: var(--transition); } [data-theme="light"] .navbar { background: rgba(255, 255, 255, 0.8); } .nav-container { display: flex; align-items: center; justify-content: space-between; height: 100%; max-width: 1400px; margin: 0 auto; padding: 0 24px; } .nav-left { display: flex; align-items: center; gap: 16px; } .sidebar-toggle { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: none; border: none; color: var(--text-primary); border-radius: 8px; cursor: pointer; transition: var(--transition-fast); } .sidebar-toggle:hover { background: var(--bg-hover); color: var(--primary); } .logo { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; color: var(--text-primary); text-decoration: none; transition: var(--transition-fast); } .logo i { color: var(--primary); font-size: 24px; } .logo:hover { color: var(--primary); } /* Search */ .nav-center { flex: 1; display: flex; justify-content: center; align-items: center; margin: 0 32px; } .search-container { position: relative; width: 100%; max-width: 400px; } .search-container i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 14px; } .search-input { width: 100%; height: 40px; background: var(--bg-card); border: 1px solid var(--border-primary); border-radius: 20px; padding: 0 48px 0 48px; color: var(--text-primary); font-size: 14px; transition: var(--transition-fast); } .search-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(131, 118, 252, 0.1); } .search-input::placeholder { color: var(--text-muted); } /* Nav Right */ .nav-right { display: flex; align-items: center; gap: 8px; } .theme-toggle, .notification-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: none; border: none; color: var(--text-secondary); border-radius: 8px; cursor: pointer; transition: var(--transition-fast); position: relative; } .theme-toggle:hover, .notification-btn:hover { background: var(--bg-hover); color: var(--primary); } .notification-badge { position: absolute; top: 8px; right: 8px; width: 16px; height: 16px; background: var(--error); color: white; border-radius: 50%; font-size: 10px; font-weight: 600; display: flex; align-items: center; justify-content: center; } .user-profile { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 20px; cursor: pointer; transition: var(--transition-fast); } .user-profile:hover { background: var(--bg-hover); } .user-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; } .user-name { font-size: 14px; font-weight: 500; color: var(--text-primary); } /* Sidebar */ .sidebar { position: fixed; top: 72px; left: 0; width: 280px; height: calc(100vh - 72px); background: var(--bg-card); border-right: 1px solid var(--border-primary); z-index: 900; transform: translateX(0); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); overflow-y: auto; display: flex; flex-direction: column; } .sidebar.collapsed { transform: translateX(-224px); width: 56px; } .sidebar-header { padding: 24px; border-bottom: 1px solid var(--border-primary); } .sidebar-logo { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; color: var(--text-primary); } .sidebar-logo i { color: var(--primary); font-size: 20px; } .sidebar.collapsed .sidebar-logo span { display: none; } .sidebar-content { flex: 1; padding: 16px 0; } .sidebar-section { margin-bottom: 32px; } .sidebar-section-title { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; padding: 0 24px; } .sidebar.collapsed .sidebar-section-title { display: none; } .sidebar-menu { list-style: none; } .sidebar-item { margin-bottom: 4px; } .sidebar-link { display: flex; align-items: center; gap: 12px; padding: 12px 24px; color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 500; transition: var(--transition-fast); position: relative; } .sidebar-link:hover { background: var(--bg-hover); color: var(--text-primary); } .sidebar-item.active .sidebar-link { background: var(--bg-hover); color: var(--primary); border-right: 3px solid var(--primary); } .sidebar-link i { font-size: 16px; width: 20px; text-align: center; } .sidebar.collapsed .sidebar-link span { display: none; } .sidebar-badge { background: var(--primary); color: white; font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 10px; margin-left: auto; } .sidebar.collapsed .sidebar-badge { display: none; } /* Main Content */ .main-content { margin-left: 280px; margin-top: 72px; min-height: calc(100vh - 72px); transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1); } .main-content.sidebar-collapsed { margin-left: 0px; } /* Pages */ .page { display: none; min-height: calc(100vh - 72px); } .page.active { display: block; animation: fadeInUp 0.4s ease-out; } @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } /* Hero Section */ .hero { position: relative; padding: 80px 0 120px; background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%); overflow: hidden; } .hero-background { position: absolute; top: 0; left: 0; right: 0; bottom: 0; overflow: hidden; } .hero-shapes { position: absolute; width: 100%; height: 100%; } .shape { position: absolute; border-radius: 50%; background: linear-gradient(45deg, var(--primary), var(--secondary)); opacity: 0.1; animation: float 6s ease-in-out infinite; } .shape-1 { width: 200px; height: 200px; top: 10%; left: 10%; animation-delay: 0s; } .shape-2 { width: 150px; height: 150px; top: 60%; right: 10%; animation-delay: 2s; } .shape-3 { width: 100px; height: 100px; bottom: 20%; left: 60%; animation-delay: 4s; } @keyframes float { 0%, 100% { transform: translateY(0px) rotate(0deg); } 50% { transform: translateY(-20px) rotate(10deg); } } .hero-content { text-align: center; position: relative; z-index: 2; } .hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(131, 118, 252, 0.1); border: 1px solid rgba(131, 118, 252, 0.2); color: var(--primary); padding: 8px 16px; border-radius: 20px; font-size: 14px; font-weight: 500; margin-bottom: 24px; backdrop-filter: blur(10px); } .hero-title { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; line-height: 1.1; margin-bottom: 24px; background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .highlight { color: var(--primary); } .hero-subtitle { font-size: 18px; color: var(--text-secondary); max-width: 600px; margin: 0 auto 32px; line-height: 1.6; } .hero-actions { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 48px; flex-wrap: wrap; } .hero-stats { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; } .stat-item { text-align: center; } .stat-number { display: block; font-size: 32px; font-weight: 700; color: var(--primary); margin-bottom: 4px; } .stat-label { font-size: 14px; color: var(--text-secondary); font-weight: 500; } /* Features Section */ .features { padding: 120px 0; background: var(--bg-secondary); } .section-header { text-align: center; margin-bottom: 80px; } .section-title { font-size: clamp(2rem, 4vw, 2.5rem); font-weight: 700; margin-bottom: 16px; color: var(--text-primary); } .section-subtitle { font-size: 18px; color: var(--text-secondary); max-width: 600px; margin: 0 auto; } .features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; } .feature-card { background: var(--bg-card); border: 1px solid var(--border-primary); border-radius: 16px; padding: 32px; text-align: center; transition: var(--transition); position: relative; overflow: hidden; } .feature-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--primary), transparent); transform: translateX(-100%); transition: transform 0.6s ease; } .feature-card:hover::before { transform: translateX(100%); } .feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); border-color: var(--primary); } .feature-icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 16px; margin: 0 auto 24px; color: white; font-size: 24px; } .feature-title { font-size: 20px; font-weight: 600; margin-bottom: 12px; color: var(--text-primary); } .feature-description { color: var(--text-secondary); line-height: 1.6; } /* Buttons */ .btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; font-size: 14px; font-weight: 600; text-decoration: none; border-radius: 8px; border: none; cursor: pointer; transition: var(--transition-fast); position: relative; overflow: hidden; } .btn-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; } .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(131, 118, 252, 0.3); } .btn-secondary { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border-primary); } .btn-secondary:hover { background: var(--bg-hover); border-color: var(--primary); color: var(--primary); } .btn-outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); } .btn-outline:hover { background: var(--primary); color: white; } .btn-large { padding: 16px 32px; font-size: 16px; } /* Tabs */ .grade-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 48px; background: var(--bg-card); padding: 8px; border-radius: 12px; border: 1px solid var(--border-primary); max-width: max-content; margin-left: auto; margin-right: auto; } .tab-btn { padding: 12px 24px; background: none; border: none; border-radius: 8px; color: var(--text-secondary); font-size: 14px; font-weight: 500; cursor: pointer; transition: var(--transition-fast); white-space: nowrap; } .tab-btn.active { background: var(--primary); color: white; } .tab-btn:hover:not(.active) { background: var(--bg-hover); color: var(--text-primary); } .tab-content { display: none; } .tab-content.active { display: block; animation: fadeIn 0.3s ease; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } /* Grade Cards */ .grade-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; } .grade-card { background: var(--bg-card); border: 1px solid var(--border-primary); border-radius: 16px; padding: 32px; transition: var(--transition); } .grade-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); } .grade-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; } .grade-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 12px; color: white; font-size: 20px; } .grade-header h3 { font-size: 18px; font-weight: 600; color: var(--text-primary); flex: 1; } .grade-count { font-size: 12px; color: var(--text-muted); background: var(--bg-hover); padding: 4px 8px; border-radius: 12px; } .subjects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 24px; } .subject-item { display: flex; align-items: center; gap: 8px; padding: 12px; background: var(--bg-hover); border-radius: 8px; font-size: 14px; transition: var(--transition-fast); } .subject-item:hover { background: rgba(131, 118, 252, 0.2); } .subject-item i { color: var(--primary); font-size: 16px; width: 20px; text-align: center; } .subject-item span:first-of-type { flex: 1; color: var(--text-primary); font-weight: 500; } .subject-count { background: var(--primary); color: white; font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 8px; } .grade-actions { display: flex; gap: 12px; margin-top: 24px; } .grade-actions .btn { flex: 1; justify-content: center; } /* Volume Sections */ .volume-section { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border-primary); } .volume-section:first-of-type { border-top: none; margin-top: 16px; } .volume-title { font-size: 16px; font-weight: 600; color: var(--primary); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; } .volume-title::before { content: ''; width: 4px; height: 16px; background: var(--primary); border-radius: 2px; } /* Books List */ .books-list { display: flex; flex-direction: column; gap: 8px; } .book-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--bg-secondary); border: 1px solid var(--border-primary); border-radius: 8px; color: var(--text-primary); text-decoration: none; transition: var(--transition-fast); font-size: 14px; font-weight: 500; } .book-item:hover { background: var(--bg-hover); border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-lg); } .book-item i:first-child { color: var(--error); font-size: 16px; width: 20px; text-align: center; } .book-item i:last-child { color: var(--text-muted); font-size: 12px; margin-left: auto; opacity: 0.7; transition: var(--transition-fast); } .book-item:hover i:last-child { opacity: 1; color: var(--primary); } /* Stats Section */ .stats-section { padding: 80px 0; background: var(--bg-primary); } .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 32px; } .stat-card { display: flex; align-items: center; gap: 20px; background: var(--bg-card); border: 1px solid var(--border-primary); border-radius: 16px; padding: 32px; transition: var(--transition); } .stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); } .stat-icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 12px; color: white; font-size: 24px; } .stat-info { flex: 1; } .stat-card .stat-number { font-size: 28px; font-weight: 700; color: var(--text-primary); display: block; margin-bottom: 4px; } .stat-card .stat-label { font-size: 14px; color: var(--text-secondary); } /* Empty States */ .empty-state { text-align: center; padding: 80px 20px; } .empty-state i { font-size: 48px; color: var(--text-muted); margin-bottom: 24px; } .empty-state h3 { font-size: 24px; font-weight: 600; margin-bottom: 12px; color: var(--text-primary); } .empty-state p { color: var(--text-secondary); margin-bottom: 32px; max-width: 400px; margin-left: auto; margin-right: auto; } /* Page Headers */ .page-header { padding: 40px 0 60px; text-align: center; border-bottom: 1px solid var(--border-primary); margin-bottom: 40px; } .page-header h1 { font-size: 32px; font-weight: 700; margin-bottom: 12px; color: var(--text-primary); } .page-header p { color: var(--text-secondary); font-size: 16px; } /* Overlay */ .overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); z-index: 800; opacity: 0; visibility: hidden; transition: var(--transition); } .overlay.active { opacity: 1; visibility: visible; } /* Mobile Responsive */ @media (max-width: 1024px) { .sidebar { transform: translateX(-100%); width: 280px; } .sidebar.open { transform: translateX(0); } .main-content { margin-left: 0; } .main-content.sidebar-collapsed { margin-left: 0; } body.sidebar-open { overflow: hidden; } } @media (max-width: 768px) { .nav-container { padding: 0 16px; } .nav-center { margin: 0 16px; max-width: 200px; } .hero { padding: 60px 0 80px; } .hero-actions { flex-direction: column; align-items: stretch; } .hero-actions .btn { justify-content: center; } .hero-stats { gap: 32px; } .features { padding: 80px 0; } .features-grid { grid-template-columns: 1fr; } .grade-tabs { flex-direction: column; width: 100%; } .subjects-grid { grid-template-columns: 1fr; } .grade-actions { flex-direction: column; } .stats-grid { grid-template-columns: 1fr; } .user-name { display: none; } } @media (max-width: 480px) { .container { padding: 0 16px; } .nav-center { display: none; } .hero-stats { flex-direction: column; gap: 24px; } .section-header { margin-bottom: 48px; } .features { padding: 60px 0; } .stats-section { padding: 60px 0; } .stat-card { flex-direction: column; text-align: center; gap: 16px; } } /* Accessibility */ @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } } /* Focus styles */ button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; } .video-wrapper { position: relative; width: 100%; max-width: 800px; margin: 0 auto; aspect-ratio: 16 / 9; } .video-wrapper video { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; box-shadow: 0 0 15px rgba(0, 0, 0, 0.3); }