/* ========================================= 1. THEME VARIABLES & RESET ========================================= */ :root { /* Brand Colors */ --primary: #5C67FF; --primary-hover: #4650e5; --primary-glow: rgba(92, 103, 255, 0.3); /* UI Colors */ --red: #ff4757; --yellow: #ffa502; --green: #2ed573; /* Grays & Backgrounds */ --bg: #F8FAFC; --white: #ffffff; --blue-soft: #eef2ff; --slate-50: #f8fafc; --slate-100: #f1f5f9; --slate-200: #e2e8f0; --slate-400: #94a3b8; --slate-600: #475569; --slate-700: #334155; --slate-800: #1e293b; --slate-900: #0f172a; /* Layout & Effects */ --shadow: 0 10px 30px -12px rgba(0,0,0,0.08); --nav-height: 70px; } * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; } body { font-family: 'Outfit', sans-serif; background: var(--bg); color: var(--slate-800); margin: 0; padding-top: var(--nav-height); padding-bottom: 80px; overflow-x: hidden; } /* Typography Utils */ .font-fredoka { font-family: 'Fredoka', sans-serif; } .line-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } /* Layout Wrappers */ .section-container { max-width: 1200px; margin: 0 auto; padding: 0 15px; } /* ========================================= 2. HEADER & NAVIGATION ========================================= */ .header { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height); background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(226, 232, 240, 0.8); z-index: 1000; display: flex; align-items: center; justify-content: center; } .nav-container { width: 100%; max-width: 1200px; padding: 0 10px; display: flex; align-items: center; justify-content: space-between; } .logo-box { display: flex; align-items: center; gap: 10px; text-decoration: none; } .logo-icon { width: 38px; height: 38px; background: var(--primary); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; font-size: 20px; box-shadow: 0 8px 15px var(--primary-glow); transition: transform 0.3s ease; } .logo-box:hover .logo-icon { transform: rotate(-5deg) scale(1.1); } .logo-text { font-family: 'Fredoka'; font-size: 22px; font-weight: 700; color: var(--slate-800); } /* Menu Links */ .desktop-links { display: none; align-items: center; gap: 30px; } .nav-link { text-decoration: none; font-weight: 600; color: var(--slate-600); font-size: 20px; position: relative; transition: color 0.3s; } .nav-link:after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--primary); transition: width 0.3s; } .nav-link:hover { color: var(--primary); } .nav-link:hover:after { width: 100%; } /* Header Buttons & Profile */ .btn-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--slate-100); display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; transition: all 0.2s; color: var(--slate-600); } .btn-icon:active { transform: scale(0.9); background: var(--slate-200); } .profile-trigger { background: white; border: 1px solid var(--slate-200); padding: 5px 15px 5px 6px; border-radius: 50px; display: flex; align-items: center; gap: 10px; cursor: pointer; transition: all 0.3s; } .profile-trigger:hover { border-color: var(--primary); background: var(--slate-50); } .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 12px; position: relative; } .status-dot { position: absolute; bottom: 0; right: 0; width: 10px; height: 10px; border-radius: 50%; border: 2px solid white; } /* ========================================= 3. DRAWERS (PANELS) & OVERLAYS ========================================= */ .panel { position: fixed; top: 0; height: 100vh; background: white; z-index: 2000; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 0 50px rgba(0,0,0,0.1); width: 300px; } .panel-left { left: 0; transform: translateX(-100%); border-right: 1px solid var(--slate-100); max-width: 250px;} .panel-right { right: 0; transform: translateX(100%); border-left: 1px solid var(--slate-100); } .panel.open { transform: translateX(0); } .overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(4px); z-index: 1500; display: none; opacity: 0; transition: opacity 0.3s; } .panel-header { padding: 25px; border-bottom: 1px solid var(--slate-100); display: flex; align-items: center; justify-content: space-between; } .drawer-item { display: flex; align-items: center; gap: 15px; padding: 15px 25px; text-decoration: none; color: var(--slate-700); font-weight: 600; transition: all 0.2s; border-radius: 15px; margin: 5px 15px; } .drawer-item:hover { background: var(--slate-50); color: var(--primary); } .drawer-icon { width: 35px; height: 35px; border-radius: 10px; background: var(--slate-100); display: flex; align-items: center; justify-content: center; font-size: 16px; } /* ========================================= 4. MODALS ========================================= */ .modal-wrap { position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center; padding: 20px; } .modal-card { background: white; width: 100%; max-width: 400px; border-radius: 28px; padding: 30px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.2); text-align: center; transform: scale(0.9); opacity: 0; transition: all 0.3s; } .modal-wrap.open { display: flex; } .modal-wrap.open .modal-card { transform: scale(1); opacity: 1; } .btn-flex { display: flex; gap: 10px; margin-top: 25px; } .btn-sub { flex: 1; padding: 14px; border-radius: 15px; border: none; font-weight: 700; cursor: pointer; font-family: inherit; } .btn-cancel { background: var(--slate-100); color: var(--slate-600); } .btn-danger { background: var(--red); color: white; text-decoration: none; font-size: 14px; display: flex; align-items: center; justify-content: center; } /* ========================================= 5. HERO SECTION ========================================= */ .hero { position: relative; padding: 20px 5px 20px; text-align: center; overflow: hidden; } .hero-blob-1 { position: absolute; top: -100px; left: -100px; width: 300px; height: 300px; background: rgba(92, 103, 255, 0.1); border-radius: 50%; filter: blur(60px); z-index: -1; } .hero-blob-2 { position: absolute; bottom: -100px; right: -100px; width: 300px; height: 300px; background: rgba(255, 71, 87, 0.05); border-radius: 50%; filter: blur(60px); z-index: -1; } .hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 50px; background: var(--white); border: 1px solid var(--slate-100); color: var(--primary); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0; box-shadow: 0 4px 10px rgba(0,0,0,0.03); } .hero-title { font-family: 'Fredoka', sans-serif; font-size: 2.2rem; line-height: 1.2; font-weight: 800; color: var(--slate-900); margin-bottom: 24px; } .hero-title span { color: var(--primary); } /* ========================================= 6. SEARCH UI ========================================= */ .search-container { max-width: 650px; margin: 0 auto 40px; position: relative; } .search-pill { background: var(--white); border-radius: 20px; padding: 4px; display: flex; align-items: center; box-shadow: 0 15px 35px rgba(92, 103, 255, 0.12); border: 2px solid transparent; transition: 0.3s; } .search-pill:focus-within { border-color: var(--primary); } .search-input { width: 100%; border: none; outline: none; padding: 12px 20px; font-size: 18px; font-family: 'Outfit'; color: var(--slate-800); } .search-btn { background: var(--primary); color: var(--white); border: none; padding: 12px 30px; border-radius: 15px; font-weight: 700; cursor: pointer; transition: 0.2s; } .search-btn:active { transform: scale(0.95); } .search-results-box { position: absolute; width: 100%; top: 100%; margin-top: 10px; background: white; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); z-index: 50; overflow: hidden; display: none; animation: slideUp 0.3s ease-out; } @keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } /* ========================================= 7. STATS & CATEGORIES ========================================= */ .stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-bottom: 60px; } .stat-card { background: var(--white); padding: 25px; border-radius: 24px; text-align: center; border: 1px solid var(--slate-100); } .stat-value { font-size: 28px; font-weight: 800; font-family: 'Fredoka'; margin-bottom: 4px; } .stat-label { font-size: 11px; text-transform: uppercase; font-weight: 700; color: var(--slate-400); letter-spacing: 1px; } .goal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; } .goal-card { text-decoration: none; padding: 30px 20px; border-radius: 28px; display: flex; flex-direction: column; align-items: center; text-align: center; transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); } .goal-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.05); } .goal-emoji { font-size: 45px; margin-bottom: 15px; } .goal-title { font-family: 'Fredoka'; font-size: 18px; font-weight: 700; color: var(--slate-800); margin-bottom: 5px; } .goal-desc { font-size: 13px; color: var(--slate-600); opacity: 0.8; } .bg-upsc { background: #FFF4E6; } .bg-jee { background: #E7F5FF; } .bg-teach { background: #EBFBEE; } .bg-other { background: #F3F0FF; } /* ========================================= 8. POPULAR NOTES & CTA ========================================= */ .popular-grid { display: grid; grid-template-columns: 1fr; gap: 25px; margin-top: 30px; } .note-card { background: white; border-radius: 24px; padding: 15px; border: 1px solid var(--slate-100); transition: 0.3s; display: flex; flex-direction: column; height: 100%; } .note-card:hover { border-color: var(--primary); box-shadow: 0 10px 25px rgba(0,0,0,0.05); } .note-thumb-wrapper { width: 100%; height: 200px; border-radius: 18px; overflow: hidden; background: var(--slate-50); position: relative; margin-bottom: 15px; } .note-thumb { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; } .note-card:hover .note-thumb { transform: scale(1.08); } .note-cat-badge { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,0.9); padding: 5px 12px; border-radius: 50px; font-size: 10px; font-weight: 800; text-transform: uppercase; color: var(--primary); backdrop-filter: blur(5px); } .note-title { font-weight: 700; font-size: 17px; line-height: 1.4; margin-bottom: 8px; color: var(--slate-800); } .note-author { font-size: 13px; color: var(--slate-400); margin-bottom: 20px; } .note-footer { margin-top: auto; padding-top: 15px; border-top: 1px solid var(--slate-50); display: flex; align-items: center; justify-content: space-between; } .note-price { font-size: 22px; font-weight: 800; color: var(--slate-800); } .teacher-banner { margin: 80px 0; background: var(--primary); border-radius: 40px; padding: 60px 30px; text-align: center; color: white; position: relative; overflow: hidden; box-shadow: 0 20px 40px rgba(92, 103, 255, 0.3); } .banner-circle { position: absolute; background: rgba(255,255,255,0.1); border-radius: 50%; } .btn-white { background: white; color: var(--primary); padding: 18px 40px; border-radius: 18px; font-weight: 800; text-decoration: none; display: inline-block; transition: 0.3s; margin-top: 30px; } .btn-white:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(0,0,0,0.1); } /* ========================================= 9. MEDIA QUERIES ========================================= */ @media (min-width: 768px) { .desktop-links { display: flex; } .mobile-only { display: none; } .hero-title { font-size: 4rem; } .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 25px; } .goal-grid { grid-template-columns: repeat(4, 1fr); gap: 25px; } .popular-grid { grid-template-columns: repeat(3, 1fr); } } /* --- AJAX SEARCH RESULTS STYLING --- */ .search-container { position: relative; /* Anchor for the results box */ width: 100%; z-index: 1001; /* High z-index to stay above other sections */ } .search-results-box { position: absolute; top: calc(100% + 5px); /* Right below search pill */ left: 0; right: 0; background: white; border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); z-index: 9999 !important; /* Forces it to the front of EVERYTHING */ display: none; /* Controlled by your JS */ max-height: 400px; overflow-y: auto; border: 1px solid #E2E8F0; /* Prevents box from being narrow on mobile */ width: 100%; } /* --- 2. MOBILE DAMAGE PREVENTION --- */ html, body { max-width: 100%; overflow-x: hidden; /* Stops horizontal scroll caused by blobs */ } /* Allow ONLY the search container to overflow its parent */ .hero, .section-container { overflow: visible !important; } /* --- 3. PREMIUM ITEM STYLING --- */ .premium-search-item { display: flex; align-items: center; justify-content: space-between; padding: 1rem; text-decoration: none; background: white; border-bottom: 1px solid rgba(226, 232, 240, 0.7); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); } .premium-search-item:hover { background: rgba(92, 103, 255, 0.04); padding-left: 1.25rem; } .search-meta-col { display: flex; flex-direction: column; overflow: hidden; /* Ensures long titles don't break flex */ } .cat-badge { padding: 4px 10px; border-radius: 99px; font-weight: 700; font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; display: inline-block; width: fit-content; margin-bottom: 4px; } .search-title { color: #1e293b; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; /* Keeps mobile view clean */ } .search-author { color: #64748B; font-size: 11px; margin-top: 2px; } .search-price-col { text-align: right; min-width: 60px; /* Space for the price */ } .price-tag { font-weight: 800; color: #1e293b; font-size: 14px; } .view-btn-text { color: var(--primary); font-size: 10px; font-weight: 700; margin-top: 4px; } /* --- 4. FOOTER & STATE STYLING --- */ .search-see-all { display: block; padding: 12px; text-align: center; color: var(--primary); font-weight: 700; font-size: 12px; text-decoration: none; background: #fff; border-top: 1px solid #E2E8F0; border-radius: 0 0 16px 16px; } .search-empty { padding: 2rem; text-align: center; color: #64748B; font-size: 14px; } /* Animation */ @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .fade-in { animation: fadeIn 0.4s ease-out; }  /* --- AUTHENTICATION PAGE (Login/Register) --- */ .auth-wrapper { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: start; padding: 20px 15px; } .auth-card { background: rgba(255, 255, 255, 0.95); border: 1px solid rgba(255,255,255,0.8); border-radius: 24px; box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1); width: 100%; max-width: 480px; padding: clamp(10px, 5vw, 10px); position: relative; } /* Background Animation */ .aurora-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%); background-size: 200% 200%; animation: aurora 10s ease infinite; z-index: -2; } .glass-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); background: rgba(255,255,255,0.2); z-index: -1; } @keyframes aurora { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } } /* Brand & Typography */ .brand-title { font-family: 'Fredoka', sans-serif; font-size: 2.5rem; font-weight: 800; margin: 0; text-align: center; color: #1e293b; letter-spacing: -1px; } .brand-subtitle { text-align: center; color: #64748b; margin-top: 5px; margin-bottom: 25px; font-weight: 500; } /* Tabs */ .tab-switcher { display: flex; background: #f1f5f9; padding: 5px; border-radius: 99px; margin-bottom: 25px; } .tab-btn { flex: 1; padding: 12px; border: none; background: transparent; border-radius: 99px; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; color: #64748b; cursor: pointer; transition: 0.3s ease; } .tab-btn.active { background: white; color: var(--primary); box-shadow: 0 4px 10px rgba(0,0,0,0.05); } /* Form Elements */ .form-group { margin-bottom: 18px; position: relative; } .form-label { display: block; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; color: #64748b; margin-bottom: 6px; margin-left: 5px; letter-spacing: 0.5px; } .input-wrapper { position: relative; } .input-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #94a3b8; pointer-events: none; transition: 0.3s; } .form-input { width: 100%; padding: 14px 14px 14px 48px; border: 2px solid #e2e8f0; border-radius: 16px; background: #fff; font-size: 0.95rem; color: #1e293b; transition: 0.2s ease; box-sizing: border-box; } .form-input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1); } .form-input:focus + .input-icon, .form-input:focus ~ .input-icon { color: var(--primary); } .suggestion-box { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .suggest-pill { background: #f1f5f9; border: 1px solid #e2e8f0; color: var(--primary); padding: 4px 12px; border-radius: 99px; font-size: 11px; font-weight: 700; cursor: pointer; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); } .suggest-pill:hover { background: var(--primary); color: white; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2); } /* Ensure form groups have enough space for status messages */ .form-group { margin-bottom: 22px !important; } /* Position the status icon at the end of the input box */ .input-status-icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; pointer-events: none; z-index: 5; } /* Status Text below the box */ .status-text { font-size: 11px; font-weight: 700; margin-top: 6px; margin-left: 5px; transition: 0.3s ease; } /* Color Classes */ .text-available { color: #10b981; } .text-taken { color: #ef4444; } /* SVG Icon Colors */ .icon-available { color: #10b981; filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.2)); } .icon-taken { color: #ef4444; filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.2)); } /* Interactive Exam Section */ .exam-section-wrapper { background: linear-gradient(to bottom, #f8fafc, #f1f5f9); border: 1px solid #e2e8f0; border-radius: 20px; padding: 10px; margin-top: 25px; position: relative; overflow: hidden; } /* Toggle Switch */ .toggle-wrapper { display: flex; align-items: center; justify-content: space-between; cursor: pointer; } .toggle-info { display: flex; flex-direction: column; } .toggle-title { font-weight: 700; color: #334155; font-size: 0.95rem; } .toggle-desc { font-size: 0.75rem; color: #64748b; font-weight: 400; } .toggle-track { position: relative; width: 50px; height: 28px; background: #cbd5e1; border-radius: 99px; transition: 0.3s; } .toggle-track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; background: white; border-radius: 50%; transition: 0.3s cubic-bezier(0.4, 0.0, 0.2, 1); box-shadow: 0 2px 4px rgba(0,0,0,0.2); } input:checked + .toggle-track { background: var(--primary); } input:checked + .toggle-track::after { transform: translateX(22px);  } /* Exam Cards */ .exam-entry { background: white; border-radius: 16px; padding: 10px; margin-top: 15px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); border-left: 4px solid var(--primary); animation: slideIn 0.3s ease; } @keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .exam-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; } .exam-badge { font-size: 0.7rem; font-weight: 800; color: var(--primary); background: #e0e7ff; padding: 4px 8px; border-radius: 6px; text-transform: uppercase; } .btn-delete { color: #ef4444; font-size: 0.8rem; font-weight: 700; cursor: pointer; background: none; border: none; padding: 4px; } .btn-delete:hover { background: #fee2e2; border-radius: 6px; } /* Tag Input */ .tags-area { background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 12px; padding: 8px; display: flex; flex-wrap: wrap; gap: 6px; min-height: 42px; cursor: text; transition: 0.2s; } .tags-area:focus-within { border-color: var(--primary); background: white; } .tag-pill { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(135deg, var(--primary), #818cf8); color: white; font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 20px; box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2); } .tag-remove { cursor: pointer; opacity: 0.8; font-weight: 800; font-size: 14px; line-height: 1; } .tag-remove:hover { opacity: 1; } .tag-input-field { border: none; outline: none; background: transparent; font-size: 0.85rem; flex: 1; min-width: 80px; color: #334155; } /* Buttons */ .btn-dashed { width: 100%; border: 2px dashed #cbd5e1; background: transparent; color: #64748b; font-weight: 700; padding: 12px; border-radius: 12px; margin-top: 15px; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; } .btn-dashed:hover { border-color: var(--primary); color: var(--primary); background: #eff6ff; } .btn-main { width: 100%; padding: 16px; border: none; border-radius: 16px; background: linear-gradient(135deg, var(--primary), #4338ca); color: white; font-weight: 800; font-size: 1rem; cursor: pointer; margin-top: 10px; box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.4); transition: transform 0.2s; } .btn-main:hover { transform: translateY(-2px); } /* Utilities */ .hidden { display: none !important; } .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .toggle-pass { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); cursor: pointer; color: #94a3b8; } @media (max-width: 480px) { .grid-2 { grid-template-columns: 1fr; } } /* --- DASHBOARD STYLES --- */ /* Layout */ .dashboard-container { max-width: 1280px; margin: 0 auto; padding: 1.5rem 1rem; } .main-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; } @media (min-width: 1024px) { .main-grid { grid-template-columns: 2fr 1fr; } } /* Cards & Components */ .premium-card { background: #ffffff; padding: 15px; border-radius: 20px; border: 1px solid rgba(226, 232, 240, 0.9); box-shadow: 0 8px 30px -18px rgba(16,24,40,0.12); overflow: hidden; transition: transform 0.28s ease, box-shadow 0.28s ease; } .premium-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -20px rgba(16,24,40,0.12); } .p-box { padding: 1.25rem; } /* Profile Header */ .profile-header { display:flex; align-items:center; gap:18px; flex-wrap:wrap; } .avatar-circle { width: 84px; height: 84px; border-radius: 20px; background: linear-gradient(135deg, #5C67FF, #a855f7); display:flex; align-items:center; justify-content:center; font-size: 32px; font-weight:700; color:white; box-shadow: 0 10px 30px rgba(92,103,255,0.18); } .display-name { font-size: 22px; font-weight:800; color:#1e293b; } .profile-sub { color: #64748b; font-weight:600; } .btn-main { background: linear-gradient(90deg, var(--primary), #a855f7); color: white; padding: 10px 18px; border-radius: 12px; border: none; font-weight: 800; box-shadow: 0 8px 20px rgba(92,103,255,0.12); height: 60px;} .btn-main:active { transform:translateY(1px); } /* Improver Heading */ .improver-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px; border-radius:14px; background: linear-gradient(90deg, rgba(92,103,255,0.06), rgba(168,85,247,0.04)); border:1px solid rgba(92,103,255,0.08); margin-bottom:10px; } .improver-title { font-size:20px; font-weight:900; background: linear-gradient(90deg,#5C67FF,#a855f7); -webkit-background-clip: text; background-clip:text; color:transparent; display:flex; align-items:center; gap:10px; } .improver-title:after { content: ''; display:block; height:3px; width:0; background: linear-gradient(90deg,#5C67FF,#a855f7); transition: width 0.45s ease; border-radius:4px; margin-left:8px; } .improver-heading:hover .improver-title:after { width:56px; } /* Exam Grid & Cards */ .exam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 1rem; } .exam-card-new { background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,250,255,0.96)); border-radius: 14px; padding: 14px; display:flex; align-items:center; gap: 12px; box-shadow: 0 8px 20px rgba(15,23,42,0.04); border: 1px solid rgba(226,232,240,0.8); transition: transform 0.25s cubic-bezier(.2,.9,.3,1), box-shadow 0.25s; cursor: pointer; position: relative; overflow: hidden; } .exam-card-new:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(92,103,255,0.12); } .exam-content { flex:1; min-width:0; } .exam-name { font-size:15px; font-weight:800; color:#1e293b; display:block; } .exam-date { font-size:11px; font-weight:700; color:#94a3b8; display:block; margin-top:4px;} .subject-row { display:flex; gap:6px; margin-top:8px; flex-wrap:wrap; } .subj-pill { font-size:10px; background: #F1F5F9; color: #475569; padding:4px 8px; border-radius: 999px; font-weight:700; letter-spacing:0.2px; } .add-exam-btn { align-items:center; justify-content:center; text-align:center; border:2px dashed rgba(148,163,184,0.25); color:#94a3b8; } .ring-svg circle { transition: stroke-dashoffset 1s cubic-bezier(0.2,0.9,0.2,1); transform: rotate(-90deg); transform-origin: 50% 50%; } /* Stats Filter */ .stats-filter-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 12px; } .note-box { background: white; padding: 14px 10px; border-radius: 12px; text-align:center; box-shadow: 0 6px 18px rgba(2,6,23,0.03); border:1px solid #F1F5F9; transition: transform 0.18s ease, box-shadow 0.18s ease; cursor:pointer; user-select:none; display:flex; flex-direction:column; justify-content:center; align-items:center; } .note-box:active { transform: scale(0.98); } .note-box.active-filter { background: linear-gradient(90deg, rgba(92,103,255,0.06), rgba(168,85,247,0.04)); border-color: rgba(92,103,255,0.18); box-shadow: inset 0 0 0 1px rgba(92,103,255,0.04); } .sb-num { font-size:22px; font-weight:800; color:#1e293b; } .sb-lbl { font-size:11px; font-weight:800; color:#94a3b8; text-transform:uppercase; letter-spacing:0.6px; } /* Files Grid */ .files-grid { display:grid; grid-template-columns: 1fr; gap: 1rem; } @media (min-width: 640px) { .files-grid { grid-template-columns: repeat(2, 1fr); } } .filter-item { transition: all 0.25s ease; } .filter-hidden { display: none; } .progress-box { margin: 12px 0; display:flex; align-items:center; gap:10px; } .progress-track { flex:1; height:8px; background:#F1F5F9; border-radius:999px; overflow:hidden; } .progress-fill { height:100%; background: linear-gradient(90deg, var(--primary), #a855f7); border-radius:999px; transition: width 0.8s cubic-bezier(.2,.9,.3,1); } /* Modal */ .modal-overlay { position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(2,6,23,0.55); backdrop-filter: blur(6px); z-index: 999; display:flex; align-items:center; justify-content:center; opacity:0; pointer-events:none; transition: opacity 0.28s cubic-bezier(.2,.9,.3,1); } .modal-overlay.active { opacity:1; pointer-events:all; } .modal-box { background:white; width:92%; max-width:560px; border-radius:18px; padding:22px; box-shadow: 0 30px 70px -20px rgba(2,6,23,0.4); transform: translateY(8px); transition: transform 0.28s; } .modal-overlay.active .modal-box { transform: translateY(0); } .modal-input { width:100%; padding:12px; border-radius:12px; border:2px solid #E2E8F0; margin-bottom:12px; font-family: 'Outfit'; } /* Tags */ .tag-container { border: 2px solid #E2E8F0; border-radius: 12px; padding: 8px; display:flex; flex-wrap:wrap; gap:8px; min-height:46px; margin-bottom:12px; } .tag { background: #EEF2FF; color: var(--primary); padding:4px 8px; border-radius:999px; font-weight:700; display:inline-flex; align-items:center; gap:6px; } .tag-close { cursor:pointer; opacity:0.7; padding-left:4px; } /* Table */ .table-container { width:100%; overflow-x:auto; } .styled-table { width:100%; border-collapse: collapse; text-align:left; } .styled-table th { background: #F1F5F9; padding:12px; color:#475569; font-weight:800; } .styled-table td { padding:12px; border-bottom:1px solid #F1F5F9; } /* Reports */ .reports-grid { display:grid; gap:12px; } @media(min-width:1024px){ .reports-grid { grid-template-columns: 1fr; } } .report-glance { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px; border-radius:12px; background:linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,250,255,0.98)); border:1px solid rgba(226,232,240,0.9); box-shadow: 0 8px 30px rgba(2,6,23,0.03); } .report-content { display:flex; gap:12px; align-items:center; } .report-icon { width:50px; height:50px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-weight:800; color:white; box-shadow: 0 8px 20px rgba(0,0,0,0.06); } .icon-earn { background: linear-gradient(90deg, #10B981, #06B6D4); } .icon-sales { background: linear-gradient(90deg, #f59e0b, #ef4444); } .report-title { font-weight:800; font-size:13px; } .report-value { font-weight:900; font-size:18px; color:#1e293b; } /* Creator mobile quick view */ .creator-quick-mobile { display:none; margin-bottom:12px; } @media(max-width:767px) { .creator-quick-mobile { display:block; } .main-grid { grid-template-columns: 1fr; } } @keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity:1; transform:none; } } @media (max-width:420px) { .avatar-circle { width:64px; height:64px; font-size:24px; border-radius:14px; } .display-name { font-size:18px; } .exam-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap:10px; } .stats-filter-grid { grid-template-columns: repeat(3, 1fr); gap:8px; } .btn-main { padding: 8px 12px; font-size:14px; } .improver-title { font-size:16px; } } /* --- SETTINGS / EDIT PROFILE PAGE --- */ /* Layout Containers */ .page-wrapper { max-width: 800px; margin: 0 auto; padding: 1rem 1rem 1rem; } .nav-header { margin-bottom: 1.5rem; } /* Navigation & Typography */ .back-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 700; color: #64748b; text-decoration: none; transition: color 0.2s; } .back-link:hover { color: var(--primary); } .back-link svg { width: 1.125rem; height: 1.125rem; } .page-title { font-size: 1.875rem; font-weight: 700; color: #0f172a; margin: 0 0 0.5rem 0; letter-spacing: -0.025em; } .page-subtitle { color: #64748b; margin: 0; font-size: 1rem; } /* Alerts */ .alert-box { padding: 1rem; border-radius: 1rem; font-size: 0.875rem; font-weight: 700; text-align: center; margin-bottom: 2rem; border: 1px solid transparent; } .alert-success { background: #ecfdf5; color: #047857; border-color: #d1fae5; } .alert-error { background: #fff1f2; color: #be123c; border-color: #ffe4e6; } /* Forms */ .form-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 1.5rem; } @media (min-width: 768px) { .form-grid { grid-template-columns: 1fr 1fr; } } .form-label { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #64748b; margin-bottom: 0.5rem; margin-left: 0.25rem; } .input-wrapper { position: relative; } .input-field { width: 100%; background: #F1F5F9; border: 2px solid transparent; border-radius: 16px; padding: 0.875rem 1.25rem; font-size: 1rem; font-family: inherit; color: #0f172a; outline: none; transition: all 0.2s ease; } .input-field:focus { background: #ffffff; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(92, 103, 255, 0.1); } /* Username Prefix (@) */ .input-prefix { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); font-weight: 700; color: #94a3b8; pointer-events: none; } .input-field.has-prefix { padding-left: 2.5rem; } /* Info Box */ .info-box { background: #F8FAFC; border: 1px solid #F1F5F9; border-radius: 1rem; padding: 1rem; margin-bottom: 1.5rem; } .info-label { font-size: 11px; font-weight: 500; color: #64748b; text-transform: uppercase; margin: 0 0 0.25rem 0; } .info-link { font-size: 0.875rem; font-weight: 700; color: var(--primary); margin: 0; word-break: break-all; } /* Animation */ .fade-in { animation: fadeIn 0.6s ease-out; } /* --- PUBLIC PROFILE PAGE --- */ /* Containers */ .profile-container { max-width: 1152px; margin: 0 auto; padding: 3rem 1rem; } /* Profile Header Section */ .profile-header { display: flex; flex-direction: column; align-items: center; gap: 2rem; } @media (min-width: 768px) { .profile-header { flex-direction: row; text-align: left; } } .profile-avatar { width: 120px; height: 120px; border-radius: 35px; object-fit: cover; border: 4px solid white; box-shadow: 0 10px 20px rgba(0,0,0,0.05); background: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; font-weight: 700; color: white; flex-shrink: 0; } .profile-info { flex: 1; text-align: center; } @media (min-width: 768px) { .profile-info { text-align: left; } } .name-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem; margin-bottom: 0.5rem; } @media (min-width: 768px) { .name-row { justify-content: flex-start; } } .profile-name { font-size: 1.875rem; font-weight: 700; color: #1e293b; } .profile-bio { color: #64748b; margin-bottom: 1.5rem; max-width: 36rem; margin-left: auto; margin-right: auto; } @media (min-width: 768px) { .profile-bio { margin-left: 0; margin-right: 0; } } /* Stats Block */ .stats-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; } @media (min-width: 768px) { .stats-row { justify-content: flex-start; } } .stat-item { text-align: center; } @media (min-width: 768px) { .stat-item { text-align: left; } } .stat-val { font-size: 1.25rem; font-weight: 700; color: #1e293b; } .stat-label { font-size: 0.75rem; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.05em; } .stat-divider { width: 1px; height: 2rem; background: #F1F5F9; display: none; } @media (min-width: 768px) { .stat-divider { display: block; } } .share-btn { padding: 1rem 2rem; font-size: 1rem; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; } /* Notes Grid Section */ .section-header { margin-bottom: 2rem; } .section-title { font-size: 1.5rem; font-weight: 700; color: #1e293b; margin-bottom: 0.25rem; } .section-subtitle { font-size: 0.875rem; color: #64748b; } .notes-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; } @media (min-width: 640px) { .notes-grid { grid-template-columns: repeat(2, 1fr); } } @media (min-width: 1024px) { .notes-grid { grid-template-columns: repeat(3, 1fr); } } /* Note Cards */ .note-card { background: #ffffff; border: 1px solid rgba(226, 232, 240, 0.7); border-radius: 28px; overflow: hidden; transition: all 0.3s; box-shadow: 0 10px 30px -12px rgba(0,0,0,0.05); display: flex; flex-direction: column; } .note-card:hover { border-color: var(--primary); transform: translateY(-2px); } .card-thumb-wrapper { position: relative; height: 12rem; background: #F1F5F9; overflow: hidden; } .card-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; } .note-card:hover .card-thumb { transform: scale(1.05); } .card-badge-pos { position: absolute; top: 1rem; left: 1rem; } .card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; } .card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem; } .card-title { font-weight: 700; font-size: 1.125rem; color: #1e293b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 70%; } .rating-pill { font-size: 0.75rem; font-weight: 700; color: #f97316; background: #ffedd5; padding: 0.25rem 0.5rem; border-radius: 0.5rem; } .card-desc { font-size: 0.75rem; color: #64748b; margin-bottom: 1.5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .card-footer { margin-top: auto; display: flex; items-center: center; justify-content: space-between; } .price-block { display: flex; flex-direction: column; } .price-label { font-size: 10px; font-weight: 700; color: #94a3b8; text-transform: uppercase; } .price-val { font-size: 1.125rem; font-weight: 700; color: #1e293b; } .text-free { color: #22c55e; } .btn-view { padding: 0.75rem 1.5rem; font-size: 0.875rem; } /* Badges */ .cat-badge { padding: 6px 14px; border-radius: 99px; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; background: #F1F5F9; color: #64748b; display: inline-block; } .badge-verified { background: #E7F5FF; color: #228BE6; } /* States */ .empty-state { grid-column: 1 / -1; padding: 5rem 1rem; text-align: center; } .error-screen { min-height: 80vh; display: flex; align-items: center; justify-content: center; background-color: #F8FAFC; color: #1e293b; padding: 0 1.5rem; } .error-content { text-align: center; } .error-title { font-size: 2.25rem; font-weight: 700; margin-bottom: 1rem; } .error-desc { color: #64748b; margin-bottom: 2rem; max-width: 24rem; margin-left: auto; margin-right: auto; } .btn-large { padding: 1rem 2.5rem; font-size: 1rem; } /* --- LIBRARY PAGE --- */ /* Layout */ .library-container { display: flex; flex-direction: column; min-height: 100vh; padding-top: 20px; } .main-wrapper { display: flex; gap: 2rem; max-width: 1600px; width: 100%; margin: 0 auto; padding: 1rem; } .content-area { flex: 1; min-width: 0; } /* Page Header */ .page-header { display: flex; flex-direction: column; justify-content: space-between; margin-bottom: 2rem; gap: 1rem; } @media (min-width: 768px) { .page-header { flex-direction: row; align-items: flex-end; } } .page-title { font-size: 1.875rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1; color: #1e293b; } @media (min-width: 768px) { .page-title { font-size: 3rem; } } .result-count { color: #94a3b8; font-weight: 500; margin-top: 0.25rem; font-size: 1rem; } /* Sidebar Styles */ #sidebar { width: 100%; background: #ffffff; z-index: 100; } @media (min-width: 768px) { #sidebar { position: sticky; top: 100px; height: calc(100vh - 120px); width: 320px; background: transparent; z-index: 10; } } @media (max-width: 767px) { #sidebar { position: fixed; top: 0; bottom: 0; left: 0; transform: translateX(-100%); transition: transform 0.3s ease-in-out; overflow-y: auto; padding-bottom: 100px; } #sidebar.active { transform: translateX(0); } } .sidebar-inner { background: #ffffff; padding: 1.5rem; } @media (min-width: 768px) { .sidebar-inner { padding: 2rem; border-radius: 32px; border: 1px solid #E2E8F0; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); } } /* Filters Form */ .filter-section-title { font-size: 11px; font-weight: 900; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; } .filter-group { margin-bottom: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #F1F5F9; } .filter-group:first-child { border-top: none; padding-top: 0; } /* Custom Checkboxes */ .custom-check { display: flex; align-items: center; cursor: pointer; width: 100%; margin-bottom: 0.75rem; } .check-box { width: 1.5rem; height: 1.5rem; border: 2px solid #E2E8F0; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; transition: all 0.2s; flex-shrink: 0; } .check-box svg { display: none; width: 1rem; height: 1rem; color: white; } .custom-check input:checked ~ .check-box { background-color: var(--primary); border-color: var(--primary); } .custom-check input:checked ~ .check-box svg { display: block; } .check-label { margin-left: 0.75rem; font-size: 0.875rem; font-weight: 700; color: #334155; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* Price Pills */ .price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; } .price-pill { padding: 0.75rem 0; text-align: center; border-radius: 1rem; border: 1px solid #E2E8F0; font-size: 11px; font-weight: 900; color: #64748b; text-transform: uppercase; cursor: pointer; transition: all 0.2s; } .price-pill.active { background-color: var(--primary); border-color: var(--primary); color: white; } /* Buttons & Inputs */ .btn-mobile-filter { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 30; width: 90%; display: flex; align-items: center; justify-content: center; gap: 0.75rem; background-color: #0f172a; color: white; font-weight: 700; padding: 1rem; border-radius: 1rem; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); border: none; cursor: pointer; } @media (min-width: 768px) { .btn-mobile-filter { display: none; } } .btn-apply { width: 100%; background-color: var(--primary); color: white; font-weight: 700; padding: 1.25rem; border-radius: 1rem; border: none; cursor: pointer; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); margin-bottom: 0.75rem; } .btn-reset { display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; padding: 1rem; border-radius: 1rem; background: white; border: 1px solid #E2E8F0; color: #64748b; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; cursor: pointer; transition: all 0.2s; } .btn-reset:hover { border-color: var(--primary); color: var(--primary); } .btn-reset:hover svg { transform: rotate(-180deg); } .btn-reset svg { transition: transform 0.5s ease; } /* Desktop Sort Select */ .sort-wrapper { display: none; align-items: center; gap: 0.75rem; background: white; padding: 0.5rem 1rem; border-radius: 1rem; border: 1px solid #E2E8F0; } @media (min-width: 768px) { .sort-wrapper { display: flex; } } .sort-label { font-size: 10px; font-weight: 900; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.05em; } .sort-select { background: transparent; border: none; font-size: 0.875rem; font-weight: 700; color: #0f172a; outline: none; cursor: pointer; } /* Mobile Sort */ .mobile-select-wrapper { position: relative; } .mobile-sort-select { width: 100%; background-color: #f8fafc; border: 1px solid #E2E8F0; border-radius: 1rem; padding: 1rem; font-size: 0.875rem; font-weight: 700; color: #0f172a; appearance: none; outline: none; } /* Overlays */ #sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px); z-index: 90; } #sidebar-overlay.active { display: block; } .loading-overlay { opacity: 0.3; pointer-events: none; transition: opacity 0.2s; }