shcool / static /css /main.css
CORVO-AI's picture
Upload 111 files
b7f55e1 verified
Raw
History Blame Contribute Delete
18.1 kB
/* ── Google/Meta Soft Clean Design System ── */
@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');
:root {
--primary: #4f46e5;
--primary-light: #818cf8;
--primary-soft: #eef2ff;
--secondary: #06b6d4;
--secondary-soft: #ecfeff;
--success: #10b981;
--success-soft: #d1fae5;
--warning: #f59e0b;
--warning-soft: #fef3c7;
--danger: #ef4444;
--danger-soft: #fee2e2;
--surface: #ffffff;
--surface-2: #f8fafc;
--surface-3: #f1f5f9;
--border: #e2e8f0;
--border-light: #f1f5f9;
--text-primary: #0f172a;
--text-secondary: #475569;
--text-muted: #94a3b8;
--sidebar-width: 260px;
--topbar-height: 64px;
--radius-sm: 8px;
--radius-md: 12px;
--radius-lg: 16px;
--radius-xl: 24px;
--shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
--shadow-md: 0 4px 16px rgba(0,0,0,.08);
--shadow-lg: 0 8px 32px rgba(0,0,0,.10);
--shadow-glow: 0 0 0 3px rgba(79,70,229,.15);
--transition: .2s cubic-bezier(.4,0,.2,1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
font-family: 'Inter', 'Google Sans', system-ui, sans-serif;
background: var(--surface-2);
color: var(--text-primary);
line-height: 1.6;
overflow-x: hidden;
}
/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
/* ── Layout ── */
.app-layout { display: flex; min-height: 100vh; }
/* ── Sidebar ── */
.sidebar {
width: var(--sidebar-width);
background: var(--surface);
border-right: 1px solid var(--border-light);
display: flex;
flex-direction: column;
position: fixed;
top: 0; left: 0; bottom: 0;
z-index: 100;
transition: transform var(--transition);
overflow-y: auto;
overflow-x: hidden;
}
.sidebar-brand {
display: flex;
align-items: center;
gap: 12px;
padding: 20px 20px 16px;
border-bottom: 1px solid var(--border-light);
text-decoration: none;
}
.sidebar-brand-icon {
width: 40px; height: 40px;
background: linear-gradient(135deg, var(--primary), var(--primary-light));
border-radius: var(--radius-md);
display: flex; align-items: center; justify-content: center;
color: white;
font-size: 18px;
flex-shrink: 0;
box-shadow: 0 4px 12px rgba(79,70,229,.3);
}
.sidebar-brand-text { line-height: 1.2; }
.sidebar-brand-name { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.sidebar-brand-sub { font-size: 11px; color: var(--text-muted); font-weight: 400; }
.sidebar-nav { padding: 12px 12px; flex: 1; }
.nav-section-label {
font-size: 10px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: .08em;
color: var(--text-muted);
padding: 12px 8px 6px;
}
.nav-item { margin-bottom: 2px; }
.nav-link {
display: flex;
align-items: center;
gap: 10px;
padding: 9px 12px;
border-radius: var(--radius-sm);
color: var(--text-secondary);
text-decoration: none;
font-size: 14px;
font-weight: 500;
transition: all var(--transition);
position: relative;
}
.nav-link:hover {
background: var(--surface-3);
color: var(--text-primary);
}
.nav-link.active {
background: var(--primary-soft);
color: var(--primary);
}
.nav-link.active .nav-icon { color: var(--primary); }
.nav-icon {
width: 18px; height: 18px;
flex-shrink: 0;
opacity: .7;
}
.nav-link.active .nav-icon { opacity: 1; }
.nav-badge {
margin-left: auto;
background: var(--primary);
color: white;
font-size: 10px;
font-weight: 600;
padding: 2px 7px;
border-radius: 99px;
min-width: 20px;
text-align: center;
}
.sidebar-footer {
padding: 12px;
border-top: 1px solid var(--border-light);
}
/* ── Main Content ── */
.main-content {
margin-left: var(--sidebar-width);
flex: 1;
display: flex;
flex-direction: column;
min-height: 100vh;
}
/* ── Topbar ── */
.topbar {
height: var(--topbar-height);
background: var(--surface);
border-bottom: 1px solid var(--border-light);
display: flex;
align-items: center;
padding: 0 24px;
gap: 16px;
position: sticky;
top: 0;
z-index: 50;
}
.topbar-title {
font-size: 18px;
font-weight: 600;
color: var(--text-primary);
flex: 1;
}
.topbar-search {
display: flex;
align-items: center;
gap: 8px;
background: var(--surface-2);
border: 1px solid var(--border);
border-radius: 99px;
padding: 7px 16px;
width: 240px;
transition: all var(--transition);
}
.topbar-search:focus-within {
border-color: var(--primary-light);
box-shadow: var(--shadow-glow);
background: var(--surface);
}
.topbar-search input {
border: none;
background: transparent;
outline: none;
font-size: 14px;
color: var(--text-primary);
width: 100%;
}
.topbar-search input::placeholder { color: var(--text-muted); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
width: 36px; height: 36px;
border-radius: var(--radius-sm);
border: none;
background: transparent;
cursor: pointer;
display: flex; align-items: center; justify-content: center;
color: var(--text-secondary);
transition: all var(--transition);
position: relative;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text-primary); }
.avatar {
width: 36px; height: 36px;
border-radius: 50%;
background: linear-gradient(135deg, var(--primary), var(--secondary));
display: flex; align-items: center; justify-content: center;
color: white;
font-size: 13px;
font-weight: 600;
cursor: pointer;
flex-shrink: 0;
}
/* ── Page Content ── */
.page-content { padding: 28px 28px; flex: 1; }
.page-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
margin-bottom: 28px;
gap: 16px;
}
.page-header-left {}
.page-title { font-size: 24px; font-weight: 700; color: var(--text-primary); line-height: 1.2; }
.page-subtitle { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
/* ── Cards ── */
.card {
background: var(--surface);
border: 1px solid var(--border-light);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-sm);
overflow: hidden;
transition: box-shadow var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-header {
padding: 18px 20px 14px;
border-bottom: 1px solid var(--border-light);
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.card-title { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.card-body { padding: 20px; }
.card-footer { padding: 14px 20px; border-top: 1px solid var(--border-light); background: var(--surface-2); }
/* ── Stat Cards ── */
.stat-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 16px;
margin-bottom: 28px;
}
.stat-card {
background: var(--surface);
border: 1px solid var(--border-light);
border-radius: var(--radius-lg);
padding: 20px;
display: flex;
align-items: flex-start;
gap: 16px;
box-shadow: var(--shadow-sm);
transition: all var(--transition);
cursor: default;
overflow: hidden;
position: relative;
}
.stat-card::before {
content: '';
position: absolute;
top: 0; left: 0; right: 0;
height: 3px;
background: var(--stat-color, var(--primary));
border-radius: 99px 99px 0 0;
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-icon {
width: 48px; height: 48px;
border-radius: var(--radius-md);
display: flex; align-items: center; justify-content: center;
font-size: 22px;
flex-shrink: 0;
background: var(--stat-soft, var(--primary-soft));
color: var(--stat-color, var(--primary));
}
.stat-info { flex: 1; min-width: 0; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--text-primary); line-height: 1; }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; font-weight: 500; }
.stat-change { font-size: 12px; margin-top: 6px; font-weight: 500; }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }
/* ── Buttons ── */
.btn {
display: inline-flex;
align-items: center;
gap: 7px;
padding: 9px 18px;
border-radius: var(--radius-sm);
font-size: 14px;
font-weight: 500;
border: none;
cursor: pointer;
text-decoration: none;
transition: all var(--transition);
white-space: nowrap;
line-height: 1;
}
.btn-primary {
background: var(--primary);
color: white;
box-shadow: 0 2px 8px rgba(79,70,229,.3);
}
.btn-primary:hover { background: #4338ca; box-shadow: 0 4px 16px rgba(79,70,229,.4); transform: translateY(-1px); color: white; }
.btn-secondary { background: var(--surface-3); color: var(--text-secondary); }
.btn-secondary:hover { background: var(--border); color: var(--text-primary); }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #059669; color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #dc2626; color: white; }
.btn-outline {
background: transparent;
border: 1px solid var(--border);
color: var(--text-secondary);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }
.btn-icon { padding: 9px; }
/* ── Tables ── */
.table-wrapper {
overflow-x: auto;
border-radius: var(--radius-lg);
border: 1px solid var(--border-light);
background: var(--surface);
}
table { width: 100%; border-collapse: collapse; }
thead tr { background: var(--surface-2); }
th {
padding: 12px 16px;
text-align: left;
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: .05em;
color: var(--text-muted);
border-bottom: 1px solid var(--border-light);
white-space: nowrap;
}
td {
padding: 13px 16px;
font-size: 14px;
color: var(--text-primary);
border-bottom: 1px solid var(--border-light);
vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tbody tr { transition: background var(--transition); }
tbody tr:hover { background: var(--surface-2); }
/* ── Badges ── */
.badge {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 3px 10px;
border-radius: 99px;
font-size: 12px;
font-weight: 500;
}
.badge-primary { background: var(--primary-soft); color: var(--primary); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-secondary { background: var(--surface-3); color: var(--text-secondary); }
.badge-cyan { background: var(--secondary-soft); color: var(--secondary); }
/* ── Forms ── */
.form-group { margin-bottom: 18px; }
.form-label {
display: block;
font-size: 13px;
font-weight: 500;
color: var(--text-secondary);
margin-bottom: 6px;
}
.form-control {
width: 100%;
padding: 10px 14px;
border: 1.5px solid var(--border);
border-radius: var(--radius-sm);
font-size: 14px;
color: var(--text-primary);
background: var(--surface);
transition: all var(--transition);
outline: none;
font-family: inherit;
}
.form-control:focus {
border-color: var(--primary-light);
box-shadow: var(--shadow-glow);
}
.form-control::placeholder { color: var(--text-muted); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
/* ── Alerts / Messages ── */
.alert {
display: flex;
align-items: flex-start;
gap: 10px;
padding: 12px 16px;
border-radius: var(--radius-md);
font-size: 14px;
margin-bottom: 16px;
animation: slideDown .3s ease;
}
.alert-success { background: var(--success-soft); color: #065f46; border: 1px solid #a7f3d0; }
.alert-error, .alert-danger { background: var(--danger-soft); color: #991b1b; border: 1px solid #fca5a5; }
.alert-warning { background: var(--warning-soft); color: #92400e; border: 1px solid #fcd34d; }
.alert-info { background: var(--primary-soft); color: #3730a3; border: 1px solid #c7d2fe; }
@keyframes slideDown {
from { opacity: 0; transform: translateY(-8px); }
to { opacity: 1; transform: translateY(0); }
}
/* ── Avatar Stack ── */
.avatar-sm {
width: 32px; height: 32px;
border-radius: 50%;
background: linear-gradient(135deg, var(--primary), var(--secondary));
display: inline-flex; align-items: center; justify-content: center;
color: white; font-size: 12px; font-weight: 600;
flex-shrink: 0;
}
/* ── Empty State ── */
.empty-state {
text-align: center;
padding: 60px 20px;
color: var(--text-muted);
}
.empty-state-icon { font-size: 48px; margin-bottom: 16px; opacity: .4; }
.empty-state-title { font-size: 16px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.empty-state-text { font-size: 14px; }
/* ── Search Bar ── */
.search-bar {
display: flex;
align-items: center;
gap: 8px;
background: var(--surface-2);
border: 1.5px solid var(--border);
border-radius: var(--radius-sm);
padding: 9px 14px;
transition: all var(--transition);
}
.search-bar:focus-within {
border-color: var(--primary-light);
box-shadow: var(--shadow-glow);
background: var(--surface);
}
.search-bar input { border: none; background: transparent; outline: none; font-size: 14px; color: var(--text-primary); flex: 1; }
.search-bar input::placeholder { color: var(--text-muted); }
/* ── Progress Bar ── */
.progress { height: 6px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 99px; background: var(--primary); transition: width .6s cubic-bezier(.4,0,.2,1); }
.progress-bar.success { background: var(--success); }
.progress-bar.warning { background: var(--warning); }
.progress-bar.danger { background: var(--danger); }
/* ── Notice Priority Colors ── */
.priority-low { --stat-color: var(--success); }
.priority-medium { --stat-color: var(--warning); }
.priority-high { --stat-color: var(--danger); }
.priority-urgent { --stat-color: #7c3aed; }
/* ── Grade Letter Colors ── */
.grade-a-plus, .grade-a { color: var(--success); font-weight: 700; }
.grade-b { color: var(--primary); font-weight: 700; }
.grade-c { color: var(--warning); font-weight: 700; }
.grade-d { color: #f97316; font-weight: 700; }
.grade-f { color: var(--danger); font-weight: 700; }
/* ── Attendance Status ── */
.status-present { color: var(--success); }
.status-absent { color: var(--danger); }
.status-late { color: var(--warning); }
.status-excused { color: var(--secondary); }
/* ── Login Page ── */
.login-page {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
padding: 20px;
}
.login-card {
background: var(--surface);
border-radius: var(--radius-xl);
padding: 40px;
width: 100%;
max-width: 420px;
box-shadow: var(--shadow-lg);
}
.login-logo {
width: 56px; height: 56px;
background: linear-gradient(135deg, var(--primary), var(--primary-light));
border-radius: var(--radius-lg);
display: flex; align-items: center; justify-content: center;
font-size: 26px;
margin: 0 auto 20px;
box-shadow: 0 8px 24px rgba(79,70,229,.35);
}
.login-title { text-align: center; font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.login-subtitle { text-align: center; font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }
/* ── Responsive ── */
@media (max-width: 768px) {
.sidebar { transform: translateX(-100%); }
.sidebar.open { transform: translateX(0); }
.main-content { margin-left: 0; }
.form-grid, .form-grid-3 { grid-template-columns: 1fr; }
.stat-grid { grid-template-columns: 1fr 1fr; }
.page-content { padding: 16px; }
}
/* ── GSAP animation helpers ── */
.gsap-fade { opacity: 0; }
.gsap-slide-up { opacity: 0; transform: translateY(30px); }
.gsap-slide-left { opacity: 0; transform: translateX(-30px); }
.gsap-scale { opacity: 0; transform: scale(.92); }
/* ── Misc Utilities ── */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-betw
Continuing seamlessly from where the CSS was cut off, then completing all remaining templates, JS, Docker files, and the full project.
een; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.text-muted { color: var(--text-muted); }
.text-right { text-align: right; }
.font-600 { font-weight: 600; }
.font-700 { font-weight: 700; }
.w-full { width: 100%; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }