2654 lines
50 KiB
CSS
2654 lines
50 KiB
CSS
:root {
|
||
color-scheme: light dark;
|
||
|
||
--primary: #2563eb;
|
||
--primary-hover: #1d4ed8;
|
||
--primary-soft-bg: #eff6ff;
|
||
--primary-soft-text: #1e40af;
|
||
--primary-soft-border: #bfdbfe;
|
||
|
||
--text-main: #1e293b;
|
||
--text-muted: #64748b;
|
||
--text-light: #94a3b8;
|
||
|
||
--bg-page: #f8fafc;
|
||
--bg-card: #ffffff;
|
||
--bg-subtle: #f8fafc;
|
||
--bg-muted: #f1f5f9;
|
||
--bg-hover: #e2e8f0;
|
||
--bg-input: #ffffff;
|
||
|
||
--border: #e2e8f0;
|
||
--border-strong: #cbd5e1;
|
||
|
||
--success: #16a34a;
|
||
--warning: #d97706;
|
||
--urgent: #ea580c;
|
||
--danger: #dc2626;
|
||
|
||
/* Semantic Soft Badges & Alerts (Light) */
|
||
--badge-active-bg: #e0f2fe;
|
||
--badge-active-text: #0369a1;
|
||
--badge-warning-bg: #fef3c7;
|
||
--badge-warning-text: #b45309;
|
||
--badge-warning-border: #fde68a;
|
||
--badge-urgent-bg: #ffedd5;
|
||
--badge-urgent-text: #c2410c;
|
||
--badge-danger-bg: #fee2e2;
|
||
--badge-danger-text: #b91c1c;
|
||
--badge-danger-border: #fecaca;
|
||
--badge-success-bg: #dcfce7;
|
||
--badge-success-text: #15803d;
|
||
--badge-success-border: #bbf7d0;
|
||
--badge-purple-bg: #f3e8ff;
|
||
--badge-purple-text: #7e22ce;
|
||
--badge-purple-border: #e9d5ff;
|
||
|
||
--radius: 6px;
|
||
}
|
||
|
||
/* System Dark Mode (when not explicitly overridden to light) */
|
||
@media (prefers-color-scheme: dark) {
|
||
:root:not([data-theme="light"]):not(:has(> head > meta[name="color-scheme"][content="light"])) {
|
||
--primary: #3b82f6;
|
||
--primary-hover: #2563eb;
|
||
--primary-soft-bg: rgba(59, 130, 246, 0.16);
|
||
--primary-soft-text: #93c5fd;
|
||
--primary-soft-border: rgba(59, 130, 246, 0.35);
|
||
|
||
--text-main: #f1f5f9;
|
||
--text-muted: #94a3b8;
|
||
--text-light: #64748b;
|
||
|
||
--bg-page: #0b1120;
|
||
--bg-card: #111827;
|
||
--bg-subtle: #172033;
|
||
--bg-muted: #1e293b;
|
||
--bg-hover: #334155;
|
||
--bg-input: #0f172a;
|
||
|
||
--border: #1e293b;
|
||
--border-strong: #334155;
|
||
|
||
--success: #22c55e;
|
||
--warning: #f59e0b;
|
||
--urgent: #fb923c;
|
||
--danger: #f87171;
|
||
|
||
--badge-active-bg: rgba(14, 165, 233, 0.18);
|
||
--badge-active-text: #7dd3fc;
|
||
--badge-warning-bg: rgba(245, 158, 11, 0.18);
|
||
--badge-warning-text: #fcd34d;
|
||
--badge-warning-border: rgba(245, 158, 11, 0.35);
|
||
--badge-urgent-bg: rgba(249, 115, 22, 0.18);
|
||
--badge-urgent-text: #fdba74;
|
||
--badge-danger-bg: rgba(239, 68, 68, 0.18);
|
||
--badge-danger-text: #fca5a5;
|
||
--badge-danger-border: rgba(239, 68, 68, 0.35);
|
||
--badge-success-bg: rgba(34, 197, 94, 0.18);
|
||
--badge-success-text: #86efac;
|
||
--badge-success-border: rgba(34, 197, 94, 0.35);
|
||
--badge-purple-bg: rgba(168, 85, 247, 0.18);
|
||
--badge-purple-text: #d8b4fe;
|
||
--badge-purple-border: rgba(168, 85, 247, 0.35);
|
||
}
|
||
}
|
||
|
||
/* Explicit User Dark Mode Override */
|
||
:root[data-theme="dark"],
|
||
:root:has(> head > meta[name="color-scheme"][content="dark"]) {
|
||
--primary: #3b82f6;
|
||
--primary-hover: #2563eb;
|
||
--primary-soft-bg: rgba(59, 130, 246, 0.16);
|
||
--primary-soft-text: #93c5fd;
|
||
--primary-soft-border: rgba(59, 130, 246, 0.35);
|
||
|
||
--text-main: #f1f5f9;
|
||
--text-muted: #94a3b8;
|
||
--text-light: #64748b;
|
||
|
||
--bg-page: #0b1120;
|
||
--bg-card: #111827;
|
||
--bg-subtle: #172033;
|
||
--bg-muted: #1e293b;
|
||
--bg-hover: #334155;
|
||
--bg-input: #0f172a;
|
||
|
||
--border: #1e293b;
|
||
--border-strong: #334155;
|
||
|
||
--success: #22c55e;
|
||
--warning: #f59e0b;
|
||
--urgent: #fb923c;
|
||
--danger: #f87171;
|
||
|
||
--badge-active-bg: rgba(14, 165, 233, 0.18);
|
||
--badge-active-text: #7dd3fc;
|
||
--badge-warning-bg: rgba(245, 158, 11, 0.18);
|
||
--badge-warning-text: #fcd34d;
|
||
--badge-warning-border: rgba(245, 158, 11, 0.35);
|
||
--badge-urgent-bg: rgba(249, 115, 22, 0.18);
|
||
--badge-urgent-text: #fdba74;
|
||
--badge-danger-bg: rgba(239, 68, 68, 0.18);
|
||
--badge-danger-text: #fca5a5;
|
||
--badge-danger-border: rgba(239, 68, 68, 0.35);
|
||
--badge-success-bg: rgba(34, 197, 94, 0.18);
|
||
--badge-success-text: #86efac;
|
||
--badge-success-border: rgba(34, 197, 94, 0.35);
|
||
--badge-purple-bg: rgba(168, 85, 247, 0.18);
|
||
--badge-purple-text: #d8b4fe;
|
||
--badge-purple-border: rgba(168, 85, 247, 0.35);
|
||
}
|
||
|
||
* {
|
||
box-sizing: border-box;
|
||
margin: 0;
|
||
padding: 0;
|
||
}
|
||
|
||
html,
|
||
body {
|
||
overflow-x: hidden;
|
||
max-width: 100%;
|
||
}
|
||
|
||
body {
|
||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
|
||
background-color: var(--bg-page);
|
||
color: var(--text-main);
|
||
line-height: 1.45;
|
||
font-size: 14px;
|
||
min-height: 100vh;
|
||
display: flex;
|
||
flex-direction: column;
|
||
transition: background-color 0.15s ease, color 0.15s ease;
|
||
}
|
||
|
||
code {
|
||
font-family: Menlo, Monaco, Consolas, monospace;
|
||
font-size: 0.9em;
|
||
background: var(--bg-muted);
|
||
color: var(--text-main);
|
||
padding: 2px 4px;
|
||
border-radius: 3px;
|
||
}
|
||
|
||
/* ---------------- Header ---------------- */
|
||
.app-header {
|
||
background: var(--bg-card);
|
||
border-bottom: 1px solid var(--border);
|
||
width: 100%;
|
||
position: sticky;
|
||
top: 0;
|
||
z-index: 100;
|
||
}
|
||
|
||
.header-container {
|
||
max-width: 1080px;
|
||
margin: 0 auto;
|
||
padding: 10px 16px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 16px;
|
||
}
|
||
|
||
.brand-link {
|
||
text-decoration: none;
|
||
color: inherit;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.brand-name {
|
||
font-size: 1.15rem;
|
||
font-weight: 700;
|
||
color: var(--text-main);
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.user-nav {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.user-id {
|
||
font-size: 0.85rem;
|
||
color: var(--text-muted);
|
||
white-space: nowrap;
|
||
}
|
||
|
||
/* Language Switcher & Theme Toggle */
|
||
.lang-switcher {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
background: var(--bg-muted);
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius);
|
||
padding: 2px;
|
||
gap: 2px;
|
||
}
|
||
|
||
.lang-btn {
|
||
text-decoration: none;
|
||
font-size: 0.725rem;
|
||
font-weight: 700;
|
||
color: var(--text-muted);
|
||
padding: 3px 7px;
|
||
border-radius: 4px;
|
||
line-height: 1.2;
|
||
transition: all 0.15s ease;
|
||
}
|
||
|
||
.lang-btn:hover {
|
||
color: var(--text-main);
|
||
}
|
||
|
||
.lang-btn.active {
|
||
background: var(--bg-card);
|
||
color: var(--primary);
|
||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
|
||
}
|
||
|
||
.btn-icon-toggle {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
width: 30px;
|
||
height: 30px;
|
||
padding: 0;
|
||
border-radius: var(--radius);
|
||
border: 1px solid var(--border);
|
||
background: var(--bg-muted);
|
||
color: var(--text-main);
|
||
cursor: pointer;
|
||
transition: all 0.15s ease;
|
||
}
|
||
|
||
.btn-icon-toggle:hover {
|
||
background: var(--bg-hover);
|
||
border-color: var(--border-strong);
|
||
}
|
||
|
||
.theme-icon {
|
||
font-size: 0.75rem;
|
||
font-weight: 700;
|
||
line-height: 1;
|
||
}
|
||
|
||
.theme-icon-sun {
|
||
display: none;
|
||
}
|
||
|
||
.theme-icon-moon {
|
||
display: block;
|
||
}
|
||
|
||
@media (prefers-color-scheme: dark) {
|
||
:root:not([data-theme="light"]):not(:has(> head > meta[name="color-scheme"][content="light"])) .theme-icon-sun {
|
||
display: block;
|
||
}
|
||
:root:not([data-theme="light"]):not(:has(> head > meta[name="color-scheme"][content="light"])) .theme-icon-moon {
|
||
display: none;
|
||
}
|
||
}
|
||
|
||
:root[data-theme="dark"] .theme-icon-sun,
|
||
:root:has(> head > meta[name="color-scheme"][content="dark"]) .theme-icon-sun {
|
||
display: block;
|
||
}
|
||
|
||
:root[data-theme="dark"] .theme-icon-moon,
|
||
:root:has(> head > meta[name="color-scheme"][content="dark"]) .theme-icon-moon {
|
||
display: none;
|
||
}
|
||
|
||
/* ---------------- Main Layout ---------------- */
|
||
.main-content {
|
||
flex: 1;
|
||
max-width: 1080px;
|
||
width: 100%;
|
||
margin: 0 auto;
|
||
padding: 18px 16px;
|
||
}
|
||
|
||
.content-container {
|
||
width: 100%;
|
||
}
|
||
|
||
/* ---------------- Buttons ---------------- */
|
||
.btn {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
padding: 6px 14px;
|
||
font-size: 0.85rem;
|
||
font-weight: 500;
|
||
border-radius: var(--radius);
|
||
border: 1px solid transparent;
|
||
cursor: pointer;
|
||
text-decoration: none;
|
||
transition: all 0.15s ease;
|
||
}
|
||
|
||
.btn:disabled {
|
||
opacity: 0.6;
|
||
cursor: not-allowed;
|
||
}
|
||
|
||
.btn-primary {
|
||
background-color: var(--primary);
|
||
color: white;
|
||
}
|
||
|
||
.btn-primary:hover:not(:disabled) {
|
||
background-color: var(--primary-hover);
|
||
}
|
||
|
||
.btn-danger {
|
||
background-color: var(--danger);
|
||
color: white;
|
||
}
|
||
|
||
.btn-danger:hover:not(:disabled) {
|
||
filter: brightness(0.92);
|
||
}
|
||
|
||
.btn-secondary {
|
||
background-color: var(--bg-card);
|
||
border-color: var(--border);
|
||
color: var(--text-main);
|
||
}
|
||
|
||
.btn-secondary:hover:not(:disabled) {
|
||
background-color: var(--bg-muted);
|
||
}
|
||
|
||
.btn-outline {
|
||
background: transparent;
|
||
border-color: var(--border);
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
.btn-outline:hover {
|
||
background: var(--bg-muted);
|
||
color: var(--text-main);
|
||
}
|
||
|
||
.btn-sm {
|
||
padding: 5px 10px;
|
||
font-size: 0.8rem;
|
||
}
|
||
|
||
.btn-xs {
|
||
padding: 3px 8px;
|
||
font-size: 0.75rem;
|
||
}
|
||
|
||
.btn-block {
|
||
width: 100%;
|
||
}
|
||
|
||
/* ---------------- Login ---------------- */
|
||
.auth-wrapper {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
padding-top: 60px;
|
||
}
|
||
|
||
.auth-card {
|
||
background: var(--bg-card);
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius);
|
||
padding: 28px 24px;
|
||
max-width: 360px;
|
||
width: 100%;
|
||
}
|
||
|
||
.auth-title {
|
||
font-size: 1.3rem;
|
||
font-weight: 700;
|
||
margin-bottom: 4px;
|
||
}
|
||
|
||
.auth-subtitle {
|
||
font-size: 0.85rem;
|
||
color: var(--text-muted);
|
||
margin-bottom: 20px;
|
||
}
|
||
|
||
.auth-form {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 14px;
|
||
}
|
||
|
||
.form-group {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 5px;
|
||
}
|
||
|
||
.form-label {
|
||
font-size: 0.8rem;
|
||
font-weight: 600;
|
||
color: var(--text-main);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
}
|
||
|
||
.form-control {
|
||
width: 100%;
|
||
padding: 8px 10px;
|
||
font-size: 0.9rem;
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius);
|
||
background: var(--bg-input);
|
||
color: var(--text-main);
|
||
}
|
||
|
||
.form-control:focus {
|
||
outline: none;
|
||
border-color: var(--primary);
|
||
}
|
||
|
||
.form-row-between {
|
||
font-size: 0.85rem;
|
||
}
|
||
|
||
.checkbox-label {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
cursor: pointer;
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
.form-actions {
|
||
margin-top: 6px;
|
||
}
|
||
|
||
/* ---------------- Alerts ---------------- */
|
||
.alert {
|
||
padding: 8px 12px;
|
||
border-radius: var(--radius);
|
||
font-size: 0.85rem;
|
||
margin-bottom: 14px;
|
||
}
|
||
|
||
.alert-danger {
|
||
background: var(--badge-danger-bg);
|
||
color: var(--badge-danger-text);
|
||
border: 1px solid var(--badge-danger-border);
|
||
}
|
||
|
||
.alert-info {
|
||
background: var(--primary-soft-bg);
|
||
color: var(--primary-soft-text);
|
||
border: 1px solid var(--primary-soft-border);
|
||
}
|
||
|
||
/* ---------------- Dashboard Top Bar ---------------- */
|
||
.dashboard-topbar,
|
||
.dashboard-top-row {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
flex-wrap: wrap;
|
||
gap: 12px;
|
||
margin-bottom: 18px;
|
||
}
|
||
|
||
.dashboard-title,
|
||
.page-title {
|
||
font-size: 1.4rem;
|
||
font-weight: 700;
|
||
color: var(--text-main);
|
||
}
|
||
|
||
.dashboard-subtitle,
|
||
.page-subtitle {
|
||
font-size: 0.85rem;
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
.dot-separator {
|
||
margin: 0 4px;
|
||
}
|
||
|
||
.sync-actions {
|
||
display: flex;
|
||
gap: 8px;
|
||
}
|
||
|
||
/* ---------------- Stats Grid ---------------- */
|
||
.stats-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
|
||
gap: 10px;
|
||
margin-bottom: 18px;
|
||
}
|
||
|
||
.stat-card {
|
||
background: var(--bg-card);
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius);
|
||
padding: 12px 14px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
|
||
.stat-highlight {
|
||
border-left: 3px solid var(--warning);
|
||
}
|
||
|
||
.stat-label {
|
||
color: var(--text-muted);
|
||
font-size: 0.75rem;
|
||
text-transform: uppercase;
|
||
font-weight: 600;
|
||
letter-spacing: 0.02em;
|
||
}
|
||
|
||
.stat-value {
|
||
font-size: 1.45rem;
|
||
font-weight: 700;
|
||
margin: 4px 0 2px;
|
||
color: var(--text-main);
|
||
}
|
||
|
||
.stat-subtext,
|
||
.stat-sub {
|
||
font-size: 0.75rem;
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
.progress-bar-container {
|
||
background: var(--bg-hover);
|
||
height: 4px;
|
||
border-radius: 9999px;
|
||
overflow: hidden;
|
||
margin-top: 6px;
|
||
}
|
||
|
||
.progress-bar-fill {
|
||
background: var(--success);
|
||
height: 100%;
|
||
border-radius: 9999px;
|
||
transition: width 0.3s;
|
||
}
|
||
|
||
/* ---------------- Subjects ---------------- */
|
||
.section-card {
|
||
background: var(--bg-card);
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius);
|
||
margin-bottom: 16px;
|
||
}
|
||
|
||
.section-header {
|
||
padding: 10px 14px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
border-bottom: 1px solid var(--border);
|
||
font-size: 0.85rem;
|
||
font-weight: 600;
|
||
user-select: none;
|
||
}
|
||
|
||
.cursor-pointer {
|
||
cursor: pointer;
|
||
}
|
||
|
||
.toggle-indicator {
|
||
color: var(--text-muted);
|
||
font-size: 0.8rem;
|
||
}
|
||
|
||
.subject-breakdown-body {
|
||
padding: 12px 14px;
|
||
}
|
||
|
||
.subject-breakdown-body.collapsed {
|
||
display: none;
|
||
}
|
||
|
||
.subject-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
||
gap: 10px;
|
||
}
|
||
|
||
.subject-item {
|
||
background: var(--bg-subtle);
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius);
|
||
padding: 8px 10px;
|
||
}
|
||
|
||
.subject-info {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
margin-bottom: 4px;
|
||
font-size: 0.8rem;
|
||
}
|
||
|
||
.subject-name {
|
||
font-weight: 600;
|
||
}
|
||
|
||
.subject-fraction {
|
||
color: var(--text-muted);
|
||
font-size: 0.75rem;
|
||
}
|
||
|
||
.subject-bar {
|
||
background: var(--bg-hover);
|
||
height: 4px;
|
||
border-radius: 9999px;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.subject-bar-fill {
|
||
background: var(--primary);
|
||
height: 100%;
|
||
border-radius: 9999px;
|
||
}
|
||
|
||
/* ---------------- Toolbar ---------------- */
|
||
.toolbar-card {
|
||
background: var(--bg-card);
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius);
|
||
padding: 12px 14px;
|
||
margin-bottom: 12px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 10px;
|
||
}
|
||
|
||
.filter-tabs {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 6px;
|
||
}
|
||
|
||
.tab-btn {
|
||
background: var(--bg-muted);
|
||
border: 1px solid transparent;
|
||
color: var(--text-muted);
|
||
padding: 4px 10px;
|
||
border-radius: var(--radius);
|
||
font-size: 0.8rem;
|
||
font-weight: 500;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.tab-btn:hover {
|
||
background: var(--bg-hover);
|
||
color: var(--text-main);
|
||
}
|
||
|
||
.tab-btn.active {
|
||
background: var(--primary);
|
||
color: white;
|
||
}
|
||
|
||
.filter-controls {
|
||
display: flex;
|
||
gap: 8px;
|
||
}
|
||
|
||
.search-box {
|
||
flex: 1;
|
||
position: relative;
|
||
display: flex;
|
||
align-items: center;
|
||
}
|
||
|
||
.search-input {
|
||
width: 100%;
|
||
padding: 6px 26px 6px 10px;
|
||
font-size: 0.85rem;
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius);
|
||
background: var(--bg-input);
|
||
color: var(--text-main);
|
||
}
|
||
|
||
.search-input:focus {
|
||
outline: none;
|
||
border-color: var(--primary);
|
||
}
|
||
|
||
.search-clear {
|
||
position: absolute;
|
||
right: 8px;
|
||
background: none;
|
||
border: none;
|
||
font-size: 1rem;
|
||
color: var(--text-light);
|
||
cursor: pointer;
|
||
}
|
||
|
||
.form-select {
|
||
padding: 8px 12px;
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius);
|
||
background: var(--bg-input);
|
||
color: var(--text-main);
|
||
font-size: 0.875rem;
|
||
font-family: inherit;
|
||
cursor: pointer;
|
||
transition: border-color 0.15s ease;
|
||
}
|
||
|
||
.form-select:focus {
|
||
outline: none;
|
||
border-color: var(--primary);
|
||
}
|
||
|
||
.form-select:disabled {
|
||
background: var(--bg-subtle);
|
||
color: var(--text-light);
|
||
cursor: not-allowed;
|
||
}
|
||
|
||
.list-meta {
|
||
font-size: 0.8rem;
|
||
color: var(--text-muted);
|
||
margin-bottom: 10px;
|
||
}
|
||
|
||
/* ---------------- Cards ---------------- */
|
||
.assignment-list {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
}
|
||
|
||
.assignment-card {
|
||
background: var(--bg-card);
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius);
|
||
padding: 12px 14px;
|
||
display: flex;
|
||
gap: 12px;
|
||
}
|
||
|
||
.assignment-card.status-next-week:not(.is-completed) {
|
||
border-left: 3px solid var(--warning);
|
||
}
|
||
|
||
.assignment-card.status-due-soon:not(.is-completed) {
|
||
border-left: 3px solid var(--urgent);
|
||
}
|
||
|
||
.assignment-card.status-overdue:not(.is-completed) {
|
||
border-left: 3px solid var(--danger);
|
||
}
|
||
|
||
.assignment-card.status-active:not(.is-completed) {
|
||
border-left: 3px solid #38bdf8;
|
||
}
|
||
|
||
.assignment-card.is-completed {
|
||
border-left: 3px solid var(--success);
|
||
opacity: 0.65;
|
||
}
|
||
|
||
.assignment-card.is-completed .card-description {
|
||
text-decoration: line-through;
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
.card-checkbox-col {
|
||
padding-top: 2px;
|
||
}
|
||
|
||
.assignment-toggle {
|
||
width: 17px;
|
||
height: 17px;
|
||
cursor: pointer;
|
||
accent-color: var(--primary);
|
||
}
|
||
|
||
.card-content-col {
|
||
flex: 1;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 6px;
|
||
}
|
||
|
||
.card-top-row {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
flex-wrap: wrap;
|
||
gap: 6px;
|
||
}
|
||
|
||
.card-subject-wrap {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
}
|
||
|
||
.card-subject {
|
||
font-size: 0.95rem;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.card-badges {
|
||
display: flex;
|
||
align-items: center;
|
||
flex-wrap: wrap;
|
||
gap: 4px;
|
||
}
|
||
|
||
.badge {
|
||
font-size: 0.725rem;
|
||
font-weight: 600;
|
||
padding: 2px 6px;
|
||
border-radius: 4px;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 3px;
|
||
}
|
||
|
||
.badge-type,
|
||
.badge-soft-secondary,
|
||
.badge-soft-neutral {
|
||
background: var(--bg-muted);
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
.badge-active,
|
||
.badge-soft-info {
|
||
background: var(--badge-active-bg);
|
||
color: var(--badge-active-text);
|
||
}
|
||
|
||
.badge-soft-primary {
|
||
background: var(--primary-soft-bg);
|
||
color: var(--primary-soft-text);
|
||
}
|
||
|
||
.badge-next-week,
|
||
.badge-soft-warning {
|
||
background: var(--badge-warning-bg);
|
||
color: var(--badge-warning-text);
|
||
}
|
||
|
||
.badge-due-soon {
|
||
background: var(--badge-urgent-bg);
|
||
color: var(--badge-urgent-text);
|
||
}
|
||
|
||
.badge-overdue,
|
||
.badge-soft-danger {
|
||
background: var(--badge-danger-bg);
|
||
color: var(--badge-danger-text);
|
||
}
|
||
|
||
.badge-completed,
|
||
.badge-soft-success {
|
||
background: var(--badge-success-bg);
|
||
color: var(--badge-success-text);
|
||
}
|
||
|
||
.badge-check-date {
|
||
background: var(--badge-purple-bg);
|
||
color: var(--badge-purple-text);
|
||
border: 1px solid var(--badge-purple-border);
|
||
}
|
||
|
||
.badge-excluded {
|
||
background: var(--bg-muted);
|
||
color: var(--text-muted);
|
||
border: 1px solid var(--border-strong);
|
||
}
|
||
|
||
.btn-exclude,
|
||
.btn-disinclude {
|
||
font-family: inherit;
|
||
font-size: 0.725rem;
|
||
font-weight: 600;
|
||
line-height: inherit;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
padding: 1px 6px;
|
||
border-radius: 4px;
|
||
background: var(--bg-muted);
|
||
color: var(--text-muted);
|
||
border: 1px solid var(--border);
|
||
cursor: pointer;
|
||
transition: all 0.15s ease;
|
||
user-select: none;
|
||
}
|
||
|
||
.btn-exclude:hover,
|
||
.btn-disinclude:hover {
|
||
background: var(--bg-hover);
|
||
color: var(--text-main);
|
||
border-color: var(--border-strong);
|
||
}
|
||
|
||
.btn-exclude:active,
|
||
.btn-disinclude:active {
|
||
background: var(--border-strong);
|
||
}
|
||
|
||
.btn-exclude:focus-visible,
|
||
.btn-disinclude:focus-visible {
|
||
outline: 2px solid var(--primary);
|
||
outline-offset: 1px;
|
||
}
|
||
|
||
.assignment-card.is-excluded {
|
||
opacity: 0.5;
|
||
background-color: var(--bg-subtle);
|
||
border-left: 3px solid var(--text-light) !important;
|
||
}
|
||
|
||
.card-sub-meta {
|
||
font-size: 0.78rem;
|
||
color: var(--text-muted);
|
||
display: flex;
|
||
gap: 10px;
|
||
}
|
||
|
||
.card-description {
|
||
font-size: 0.88rem;
|
||
line-height: 1.45;
|
||
color: var(--text-main);
|
||
white-space: pre-line;
|
||
word-break: break-word;
|
||
background: var(--bg-subtle);
|
||
padding: 6px 10px;
|
||
border-radius: 4px;
|
||
}
|
||
|
||
.card-footer-row {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
font-size: 0.75rem;
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
.card-timestamps {
|
||
display: flex;
|
||
gap: 8px;
|
||
}
|
||
|
||
.card-hash {
|
||
font-family: Menlo, Monaco, monospace;
|
||
font-size: 0.7rem;
|
||
color: var(--text-light);
|
||
}
|
||
|
||
.empty-state,
|
||
.empty-state-card {
|
||
background: var(--bg-card);
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius);
|
||
padding: 28px 24px;
|
||
text-align: center;
|
||
color: var(--text-muted);
|
||
font-size: 0.85rem;
|
||
}
|
||
|
||
.empty-state p,
|
||
.empty-state-card p {
|
||
margin-bottom: 12px;
|
||
}
|
||
|
||
.empty-icon {
|
||
font-size: 2rem;
|
||
margin-bottom: 8px;
|
||
}
|
||
|
||
.app-footer {
|
||
border-top: 1px solid var(--border);
|
||
padding: 12px 16px;
|
||
text-align: center;
|
||
font-size: 0.75rem;
|
||
color: var(--text-light);
|
||
margin-top: auto;
|
||
}
|
||
|
||
.hidden {
|
||
display: none !important;
|
||
}
|
||
|
||
.text-center {
|
||
text-align: center !important;
|
||
}
|
||
|
||
.text-muted {
|
||
color: var(--text-muted) !important;
|
||
}
|
||
|
||
.text-success {
|
||
color: var(--success) !important;
|
||
}
|
||
|
||
.text-danger {
|
||
color: var(--danger) !important;
|
||
}
|
||
|
||
.text-primary {
|
||
color: var(--primary) !important;
|
||
}
|
||
|
||
.font-semibold {
|
||
font-weight: 600;
|
||
}
|
||
|
||
@media (max-width: 600px) {
|
||
.dashboard-topbar,
|
||
.dashboard-top-row {
|
||
flex-direction: column;
|
||
align-items: flex-start;
|
||
}
|
||
.filter-controls {
|
||
flex-direction: column;
|
||
}
|
||
}
|
||
|
||
/* ---------------- Syllabus & Navigation Styles ---------------- */
|
||
.brand-group {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 20px;
|
||
min-width: 0;
|
||
flex: 1;
|
||
}
|
||
|
||
.main-nav {
|
||
display: flex;
|
||
gap: 6px;
|
||
overflow-x: auto;
|
||
-webkit-overflow-scrolling: touch;
|
||
scrollbar-width: none;
|
||
min-width: 0;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.main-nav::-webkit-scrollbar {
|
||
display: none;
|
||
}
|
||
|
||
.nav-item {
|
||
text-decoration: none;
|
||
color: var(--text-muted);
|
||
font-size: 0.85rem;
|
||
font-weight: 500;
|
||
padding: 4px 10px;
|
||
border-radius: var(--radius);
|
||
transition: all 0.15s ease;
|
||
flex-shrink: 0;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.nav-item:hover {
|
||
color: var(--text-main);
|
||
background: var(--bg-muted);
|
||
}
|
||
|
||
.nav-item.active {
|
||
color: var(--primary-soft-text);
|
||
font-weight: 600;
|
||
background: var(--primary-soft-bg);
|
||
}
|
||
|
||
.station-select-row, .view-toggle-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.toolbar-label {
|
||
font-size: 0.8rem;
|
||
font-weight: 600;
|
||
color: var(--text-muted);
|
||
min-width: 55px;
|
||
}
|
||
|
||
.station-pills, .view-toggle-pills {
|
||
display: flex;
|
||
gap: 6px;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.station-btn, .view-btn {
|
||
background: var(--bg-muted);
|
||
border: 1px solid var(--border);
|
||
color: var(--text-main);
|
||
font-size: 0.8rem;
|
||
padding: 4px 10px;
|
||
border-radius: var(--radius);
|
||
cursor: pointer;
|
||
transition: all 0.15s ease;
|
||
}
|
||
|
||
.station-btn:hover, .view-btn:hover {
|
||
background: var(--bg-hover);
|
||
}
|
||
|
||
.station-btn.active, .view-btn.active {
|
||
background: var(--primary);
|
||
border-color: var(--primary);
|
||
color: white;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.live-period-banner {
|
||
background: var(--primary-soft-bg);
|
||
border: 1px solid var(--primary-soft-border);
|
||
color: var(--primary-soft-text);
|
||
padding: 8px 12px;
|
||
border-radius: var(--radius);
|
||
font-size: 0.85rem;
|
||
font-weight: 500;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
margin-bottom: 14px;
|
||
}
|
||
|
||
.live-dot {
|
||
color: var(--primary);
|
||
animation: pulse 1.5s infinite;
|
||
}
|
||
|
||
@keyframes pulse {
|
||
0% { opacity: 1; }
|
||
50% { opacity: 0.3; }
|
||
100% { opacity: 1; }
|
||
}
|
||
|
||
.day-tabs {
|
||
display: flex;
|
||
gap: 6px;
|
||
margin-bottom: 12px;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.day-tab-btn {
|
||
background: var(--bg-card);
|
||
border: 1px solid var(--border);
|
||
color: var(--text-muted);
|
||
padding: 6px 12px;
|
||
border-radius: var(--radius);
|
||
font-size: 0.85rem;
|
||
font-weight: 500;
|
||
cursor: pointer;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
transition: all 0.15s ease;
|
||
}
|
||
|
||
.day-tab-btn:hover {
|
||
background: var(--bg-subtle);
|
||
color: var(--text-main);
|
||
}
|
||
|
||
.day-tab-btn.active {
|
||
background: var(--primary);
|
||
border-color: var(--primary);
|
||
color: white;
|
||
}
|
||
|
||
.today-badge {
|
||
background: var(--badge-warning-bg);
|
||
color: var(--badge-warning-text);
|
||
font-size: 0.7rem;
|
||
padding: 1px 4px;
|
||
border-radius: 3px;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.day-tab-btn.active .today-badge {
|
||
background: rgba(255, 255, 255, 0.25);
|
||
color: white;
|
||
}
|
||
|
||
.day-count-badge {
|
||
background: var(--bg-muted);
|
||
color: var(--text-muted);
|
||
font-size: 0.7rem;
|
||
padding: 1px 5px;
|
||
border-radius: 9999px;
|
||
}
|
||
|
||
.day-tab-btn.active .day-count-badge {
|
||
background: rgba(255, 255, 255, 0.2);
|
||
color: white;
|
||
}
|
||
|
||
.timetable-list {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
}
|
||
|
||
.timetable-row {
|
||
background: var(--bg-card);
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius);
|
||
padding: 12px 16px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 16px;
|
||
}
|
||
|
||
.period-col {
|
||
display: flex;
|
||
flex-direction: column;
|
||
min-width: 90px;
|
||
}
|
||
|
||
.period-num {
|
||
font-weight: 700;
|
||
font-size: 0.95rem;
|
||
}
|
||
|
||
.period-time {
|
||
font-size: 0.78rem;
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
.subject-col {
|
||
flex: 1;
|
||
}
|
||
|
||
.subject-title {
|
||
font-weight: 600;
|
||
font-size: 0.95rem;
|
||
color: var(--text-main);
|
||
}
|
||
|
||
.teacher-info {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
margin-top: 2px;
|
||
}
|
||
|
||
.teacher-thumb {
|
||
width: 20px;
|
||
height: 20px;
|
||
border-radius: 50%;
|
||
object-fit: cover;
|
||
}
|
||
|
||
.teacher-name {
|
||
font-size: 0.8rem;
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
.station-badge {
|
||
background: var(--badge-warning-bg);
|
||
color: var(--badge-warning-text);
|
||
font-size: 0.75rem;
|
||
font-weight: 700;
|
||
padding: 2px 8px;
|
||
border-radius: 4px;
|
||
border: 1px solid var(--badge-warning-border);
|
||
}
|
||
|
||
.class-badge {
|
||
background: var(--bg-muted);
|
||
color: var(--text-muted);
|
||
font-size: 0.75rem;
|
||
padding: 2px 8px;
|
||
border-radius: 4px;
|
||
}
|
||
|
||
.table-responsive {
|
||
overflow-x: auto;
|
||
}
|
||
|
||
.week-grid-table {
|
||
width: 100%;
|
||
border-collapse: collapse;
|
||
background: var(--bg-card);
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius);
|
||
font-size: 0.825rem;
|
||
}
|
||
|
||
.week-grid-table th, .week-grid-table td {
|
||
border: 1px solid var(--border);
|
||
padding: 8px 10px;
|
||
text-align: left;
|
||
vertical-align: top;
|
||
}
|
||
|
||
.week-grid-table th {
|
||
background: var(--bg-subtle);
|
||
font-weight: 600;
|
||
}
|
||
|
||
.grid-today-th {
|
||
background: var(--primary-soft-bg) !important;
|
||
color: var(--primary-soft-text);
|
||
}
|
||
|
||
.grid-today-pill {
|
||
font-size: 0.68rem;
|
||
background: var(--primary-soft-bg);
|
||
color: var(--primary-soft-text);
|
||
border: 1px solid var(--primary-soft-border);
|
||
padding: 1px 4px;
|
||
border-radius: 3px;
|
||
margin-left: 4px;
|
||
}
|
||
|
||
.grid-period-cell {
|
||
min-width: 80px;
|
||
background: var(--bg-subtle);
|
||
}
|
||
|
||
.grid-period-title {
|
||
font-weight: 700;
|
||
}
|
||
|
||
.grid-period-time {
|
||
font-size: 0.725rem;
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
.grid-lesson-cell {
|
||
min-width: 135px;
|
||
}
|
||
|
||
.grid-lesson-cell.has-lesson {
|
||
background: var(--bg-card);
|
||
}
|
||
|
||
.grid-lesson-item:not(:last-child) {
|
||
margin-bottom: 6px;
|
||
padding-bottom: 6px;
|
||
border-bottom: 1px dashed var(--border);
|
||
}
|
||
|
||
.grid-lesson-subject {
|
||
font-weight: 600;
|
||
font-size: 0.825rem;
|
||
}
|
||
|
||
.grid-lesson-teacher {
|
||
font-size: 0.75rem;
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
.grid-station-tag {
|
||
display: inline-block;
|
||
font-size: 0.68rem;
|
||
background: var(--badge-warning-bg);
|
||
color: var(--badge-warning-text);
|
||
padding: 1px 4px;
|
||
border-radius: 3px;
|
||
margin-top: 3px;
|
||
}
|
||
|
||
.grid-empty-cell {
|
||
color: var(--text-light);
|
||
}
|
||
|
||
/* ---------------- Advisor Pill (Syllabus) ---------------- */
|
||
.advisor-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
}
|
||
|
||
.advisor-pill {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
background: var(--bg-muted);
|
||
border: 1px solid var(--border);
|
||
padding: 3px 10px;
|
||
border-radius: 9999px;
|
||
font-size: 0.775rem;
|
||
}
|
||
|
||
.advisor-name {
|
||
font-weight: 600;
|
||
color: var(--text-main);
|
||
}
|
||
|
||
.advisor-sub {
|
||
color: var(--text-muted);
|
||
font-size: 0.7rem;
|
||
background: var(--bg-hover);
|
||
padding: 1px 6px;
|
||
border-radius: 4px;
|
||
}
|
||
|
||
/* ---------------- Private Lessons (Özel Ders) ---------------- */
|
||
.student-profile-card {
|
||
background: var(--bg-card);
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius);
|
||
padding: 14px 18px;
|
||
margin-bottom: 16px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 12px;
|
||
}
|
||
|
||
.student-profile-main {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 14px;
|
||
}
|
||
|
||
.student-avatar {
|
||
width: 52px;
|
||
height: 52px;
|
||
border-radius: 50%;
|
||
object-fit: cover;
|
||
border: 2px solid var(--border);
|
||
}
|
||
|
||
.student-meta {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 2px;
|
||
}
|
||
|
||
.student-name {
|
||
font-size: 1.05rem;
|
||
font-weight: 700;
|
||
margin: 0;
|
||
}
|
||
|
||
.student-school {
|
||
font-size: 0.8rem;
|
||
color: var(--text-muted);
|
||
margin: 0;
|
||
}
|
||
|
||
.student-advisor-badge {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
font-size: 0.775rem;
|
||
margin-top: 4px;
|
||
}
|
||
|
||
.advisor-badge-label {
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
.student-policy-note {
|
||
display: flex;
|
||
align-items: flex-start;
|
||
gap: 8px;
|
||
font-size: 0.775rem;
|
||
color: var(--badge-warning-text);
|
||
background: var(--badge-warning-bg);
|
||
padding: 8px 12px;
|
||
border-radius: 6px;
|
||
border-left: 3px solid var(--warning);
|
||
}
|
||
|
||
.policy-icon {
|
||
font-weight: 700;
|
||
}
|
||
|
||
/* Request Form */
|
||
.request-form-card {
|
||
background: var(--bg-card);
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius);
|
||
padding: 18px 20px;
|
||
margin-bottom: 20px;
|
||
}
|
||
|
||
.form-card-header {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
margin-bottom: 16px;
|
||
padding-bottom: 10px;
|
||
border-bottom: 1px solid var(--border);
|
||
}
|
||
|
||
.form-header-badge {
|
||
font-size: 0.725rem;
|
||
font-weight: 600;
|
||
background: var(--badge-active-bg);
|
||
color: var(--badge-active-text);
|
||
padding: 2px 8px;
|
||
border-radius: 4px;
|
||
}
|
||
|
||
.form-grid-3 {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
||
gap: 14px;
|
||
margin-bottom: 16px;
|
||
}
|
||
|
||
.select-loading {
|
||
font-size: 0.7rem;
|
||
font-weight: 400;
|
||
color: var(--primary);
|
||
}
|
||
|
||
.form-actions-row {
|
||
display: flex;
|
||
justify-content: flex-end;
|
||
}
|
||
|
||
.form-feedback {
|
||
margin-top: 12px;
|
||
padding: 10px 14px;
|
||
border-radius: var(--radius);
|
||
font-size: 0.825rem;
|
||
font-weight: 500;
|
||
}
|
||
|
||
.feedback-success {
|
||
background: var(--badge-success-bg);
|
||
color: var(--badge-success-text);
|
||
border: 1px solid var(--badge-success-border);
|
||
}
|
||
|
||
.feedback-error {
|
||
background: var(--badge-danger-bg);
|
||
color: var(--badge-danger-text);
|
||
border: 1px solid var(--badge-danger-border);
|
||
}
|
||
|
||
/* Lessons List & Grid */
|
||
.lessons-section {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 18px;
|
||
}
|
||
|
||
.lessons-header-row {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
flex-wrap: wrap;
|
||
gap: 10px;
|
||
}
|
||
|
||
.lessons-title-wrap {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
}
|
||
|
||
.lessons-count-badge {
|
||
background: var(--bg-muted);
|
||
color: var(--text-muted);
|
||
font-size: 0.75rem;
|
||
font-weight: 700;
|
||
padding: 2px 7px;
|
||
border-radius: 9999px;
|
||
}
|
||
|
||
.subject-filter-pills {
|
||
display: flex;
|
||
align-items: center;
|
||
flex-wrap: wrap;
|
||
gap: 6px;
|
||
}
|
||
|
||
.subject-pill-btn {
|
||
font-family: inherit;
|
||
font-size: 0.725rem;
|
||
font-weight: 600;
|
||
padding: 3px 10px;
|
||
border-radius: 9999px;
|
||
background: var(--bg-muted);
|
||
color: var(--text-muted);
|
||
border: 1px solid transparent;
|
||
cursor: pointer;
|
||
transition: all 0.15s ease;
|
||
}
|
||
|
||
.subject-pill-btn:hover {
|
||
background: var(--bg-hover);
|
||
color: var(--text-main);
|
||
}
|
||
|
||
.subject-pill-btn.active {
|
||
background: var(--primary);
|
||
color: #ffffff;
|
||
}
|
||
|
||
.upcoming-lessons-group,
|
||
.past-lessons-group {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 10px;
|
||
}
|
||
|
||
.group-header {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
padding-bottom: 4px;
|
||
}
|
||
|
||
.group-title {
|
||
font-size: 0.85rem;
|
||
font-weight: 700;
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.03em;
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
.lessons-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
||
gap: 12px;
|
||
}
|
||
|
||
.lesson-card {
|
||
background: var(--bg-card);
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius);
|
||
padding: 12px 14px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 10px;
|
||
transition: transform 0.15s ease, box-shadow 0.15s ease;
|
||
}
|
||
|
||
.lesson-card:hover {
|
||
transform: translateY(-1px);
|
||
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
|
||
}
|
||
|
||
.lesson-card.is-upcoming {
|
||
border-left: 3px solid var(--success);
|
||
}
|
||
|
||
.lesson-card-header {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
}
|
||
|
||
.lesson-date {
|
||
font-size: 0.775rem;
|
||
font-weight: 600;
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
.lesson-card-body {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
}
|
||
|
||
.lesson-teacher-photo {
|
||
width: 40px;
|
||
height: 40px;
|
||
border-radius: 50%;
|
||
object-fit: cover;
|
||
border: 1px solid var(--border);
|
||
}
|
||
|
||
.lesson-teacher-placeholder {
|
||
width: 40px;
|
||
height: 40px;
|
||
border-radius: 50%;
|
||
background: var(--bg-muted);
|
||
color: var(--text-muted);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
font-weight: 700;
|
||
font-size: 1rem;
|
||
}
|
||
|
||
.lesson-info {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 2px;
|
||
}
|
||
|
||
.lesson-subject {
|
||
font-size: 0.95rem;
|
||
font-weight: 700;
|
||
margin: 0;
|
||
color: var(--text-main);
|
||
}
|
||
|
||
.lesson-teacher {
|
||
font-size: 0.8rem;
|
||
color: var(--text-muted);
|
||
margin: 0;
|
||
}
|
||
|
||
.empty-lessons-card {
|
||
background: var(--bg-card);
|
||
border: 1px dashed var(--border);
|
||
border-radius: var(--radius);
|
||
padding: 24px;
|
||
text-align: center;
|
||
color: var(--text-muted);
|
||
font-size: 0.875rem;
|
||
}
|
||
|
||
/* ==================================================== */
|
||
/* Exam Reports (Sınav Rapor) Styling */
|
||
/* ==================================================== */
|
||
|
||
.exam-filter-row {
|
||
margin-bottom: 14px;
|
||
}
|
||
|
||
.filter-pills {
|
||
display: flex;
|
||
gap: 8px;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.filter-pill {
|
||
background: var(--bg-card);
|
||
border: 1px solid var(--border);
|
||
color: var(--text-muted);
|
||
padding: 5px 12px;
|
||
border-radius: var(--radius);
|
||
font-size: 0.825rem;
|
||
font-weight: 500;
|
||
cursor: pointer;
|
||
transition: all 0.15s ease;
|
||
}
|
||
|
||
.filter-pill:hover {
|
||
background: var(--bg-subtle);
|
||
color: var(--text-main);
|
||
}
|
||
|
||
.filter-pill.active {
|
||
background: var(--primary);
|
||
border-color: var(--primary);
|
||
color: white;
|
||
font-weight: 600;
|
||
}
|
||
|
||
/* Exam Cards Strip */
|
||
.exam-cards-strip {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
|
||
gap: 12px;
|
||
margin-bottom: 24px;
|
||
}
|
||
|
||
.exam-pill-card {
|
||
background: var(--bg-card);
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius);
|
||
padding: 12px 14px;
|
||
cursor: pointer;
|
||
transition: all 0.15s ease;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
}
|
||
|
||
.exam-pill-card:hover {
|
||
border-color: var(--border-strong);
|
||
transform: translateY(-1px);
|
||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
|
||
}
|
||
|
||
.exam-pill-card.active {
|
||
border-color: var(--primary);
|
||
box-shadow: 0 0 0 1.5px var(--primary);
|
||
background: var(--bg-subtle);
|
||
}
|
||
|
||
.exam-pill-header {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
gap: 8px;
|
||
}
|
||
|
||
.exam-type-badge {
|
||
font-size: 0.7rem;
|
||
font-weight: 700;
|
||
padding: 2px 6px;
|
||
border-radius: 4px;
|
||
text-transform: uppercase;
|
||
}
|
||
|
||
.exam-type-tyt {
|
||
background: var(--badge-active-bg);
|
||
color: var(--badge-active-text);
|
||
}
|
||
|
||
.exam-type-ayt {
|
||
background: var(--badge-purple-bg);
|
||
color: var(--badge-purple-text);
|
||
}
|
||
|
||
.exam-type-other {
|
||
background: var(--bg-muted);
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
.exam-pill-name {
|
||
font-size: 0.85rem;
|
||
font-weight: 600;
|
||
color: var(--text-main);
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
flex: 1;
|
||
text-align: right;
|
||
}
|
||
|
||
.exam-pill-metrics {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: baseline;
|
||
gap: 8px;
|
||
}
|
||
|
||
.exam-pill-net {
|
||
font-size: 1.05rem;
|
||
color: var(--text-main);
|
||
display: flex;
|
||
align-items: baseline;
|
||
gap: 4px;
|
||
}
|
||
|
||
.net-unit {
|
||
font-size: 0.75rem;
|
||
color: var(--text-muted);
|
||
font-weight: 400;
|
||
}
|
||
|
||
.exam-pill-rank {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 4px;
|
||
}
|
||
|
||
.rank-badge {
|
||
font-size: 0.8rem;
|
||
font-weight: 600;
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
.delta-badge {
|
||
font-size: 0.7rem;
|
||
font-weight: 700;
|
||
padding: 1px 5px;
|
||
border-radius: 4px;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
}
|
||
|
||
.delta-up {
|
||
background: var(--badge-success-bg);
|
||
color: var(--badge-success-text);
|
||
}
|
||
|
||
.delta-down {
|
||
background: var(--badge-danger-bg);
|
||
color: var(--badge-danger-text);
|
||
}
|
||
|
||
.delta-rank-badge {
|
||
font-size: 0.7rem;
|
||
font-weight: 700;
|
||
padding: 1px 4px;
|
||
border-radius: 4px;
|
||
}
|
||
|
||
.rank-up {
|
||
background: var(--primary-soft-bg);
|
||
color: var(--primary-soft-text);
|
||
}
|
||
|
||
.rank-down {
|
||
background: var(--badge-danger-bg);
|
||
color: var(--badge-danger-text);
|
||
}
|
||
|
||
.exam-pill-rating {
|
||
margin-top: 2px;
|
||
}
|
||
|
||
/* Standalone Rating Badge Icons (Zero Emojis, Zero External Font Dependency) */
|
||
.bi {
|
||
display: inline-block;
|
||
width: 0.875rem;
|
||
height: 0.875rem;
|
||
vertical-align: -0.1em;
|
||
background-color: currentColor;
|
||
-webkit-mask-repeat: no-repeat;
|
||
mask-repeat: no-repeat;
|
||
-webkit-mask-position: center;
|
||
mask-position: center;
|
||
-webkit-mask-size: contain;
|
||
mask-size: contain;
|
||
margin-right: 4px;
|
||
}
|
||
|
||
.bi-stars {
|
||
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='m8 0 1.5 5 5 1.5-5 1.5L8 13l-1.5-5-5-1.5 5-1.5z'/%3E%3C/svg%3E");
|
||
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='m8 0 1.5 5 5 1.5-5 1.5L8 13l-1.5-5-5-1.5 5-1.5z'/%3E%3C/svg%3E");
|
||
}
|
||
|
||
.bi-award-fill {
|
||
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='6' r='4' fill='%23000'/%3E%3Cpath fill='%23000' d='m5 9-2 7 5-2 5 2-2-7z'/%3E%3C/svg%3E");
|
||
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='6' r='4' fill='%23000'/%3E%3Cpath fill='%23000' d='m5 9-2 7 5-2 5 2-2-7z'/%3E%3C/svg%3E");
|
||
}
|
||
|
||
.bi-shield-check {
|
||
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M8 0c-3 1.5-6 1-6 1v6c0 5 6 9 6 9s6-4 6-9V1s-3-.5-6-1zm3.2 5.7-3.7 4a.7.7 0 0 1-1 0L4.8 8a.7.7 0 0 1 1-1l1.2 1.2 3.2-3.5a.7.7 0 1 1 1 1z'/%3E%3C/svg%3E");
|
||
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M8 0c-3 1.5-6 1-6 1v6c0 5 6 9 6 9s6-4 6-9V1s-3-.5-6-1zm3.2 5.7-3.7 4a.7.7 0 0 1-1 0L4.8 8a.7.7 0 0 1 1-1l1.2 1.2 3.2-3.5a.7.7 0 1 1 1 1z'/%3E%3C/svg%3E");
|
||
}
|
||
|
||
.bi-graph-up-arrow {
|
||
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M0 14h16v1.5H0zm1-3 4-4 3 3 5.5-6H11V2h5v5h-2V4.5L8 10.5 5 7.5 1.5 11z'/%3E%3C/svg%3E");
|
||
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M0 14h16v1.5H0zm1-3 4-4 3 3 5.5-6H11V2h5v5h-2V4.5L8 10.5 5 7.5 1.5 11z'/%3E%3C/svg%3E");
|
||
}
|
||
|
||
.bi-trophy-fill {
|
||
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M3 2h10v3a4 4 0 0 1-3.5 4 3 3 0 0 1-1 1.5V13h3v1.5H4.5V13h3v-2.5a3 3 0 0 1-1-1.5A4 4 0 0 1 3 5zm-1 1v2a2 2 0 0 0 2 2h.5A5.5 5.5 0 0 1 3 5V3zm12 0v2a5.5 5.5 0 0 1-1.5 2h.5a2 2 0 0 0 2-2V3z'/%3E%3C/svg%3E");
|
||
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M3 2h10v3a4 4 0 0 1-3.5 4 3 3 0 0 1-1 1.5V13h3v1.5H4.5V13h3v-2.5a3 3 0 0 1-1-1.5A4 4 0 0 1 3 5zm-1 1v2a2 2 0 0 0 2 2h.5A5.5 5.5 0 0 1 3 5V3zm12 0v2a5.5 5.5 0 0 1-1.5 2h.5a2 2 0 0 0 2-2V3z'/%3E%3C/svg%3E");
|
||
}
|
||
|
||
.bi-flag-fill {
|
||
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M3 1h1.5v14H3zm1.5 1 9 3.5L4.5 9z'/%3E%3C/svg%3E");
|
||
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M3 1h1.5v14H3zm1.5 1 9 3.5L4.5 9z'/%3E%3C/svg%3E");
|
||
}
|
||
|
||
.bi-exclamation-triangle-fill {
|
||
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M8 1 0 15h16zm-.7 5h1.4v4.5H7.3zm0 6h1.4v1.5H7.3z'/%3E%3C/svg%3E");
|
||
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M8 1 0 15h16zm-.7 5h1.4v4.5H7.3zm0 6h1.4v1.5H7.3z'/%3E%3C/svg%3E");
|
||
}
|
||
|
||
.bi-check-circle-fill {
|
||
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.7 5.7-4.2 4.5a.7.7 0 0 1-1 0L4.3 8a.7.7 0 0 1 1-1l1.7 1.7 3.7-4a.7.7 0 1 1 1 1z'/%3E%3C/svg%3E");
|
||
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.7 5.7-4.2 4.5a.7.7 0 0 1-1 0L4.3 8a.7.7 0 0 1 1-1l1.7 1.7 3.7-4a.7.7 0 1 1 1 1z'/%3E%3C/svg%3E");
|
||
}
|
||
|
||
/* Exam Detail Card */
|
||
.exam-detail-card {
|
||
background: var(--bg-card);
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius);
|
||
padding: 20px 24px;
|
||
margin-bottom: 24px;
|
||
}
|
||
|
||
.exam-detail-header {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: flex-start;
|
||
gap: 16px;
|
||
margin-bottom: 20px;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.detail-title-line {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
flex-wrap: wrap;
|
||
margin-bottom: 8px;
|
||
}
|
||
|
||
.exam-title-text {
|
||
font-size: 1.25rem;
|
||
font-weight: 700;
|
||
margin: 0;
|
||
color: var(--text-main);
|
||
}
|
||
|
||
.exam-type-tag {
|
||
font-size: 0.75rem;
|
||
font-weight: 700;
|
||
padding: 2px 8px;
|
||
border-radius: 4px;
|
||
text-transform: uppercase;
|
||
}
|
||
|
||
.detail-badge-line {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.detail-action-group {
|
||
display: flex;
|
||
gap: 8px;
|
||
align-items: center;
|
||
}
|
||
|
||
/* Exam Sub-Tabs */
|
||
.exam-subtabs {
|
||
display: flex;
|
||
gap: 8px;
|
||
border-bottom: 1px solid var(--border);
|
||
margin-bottom: 16px;
|
||
}
|
||
|
||
.subtab-btn {
|
||
background: transparent;
|
||
border: none;
|
||
border-bottom: 2px solid transparent;
|
||
color: var(--text-muted);
|
||
padding: 8px 14px;
|
||
font-size: 0.875rem;
|
||
font-weight: 500;
|
||
cursor: pointer;
|
||
transition: all 0.15s ease;
|
||
margin-bottom: -1px;
|
||
}
|
||
|
||
.subtab-btn:hover {
|
||
color: var(--text-main);
|
||
}
|
||
|
||
.subtab-btn.active {
|
||
color: var(--primary);
|
||
border-bottom-color: var(--primary);
|
||
font-weight: 600;
|
||
}
|
||
|
||
/* Exam Score Table */
|
||
.exam-score-table {
|
||
width: 100%;
|
||
border-collapse: collapse;
|
||
font-size: 0.875rem;
|
||
}
|
||
|
||
.exam-score-table th,
|
||
.exam-score-table td {
|
||
padding: 10px 12px;
|
||
border-bottom: 1px solid var(--border);
|
||
}
|
||
|
||
.exam-score-table th {
|
||
background: var(--bg-subtle);
|
||
color: var(--text-muted);
|
||
font-size: 0.75rem;
|
||
font-weight: 600;
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.03em;
|
||
}
|
||
|
||
.exam-score-table tbody tr:hover {
|
||
background: var(--bg-subtle);
|
||
}
|
||
|
||
.table-total-row {
|
||
background: var(--bg-subtle);
|
||
border-top: 2px solid var(--border);
|
||
border-bottom: 2px solid var(--border);
|
||
}
|
||
|
||
.total-net-text {
|
||
font-size: 1rem;
|
||
color: var(--primary);
|
||
}
|
||
|
||
.badge-btn {
|
||
border: none;
|
||
border-radius: 4px;
|
||
font-weight: 600;
|
||
padding: 2px 8px;
|
||
font-size: 0.8rem;
|
||
cursor: pointer;
|
||
transition: transform 0.1s ease, filter 0.1s ease;
|
||
}
|
||
|
||
.badge-btn:hover {
|
||
transform: scale(1.08);
|
||
filter: brightness(0.95);
|
||
}
|
||
|
||
.score-progress-wrapper {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 8px;
|
||
}
|
||
|
||
.score-progress-bar {
|
||
width: 75px;
|
||
height: 6px;
|
||
background: var(--bg-hover);
|
||
border-radius: 9999px;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.score-progress-fill {
|
||
height: 100%;
|
||
border-radius: 9999px;
|
||
}
|
||
|
||
.fill-high {
|
||
background: #10b981;
|
||
}
|
||
|
||
.fill-mid {
|
||
background: #f59e0b;
|
||
}
|
||
|
||
.fill-low {
|
||
background: #ef4444;
|
||
}
|
||
|
||
.score-progress-pct {
|
||
font-size: 0.75rem;
|
||
color: var(--text-muted);
|
||
min-width: 32px;
|
||
text-align: right;
|
||
}
|
||
|
||
/* Topic Weakness View */
|
||
.weakness-loading-state,
|
||
.modal-loading-state {
|
||
padding: 30px;
|
||
text-align: center;
|
||
color: var(--text-muted);
|
||
font-size: 0.875rem;
|
||
}
|
||
|
||
.weakness-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
||
gap: 12px;
|
||
padding-top: 6px;
|
||
}
|
||
|
||
.weakness-card {
|
||
background: var(--bg-card);
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius);
|
||
padding: 12px 14px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 6px;
|
||
}
|
||
|
||
.weakness-card-header {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
gap: 8px;
|
||
}
|
||
|
||
.weakness-subject {
|
||
font-size: 0.75rem;
|
||
font-weight: 700;
|
||
color: var(--primary);
|
||
text-transform: uppercase;
|
||
}
|
||
|
||
.weakness-topic {
|
||
font-size: 0.85rem;
|
||
font-weight: 600;
|
||
color: var(--text-main);
|
||
}
|
||
|
||
.weakness-stats {
|
||
display: flex;
|
||
gap: 12px;
|
||
font-size: 0.75rem;
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
/* ==================================================== */
|
||
/* Mistake Review Modal */
|
||
/* ==================================================== */
|
||
|
||
.modal-overlay {
|
||
position: fixed;
|
||
inset: 0;
|
||
background: rgba(15, 23, 42, 0.65);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
z-index: 1050;
|
||
padding: 16px;
|
||
backdrop-filter: blur(2px);
|
||
}
|
||
|
||
.modal-dialog.modal-xl {
|
||
background: var(--bg-card);
|
||
border: 1px solid var(--border);
|
||
border-radius: 12px;
|
||
width: 100%;
|
||
max-width: 980px;
|
||
max-height: 90vh;
|
||
display: flex;
|
||
flex-direction: column;
|
||
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
|
||
overflow: hidden;
|
||
}
|
||
|
||
.modal-header {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
padding: 14px 20px;
|
||
border-bottom: 1px solid var(--border);
|
||
background: var(--bg-card);
|
||
}
|
||
|
||
.modal-title-group {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 2px;
|
||
}
|
||
|
||
.modal-title {
|
||
font-size: 1.15rem;
|
||
font-weight: 700;
|
||
margin: 0;
|
||
color: var(--text-main);
|
||
}
|
||
|
||
.modal-subtitle {
|
||
font-size: 0.75rem;
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
.modal-close-btn {
|
||
background: transparent;
|
||
border: none;
|
||
font-size: 1.5rem;
|
||
line-height: 1;
|
||
color: var(--text-muted);
|
||
cursor: pointer;
|
||
padding: 4px 8px;
|
||
border-radius: 4px;
|
||
}
|
||
|
||
.modal-close-btn:hover {
|
||
color: var(--text-main);
|
||
background: var(--bg-muted);
|
||
}
|
||
|
||
.modal-filter-bar {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
padding: 10px 20px;
|
||
background: var(--bg-subtle);
|
||
border-bottom: 1px solid var(--border);
|
||
gap: 12px;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.modal-lesson-pills {
|
||
display: flex;
|
||
gap: 6px;
|
||
overflow-x: auto;
|
||
max-width: 65%;
|
||
padding-bottom: 2px;
|
||
}
|
||
|
||
.modal-lesson-btn {
|
||
background: var(--bg-card);
|
||
border: 1px solid var(--border);
|
||
color: var(--text-muted);
|
||
padding: 4px 10px;
|
||
border-radius: var(--radius);
|
||
font-size: 0.775rem;
|
||
font-weight: 500;
|
||
white-space: nowrap;
|
||
cursor: pointer;
|
||
transition: all 0.15s ease;
|
||
}
|
||
|
||
.modal-lesson-btn:hover {
|
||
background: var(--bg-muted);
|
||
color: var(--text-main);
|
||
}
|
||
|
||
.modal-lesson-btn.active {
|
||
background: var(--primary);
|
||
border-color: var(--primary);
|
||
color: white;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.modal-type-toggles {
|
||
display: flex;
|
||
gap: 4px;
|
||
}
|
||
|
||
.modal-type-btn {
|
||
background: var(--bg-card);
|
||
border: 1px solid var(--border);
|
||
color: var(--text-muted);
|
||
padding: 4px 8px;
|
||
border-radius: var(--radius);
|
||
font-size: 0.75rem;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.modal-type-btn.active {
|
||
background: var(--primary);
|
||
color: white;
|
||
border-color: var(--primary);
|
||
font-weight: 600;
|
||
}
|
||
|
||
.modal-body {
|
||
padding: 20px;
|
||
overflow-y: auto;
|
||
flex: 1;
|
||
background: var(--bg-page);
|
||
}
|
||
|
||
.questions-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
|
||
gap: 16px;
|
||
}
|
||
|
||
.question-card {
|
||
background: var(--bg-card);
|
||
border: 1px solid var(--border);
|
||
border-radius: 8px;
|
||
padding: 14px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 10px;
|
||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
|
||
}
|
||
|
||
.question-card-header {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
}
|
||
|
||
.question-no-badge {
|
||
font-size: 0.8rem;
|
||
font-weight: 700;
|
||
color: var(--text-main);
|
||
}
|
||
|
||
.question-subject-badge {
|
||
font-size: 0.75rem;
|
||
color: var(--text-muted);
|
||
font-weight: 500;
|
||
}
|
||
|
||
.question-card-answers {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
font-size: 0.8rem;
|
||
}
|
||
|
||
.answer-pill {
|
||
padding: 2px 8px;
|
||
border-radius: 4px;
|
||
font-weight: 600;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 4px;
|
||
}
|
||
|
||
.answer-correct {
|
||
background: var(--badge-success-bg);
|
||
color: var(--badge-success-text);
|
||
border: 1px solid var(--badge-success-border);
|
||
}
|
||
|
||
.answer-student-wrong {
|
||
background: var(--badge-danger-bg);
|
||
color: var(--badge-danger-text);
|
||
border: 1px solid var(--badge-danger-border);
|
||
}
|
||
|
||
.answer-student-empty {
|
||
background: var(--bg-muted);
|
||
color: var(--text-muted);
|
||
border: 1px solid var(--border);
|
||
}
|
||
|
||
.question-img-wrapper {
|
||
background: #ffffff;
|
||
border: 1px solid var(--border);
|
||
border-radius: 6px;
|
||
padding: 8px;
|
||
text-align: center;
|
||
cursor: zoom-in;
|
||
overflow: hidden;
|
||
display: flex;
|
||
justify-content: center;
|
||
}
|
||
|
||
.question-img {
|
||
max-width: 100%;
|
||
max-height: 480px;
|
||
height: auto;
|
||
object-fit: contain;
|
||
transition: transform 0.15s ease;
|
||
}
|
||
|
||
.question-img-wrapper:hover .question-img {
|
||
transform: scale(1.015);
|
||
}
|
||
|
||
/* Lightbox Overlay */
|
||
.lightbox-overlay {
|
||
position: fixed;
|
||
inset: 0;
|
||
background: rgba(0, 0, 0, 0.85);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
z-index: 1100;
|
||
padding: 20px;
|
||
cursor: zoom-out;
|
||
}
|
||
|
||
.lightbox-content {
|
||
position: relative;
|
||
max-width: 95vw;
|
||
max-height: 95vh;
|
||
}
|
||
|
||
.lightbox-content img {
|
||
max-width: 95vw;
|
||
max-height: 90vh;
|
||
object-fit: contain;
|
||
border-radius: 6px;
|
||
background: white;
|
||
padding: 6px;
|
||
}
|
||
|
||
.lightbox-close-btn {
|
||
position: absolute;
|
||
top: -40px;
|
||
right: 0;
|
||
background: transparent;
|
||
border: none;
|
||
color: white;
|
||
font-size: 2rem;
|
||
cursor: pointer;
|
||
line-height: 1;
|
||
}
|
||
|
||
@media (max-width: 768px) {
|
||
.header-container {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
padding: 8px 14px 6px;
|
||
gap: 8px 0;
|
||
}
|
||
|
||
.brand-group {
|
||
display: contents;
|
||
}
|
||
|
||
.brand-link {
|
||
order: 1;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.user-nav {
|
||
order: 2;
|
||
flex-shrink: 0;
|
||
gap: 6px;
|
||
}
|
||
|
||
.user-id {
|
||
font-size: 0.775rem;
|
||
}
|
||
|
||
.main-nav {
|
||
order: 3;
|
||
width: 100%;
|
||
display: flex;
|
||
gap: 6px;
|
||
overflow-x: auto;
|
||
-webkit-overflow-scrolling: touch;
|
||
scrollbar-width: none;
|
||
padding: 4px 0 4px 0;
|
||
margin: 0 -14px;
|
||
padding-left: 14px;
|
||
padding-right: 14px;
|
||
}
|
||
|
||
.main-nav::-webkit-scrollbar {
|
||
display: none;
|
||
}
|
||
|
||
.nav-item {
|
||
font-size: 0.8rem;
|
||
padding: 5px 12px;
|
||
background: var(--bg-subtle);
|
||
border: 1px solid var(--border);
|
||
}
|
||
|
||
.nav-item.active {
|
||
background: var(--primary);
|
||
border-color: var(--primary);
|
||
color: white;
|
||
}
|
||
|
||
.exam-cards-strip {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
.questions-grid {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
.modal-filter-bar {
|
||
flex-direction: column;
|
||
align-items: stretch;
|
||
}
|
||
.modal-lesson-pills {
|
||
max-width: 100%;
|
||
}
|
||
}
|
||
|
||
/* ==================================================== */
|
||
/* PWA & Offline Indicator Banner */
|
||
/* ==================================================== */
|
||
|
||
.offline-banner {
|
||
width: 100%;
|
||
padding: 6px 16px;
|
||
font-size: 0.8rem;
|
||
font-weight: 500;
|
||
text-align: center;
|
||
position: sticky;
|
||
top: 0;
|
||
z-index: 200;
|
||
transition: all 0.25s ease-in-out;
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
}
|
||
|
||
.offline-banner.active {
|
||
background: var(--badge-warning-bg);
|
||
color: var(--badge-warning-text);
|
||
border-bottom: 1px solid var(--badge-warning-border);
|
||
}
|
||
|
||
.offline-banner.online {
|
||
background: var(--badge-success-bg);
|
||
color: var(--badge-success-text);
|
||
border-bottom: 1px solid var(--badge-success-border);
|
||
}
|
||
|
||
.offline-banner.hidden {
|
||
display: none !important;
|
||
}
|
||
|
||
.offline-banner-content {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
}
|
||
|
||
.offline-badge-pill {
|
||
background: #fde047;
|
||
color: #713f12;
|
||
font-size: 0.7rem;
|
||
font-weight: 700;
|
||
padding: 1px 7px;
|
||
border-radius: 9999px;
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.03em;
|
||
}
|
||
|
||
.online-badge-pill {
|
||
background: #86efac;
|
||
color: #14532d;
|
||
font-size: 0.7rem;
|
||
font-weight: 700;
|
||
padding: 1px 7px;
|
||
border-radius: 9999px;
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.03em;
|
||
}
|
||
|
||
.offline-banner-text {
|
||
font-size: 0.825rem;
|
||
}
|
||
|
||
/* Offline state modifications on buttons and checkboxes */
|
||
.btn-offline-disabled {
|
||
opacity: 0.55 !important;
|
||
cursor: not-allowed !important;
|
||
pointer-events: none;
|
||
filter: grayscale(40%);
|
||
}
|
||
|
||
.assignment-toggle:disabled {
|
||
cursor: not-allowed;
|
||
opacity: 0.6;
|
||
}
|