*, *::before, *::after { box-sizing: border-box; } html, body { margin: 0; padding: 0; } body { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #f3f4f6; color: #111827; } /* App shell */ .app-shell { min-height: 100vh; display: flex; flex-direction: column; } /* Top bar */ .topbar { height: 64px; background: #0f172a; color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; box-shadow: 0 4px 12px rgba(15, 23, 42, 0.5); } .topbar-left { display: flex; align-items: center; gap: 12px; } .avatar { width: 40px; height: 40px; border-radius: 999px; overflow: hidden; border: 2px solid rgba(255, 255, 255, 0.6); flex-shrink: 0; background: #111827; } .avatar img { width: 100%; height: 100%; object-fit: cover; } .identity-name { font-weight: 600; font-size: 15px; } .identity-meta { font-size: 13px; opacity: 0.85; } .topbar-right { display: flex; align-items: center; gap: 8px; } .icon-btn { width: 32px; height: 32px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.3); background: transparent; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; transition: background 0.15s ease-out, transform 0.1s ease-out; } .icon-btn i { font-size: 14px; } .icon-btn:hover { background: rgba(15, 23, 42, 0.4); transform: translateY(-1px); } .icon-btn.logout-btn { background: rgba(239, 68, 68, 0.12); border-color: rgba(248, 113, 113, 0.7); } .icon-btn.logout-btn:hover { background: rgba(239, 68, 68, 0.22); } /* Main area */ .main { flex: 1; padding: 24px 18px 32px; } /* Grid of tiles */ /* Desktop: 4 columns, Tablet: 3, Mobile: 2 */ .grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } .tile { text-decoration: none; background: #ffffff; border-radius: 20px; padding: 26px 20px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10), 0 0 0 1px rgba(15, 23, 42, 0.02); color: #111827; transition: transform 0.14s ease-out, box-shadow 0.14s ease-out, background 0.14s ease-out; } .tile:hover { transform: translateY(-4px); box-shadow: 0 26px 60px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.04); background: #f9fafb; } .tile-icon { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: transparent; /* transparent bg */ color: #1f2933; /* dark grey */ } .tile-icon i { font-size: 26px; font-weight: 400; } .tile-label { text-align: center; font-size: 14px; font-weight: 500; } /* Responsive */ @media (max-width: 960px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } } @media (max-width: 720px) { .topbar { padding-inline: 12px; } .identity-name { font-size: 14px; } .identity-meta { font-size: 12px; } .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); /* mobile: 2 columns */ gap: 14px; } .tile { padding: 20px 14px 16px; } .tile-icon { width: 46px; height: 46px; } .tile-icon i { font-size: 20px; } .tile-label { font-size: 13px; } } /* Profile layout (same as before) */ .profile-layout { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; } /* Left card unchanged ... */ /* Right: tabbed details */ .profile-details { background: #ffffff; border-radius: 20px; padding: 20px 18px 18px; box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10), 0 0 0 1px rgba(15, 23, 42, 0.02); } .profile-tabs-wrapper input[type="radio"] { display: none; } /* Tabs row */ .profile-tabs { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 999px; padding: 3px; background: #f3f4f6; margin-bottom: 16px; column-gap: 2px; } .profile-tabs label { position: relative; z-index: 1; cursor: pointer; text-align: center; padding: 7px 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: #6b7280; user-select: none; } .profile-tabs-indicator { position: absolute; top: 3px; bottom: 3px; width: calc(33.333% - 4px); border-radius: 999px; background: #111827; transform: translateX(0%); transition: transform 0.2s ease-out; } /* Panels */ .profile-panels { margin-top: 4px; } .profile-panel { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; } /* Show correct panel based on checked radio */ #tab-main:checked ~ .profile-tabs .profile-tabs-indicator { transform: translateX(0%); } #tab-classes:checked ~ .profile-tabs .profile-tabs-indicator { transform: translateX(100%); } #tab-subjects:checked ~ .profile-tabs .profile-tabs-indicator { transform: translateX(200%); } /* active label color */ #tab-main:checked ~ .profile-tabs label:nth-of-type(1), #tab-classes:checked ~ .profile-tabs label:nth-of-type(2), #tab-subjects:checked ~ .profile-tabs label:nth-of-type(3) { color: #ffffff; font-weight: 600; } /* which panel is visible */ .profile-panel {display: none;grid-template-columns: repeat(2, minmax(0, 1fr));gap: 14px 24px;} #tab-main:checked ~ .profile-panels .profile-panel[data-panel="main"], #tab-classes:checked ~ .profile-panels .profile-panel[data-panel="classes"], #tab-subjects:checked ~ .profile-panels .profile-panel[data-panel="subjects"] { display: grid; } /* Detail styling */ .detail-group { display: flex; flex-direction: column; gap: 3px; } .detail-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: #9ca3af; } .detail-value { font-size: 14px; color: #111827; word-break: break-word; } .detail-address { grid-column: 1 / -1; } /* Responsive */ @media (max-width: 768px) { .profile-layout { grid-template-columns: minmax(0, 1fr); } .profile-panel { grid-template-columns: minmax(0, 1fr); } } /* Profile layout shell */ .profile-layout { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; } /* Left profile card */ .profile-card { background: #ffffff; border-radius: 20px; padding: 24px 20px 20px; box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10), 0 0 0 1px rgba(15, 23, 42, 0.02); display: flex; flex-direction: column; align-items: center; gap: 8px; } /* Photo */ .profile-photo { width: 96px; height: 96px; border-radius: 999px; overflow: hidden; margin-bottom: 8px; background: #e5e7eb; } .profile-photo img { width: 100%; height: 100%; object-fit: cover; } /* Text under photo */ .profile-name { font-size: 18px; font-weight: 600; color: #111827; text-align: center; } .profile-class, .profile-addm { font-size: 13px; color: #6b7280; text-align: center; } /* Responsive */ @media (max-width: 768px) { .profile-layout { grid-template-columns: minmax(0, 1fr); } } /* Downloads layout container */ .downloads-layout { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; } .downloads-card { /* uses profile-details base styles */ } /* Heading */ .downloads-heading { margin: 0 0 12px; font-size: 16px; font-weight: 600; color: #111827; } /* Filter bar */ .downloads-filter-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; } .downloads-filter-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: #9ca3af; } .downloads-filter-pills { display: flex; flex-wrap: wrap; gap: 6px; } .downloads-pill { border-radius: 999px; border: 1px solid #e5e7eb; background: #f9fafb; padding: 4px 10px; font-size: 12px; cursor: pointer; color: #4b5563; } .downloads-pill-active { background: #111827; border-color: #111827; color: #ffffff; } /* List styling */ .downloads-list { display: flex; flex-direction: column; gap: 10px; } .downloads-item { padding: 10px 12px; border-radius: 12px; background: #f9fafb; border: 1px solid #e5e7eb; } .downloads-item-main { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .downloads-item-title { font-weight: 600; } .downloads-item-meta { font-size: 12px; color: #6b7280; margin-top: 2px; } /* Scroll area for long lists */ .scroll-section { max-height: 60vh; overflow-y: auto; padding-right: 4px; } .scroll-section::-webkit-scrollbar { width: 6px; } .scroll-section::-webkit-scrollbar-track { background: transparent; } .scroll-section::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 999px; } /* Download button reusing your style */ .downloads-btn-secondary { font-size: 13px; color: #111827; text-decoration: none; padding: 6px 10px; border-radius: 999px; border: 1px solid #d1d5db; background: #ffffff; cursor: pointer; transition: background 0.15s ease-out, transform 0.1s ease-out; } .downloads-btn-secondary:hover { background: #f3f4f6; transform: translateY(-1px); } /* Mobile tweaks */ @media (max-width: 768px) { .downloads-item-main { flex-direction: column; align-items: flex-start; } .downloads-btn-secondary { margin-top: 6px; } } .doubts-card-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; } .chip { font-size: 11px; padding: 3px 8px; border-radius: 999px; border: 1px solid #e5e7eb; background: #f9fafb; color: #6b7280; } .chat-container { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; max-height: 55vh; overflow-y: auto; padding-right: 4px; } .chat-msg { padding: 8px 10px; border-radius: 12px; max-width: 100%; font-size: 14px; } .chat-msg.user { align-self: flex-end; background: #111827; color: #f9fafb; border-bottom-right-radius: 4px; } .chat-msg.ai { align-self: flex-start; background: #f9fafb; border: 1px solid #e5e7eb; border-bottom-left-radius: 4px; } .chat-msg small { display: block; margin-bottom: 4px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: #9ca3af; } .chat-input-row { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; } .chat-actions { display: flex; align-items: center; gap: 8px; } .btn-primary-filled { font-size: 13px; color: #ffffff; background: #111827; border-radius: 999px; border: none; padding: 7px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; } .btn-ghost { font-size: 12px; border-radius: 999px; border: 1px solid #e5e7eb; background: #f9fafb; padding: 5px 10px; cursor: pointer; color: #4b5563; } .status-line { font-size: 12px; color: #6b7280; min-height: 16px; } /* Markdown styling inside AI bubble */ .markdown-body { font-size: 14px; color: #111827; } .markdown-body h1, .markdown-body h2, .markdown-body h3 { margin: 4px 0 2px; font-size: 14px; font-weight: 600; } .markdown-body p { margin: 2px 0; } .markdown-body ul, .markdown-body ol { margin: 2px 0 2px 18px; } .markdown-body code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", monospace; background: #f3f4f6; padding: 1px 3px; border-radius: 4px; font-size: 12px; } .markdown-body pre { background: #0f172a; color: #e5e7eb; padding: 8px; border-radius: 10px; overflow-x: auto; font-size: 12px; } .markdown-body pre code { background: transparent; padding: 0; }