Student_Record / static /css /style.css
ministerchief's picture
Upload 12 files
1c9424e verified
Raw
History Blame Contribute Delete
19.5 kB
/* ═══════════════════════════════════════════
StudentMS β€” style.css
Font: Plus Jakarta Sans + JetBrains Mono
Theme: Deep navy with amber accent
═══════════════════════════════════════════ */
/* ── VARIABLES ───────────────────────────── */
:root {
--navy: #0f172a;
--navy-2: #1e293b;
--navy-3: #334155;
--slate: #64748b;
--border: #e2e8f0;
--surface: #f8fafc;
--white: #ffffff;
--amber: #f59e0b;
--amber-light: #fef3c7;
--amber-dark: #d97706;
--blue: #3b82f6;
--blue-light: #dbeafe;
--green: #10b981;
--green-light: #d1fae5;
--pink: #ec4899;
--pink-light: #fce7f3;
--orange: #f97316;
--orange-light:#ffedd5;
--red: #ef4444;
--red-light: #fee2e2;
--radius: 12px;
--radius-sm: 8px;
--shadow-sm: 0 1px 3px rgba(0,0,0,.08);
--shadow: 0 4px 16px rgba(0,0,0,.10);
--shadow-md: 0 8px 32px rgba(0,0,0,.14);
--sidebar-w: 240px;
--navbar-h: 64px;
--font: 'Plus Jakarta Sans', sans-serif;
--mono: 'JetBrains Mono', monospace;
}
/* ── RESET ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
font-family: var(--font);
background: var(--surface);
color: var(--navy);
min-height: 100vh;
line-height: 1.6;
font-size: 15px;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
/* ── NAVBAR ──────────────────────────────── */
.navbar {
position: sticky; top: 0; z-index: 100;
height: var(--navbar-h);
background: var(--navy);
display: flex; align-items: center;
padding: 0 24px;
gap: 24px;
box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.nav-brand {
display: flex; align-items: center; gap: 10px;
color: var(--white);
font-size: 1.2rem;
font-weight: 800;
letter-spacing: -0.5px;
min-width: 160px;
}
.nav-logo {
width: 36px; height: 36px;
background: var(--amber);
border-radius: 8px;
display: grid; place-items: center;
color: var(--navy);
font-size: 1rem;
}
.nav-links {
display: flex; align-items: center;
list-style: none;
gap: 4px;
flex: 1;
}
.nav-links a {
display: flex; align-items: center; gap: 7px;
padding: 8px 14px;
border-radius: 8px;
color: rgba(255,255,255,.70);
font-size: .875rem;
font-weight: 500;
transition: all .2s;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,.08); text-decoration: none; }
.nav-links a.active { color: var(--amber); background: rgba(245,158,11,.12); }
.nav-divider { flex: 1; }
.btn-logout {
display: flex; align-items: center; gap: 7px;
padding: 8px 14px;
border-radius: 8px;
color: rgba(255,255,255,.7) !important;
font-size: .875rem;
font-weight: 500;
transition: all .2s;
}
.btn-logout:hover {
color: var(--white) !important;
background: rgba(239,68,68,.18) !important;
text-decoration: none;
}
.nav-user {
display: flex; align-items: center; gap: 8px;
color: rgba(255,255,255,.65);
font-size: .85rem;
padding-left: 16px;
border-left: 1px solid rgba(255,255,255,.12);
}
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.2rem; cursor: pointer; }
/* ── MAIN CONTENT ────────────────────────── */
.main-content {
max-width: 1280px;
margin: 0 auto;
padding: 32px 24px;
}
/* ── PAGE HEADER ─────────────────────────── */
.page-header {
display: flex; align-items: flex-start;
justify-content: space-between;
margin-bottom: 28px;
gap: 16px;
flex-wrap: wrap;
}
.page-title {
font-size: 1.75rem;
font-weight: 800;
color: var(--navy);
line-height: 1.2;
}
.page-sub {
font-size: .9rem;
color: var(--slate);
margin-top: 4px;
}
/* ── CARDS ───────────────────────────────── */
.card {
background: var(--white);
border-radius: var(--radius);
border: 1px solid var(--border);
box-shadow: var(--shadow-sm);
overflow: hidden;
}
.card-header {
display: flex; align-items: center; justify-content: space-between;
padding: 20px 24px;
border-bottom: 1px solid var(--border);
gap: 12px;
}
.card-header h3 {
font-size: 1rem;
font-weight: 700;
color: var(--navy);
display: flex; align-items: center; gap: 8px;
}
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
/* ── STAT CARDS ──────────────────────────── */
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 16px;
}
.stat-card {
border-radius: var(--radius);
padding: 24px;
display: flex; align-items: center; gap: 18px;
box-shadow: var(--shadow-sm);
border: 1px solid transparent;
transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-icon {
width: 54px; height: 54px;
border-radius: 12px;
display: grid; place-items: center;
font-size: 1.4rem;
flex-shrink: 0;
}
.stat-number { display: block; font-size: 2rem; font-weight: 800; line-height: 1; }
.stat-label { display: block; font-size: .8rem; font-weight: 500; opacity: .75; margin-top: 4px; }
.stat-blue { background: var(--blue-light); color: #1d4ed8; } .stat-blue .stat-icon { background: #3b82f6; color: #fff; }
.stat-green { background: var(--green-light); color: #065f46; } .stat-green .stat-icon { background: #10b981; color: #fff; }
.stat-pink { background: var(--pink-light); color: #9d174d; } .stat-pink .stat-icon { background: #ec4899; color: #fff; }
.stat-orange { background: var(--orange-light); color: #c2410c; } .stat-orange .stat-icon { background: #f97316; color: #fff; }
/* ── QUICK LINKS ─────────────────────────── */
.quick-links {
display: flex; flex-wrap: wrap; gap: 12px;
}
.qlink {
display: flex; align-items: center; gap: 10px;
padding: 14px 20px;
border-radius: var(--radius);
background: var(--white);
border: 1px solid var(--border);
color: var(--navy);
font-weight: 600;
font-size: .9rem;
transition: all .2s;
box-shadow: var(--shadow-sm);
}
.qlink i { font-size: 1.1rem; color: var(--blue); }
.qlink:hover { background: var(--navy); color: var(--white); border-color: var(--navy); transform: translateY(-1px); box-shadow: var(--shadow); text-decoration: none; }
.qlink:hover i { color: var(--amber); }
.qlink-danger:hover { background: var(--red); border-color: var(--red); }
.qlink-danger:hover i { color: var(--white); }
/* ── TABLE ───────────────────────────────── */
.table-wrap { overflow-x: auto; }
.data-table {
width: 100%;
border-collapse: collapse;
font-size: .875rem;
}
.data-table thead tr {
background: var(--navy);
color: var(--white);
}
.data-table th {
padding: 13px 16px;
text-align: left;
font-weight: 600;
font-size: .8rem;
letter-spacing: .04em;
text-transform: uppercase;
white-space: nowrap;
}
.data-table td {
padding: 13px 16px;
border-bottom: 1px solid var(--border);
color: var(--navy);
white-space: nowrap;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: #f1f5f9; }
.fw-600 { font-weight: 600; }
.text-small { font-size: .8rem; color: var(--slate); }
/* ── BADGES ──────────────────────────────── */
.badge {
display: inline-flex; align-items: center;
padding: 3px 10px;
border-radius: 99px;
font-size: .78rem;
font-weight: 600;
}
.badge-id { background: var(--navy); color: var(--amber); font-family: var(--mono); }
.badge-blue { background: var(--blue-light); color: #1d4ed8; }
.badge-pink { background: var(--pink-light); color: #9d174d; }
.badge-gray { background: #f1f5f9; color: var(--slate); }
/* ── ACTION BUTTONS ──────────────────────── */
.actions { display: flex; gap: 6px; }
.btn-icon {
width: 32px; height: 32px;
border-radius: 8px;
border: none;
cursor: pointer;
display: grid; place-items: center;
font-size: .85rem;
transition: all .2s;
text-decoration: none;
}
.btn-view { background: var(--blue-light); color: var(--blue); }
.btn-edit { background: var(--amber-light); color: var(--amber-dark); }
.btn-delete { background: var(--red-light); color: var(--red); }
.btn-icon:hover { filter: brightness(.9); transform: scale(1.05); }
/* ── BUTTONS ─────────────────────────────── */
.btn-primary, .btn-outline, .btn-ghost, .btn-danger {
display: inline-flex; align-items: center; gap: 8px;
padding: 10px 20px;
border-radius: var(--radius-sm);
font-size: .9rem;
font-weight: 600;
font-family: var(--font);
cursor: pointer;
transition: all .2s;
border: 2px solid transparent;
text-decoration: none;
}
.btn-primary { background: var(--amber); color: var(--navy); border-color: var(--amber); }
.btn-primary:hover { background: var(--amber-dark); border-color: var(--amber-dark); color: var(--white); text-decoration: none; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-outline:hover { background: var(--navy); color: var(--white); border-color: var(--navy); text-decoration: none; }
.btn-ghost { background: var(--surface); color: var(--slate); border-color: var(--border); }
.btn-ghost:hover { background: var(--border); text-decoration: none; }
.btn-danger { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-danger:hover { background: #dc2626; text-decoration: none; }
.btn-full { width: 100%; justify-content: center; padding: 13px; font-size: 1rem; }
/* ── EMPTY STATE ─────────────────────────── */
.empty-state {
text-align: center;
padding: 56px 24px;
color: var(--slate);
}
.empty-state i { font-size: 3rem; opacity: .3; display: block; margin-bottom: 16px; }
.empty-state p { font-size: 1rem; }
/* ── SEARCH BAR ──────────────────────────── */
.search-bar { padding: 16px 20px; }
.search-row {
display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.search-input-wrap {
position: relative; flex: 1; min-width: 200px;
}
.search-icon {
position: absolute; left: 14px; top: 50%;
transform: translateY(-50%);
color: var(--slate); pointer-events: none;
}
.search-input-wrap input {
width: 100%;
padding: 10px 14px 10px 40px;
border: 1px solid var(--border);
border-radius: var(--radius-sm);
font-size: .9rem;
font-family: var(--font);
outline: none;
transition: border-color .2s;
}
.search-input-wrap input:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245,158,11,.15); }
.clear-search {
position: absolute; right: 12px; top: 50%;
transform: translateY(-50%);
background: none; border: none; color: var(--slate);
cursor: pointer; font-size: .9rem;
}
.search-col {
padding: 10px 14px;
border: 1px solid var(--border);
border-radius: var(--radius-sm);
font-family: var(--font);
font-size: .9rem;
background: var(--white);
color: var(--navy);
outline: none;
cursor: pointer;
}
/* ── FLASH MESSAGES ──────────────────────── */
.flash-container {
position: fixed; top: 72px; right: 20px;
z-index: 200;
display: flex; flex-direction: column; gap: 8px;
max-width: 380px;
}
.alert {
display: flex; align-items: flex-start; gap: 10px;
padding: 14px 16px;
border-radius: var(--radius-sm);
font-size: .9rem;
font-weight: 500;
box-shadow: var(--shadow-md);
animation: slideIn .3s ease;
}
@keyframes slideIn {
from { opacity: 0; transform: translateX(40px); }
to { opacity: 1; transform: translateX(0); }
}
.alert-success { background: var(--green-light); color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger { background: var(--red-light); color: #991b1b; border: 1px solid #fca5a5; }
.alert-warning { background: var(--amber-light); color: #92400e; border: 1px solid #fcd34d; }
.alert-info { background: var(--blue-light); color: #1e40af; border: 1px solid #93c5fd; }
.alert i { margin-top: 2px; flex-shrink: 0; }
.alert-close {
margin-left: auto; background: none; border: none;
font-size: 1.1rem; cursor: pointer; opacity: .6; padding: 0 0 0 8px;
}
.alert-close:hover { opacity: 1; }
/* ── FORMS ───────────────────────────────── */
.form-section {
padding: 24px;
border-bottom: 1px solid var(--border);
}
.form-section:last-of-type { border-bottom: none; }
.form-section-title {
font-size: .85rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: .06em;
color: var(--slate);
margin-bottom: 20px;
display: flex; align-items: center; gap: 8px;
}
.form-section-title i { color: var(--amber); }
.form-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
gap: 18px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group-full { grid-column: 1 / -1; }
.form-group label {
font-size: .85rem;
font-weight: 600;
color: var(--navy-3);
}
.req { color: var(--red); margin-left: 2px; }
.form-group input,
.form-group select,
.form-group textarea {
padding: 10px 14px;
border: 1.5px solid var(--border);
border-radius: var(--radius-sm);
font-size: .9rem;
font-family: var(--font);
color: var(--navy);
background: var(--white);
outline: none;
transition: all .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
border-color: var(--amber);
box-shadow: 0 0 0 3px rgba(245,158,11,.15);
}
.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
border-color: var(--red);
box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.field-error { font-size: .8rem; color: var(--red); min-height: 18px; }
.form-actions {
display: flex; gap: 12px; align-items: center;
padding: 20px 24px;
background: var(--surface);
border-top: 1px solid var(--border);
flex-wrap: wrap;
}
/* ── LOGIN PAGE ──────────────────────────── */
.login-wrapper {
min-height: 100vh;
display: flex;
}
.login-panel-left {
flex: 1;
background: var(--navy);
display: flex; flex-direction: column;
justify-content: center; align-items: flex-start;
padding: 60px;
gap: 40px;
}
.login-brand { color: var(--white); }
.login-icon {
width: 64px; height: 64px;
background: var(--amber);
border-radius: 16px;
display: grid; place-items: center;
font-size: 1.8rem; color: var(--navy);
margin-bottom: 20px;
}
.login-brand h1 {
font-size: 2.5rem; font-weight: 800;
letter-spacing: -1px;
background: linear-gradient(135deg, #fff 0%, var(--amber) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.login-brand p { color: rgba(255,255,255,.6); margin-top: 6px; }
.login-features { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.login-features li {
display: flex; align-items: center; gap: 12px;
color: rgba(255,255,255,.8); font-size: .95rem;
}
.login-features i { color: var(--amber); }
.login-panel-right {
width: 480px;
display: flex; align-items: center; justify-content: center;
background: var(--surface);
padding: 40px;
}
.login-card {
width: 100%;
max-width: 400px;
background: var(--white);
border-radius: 20px;
padding: 40px;
box-shadow: var(--shadow-md);
border: 1px solid var(--border);
}
.login-header { margin-bottom: 32px; text-align: center; }
.login-header h2 { font-size: 1.75rem; font-weight: 800; color: var(--navy); }
.login-header p { color: var(--slate); font-size: .9rem; margin-top: 6px; }
.login-card .form-group { margin-bottom: 20px; }
.login-card .form-group label {
display: flex; align-items: center; gap: 7px;
font-size: .875rem; font-weight: 600; color: var(--navy-3);
margin-bottom: 8px;
}
.input-icon-wrap { position: relative; }
.input-icon-wrap input { width: 100%; padding-right: 44px; }
.toggle-pw {
position: absolute; right: 12px; top: 50%;
transform: translateY(-50%);
background: none; border: none;
color: var(--slate); cursor: pointer;
}
.login-hint {
text-align: center;
font-size: .82rem;
color: var(--slate);
margin-top: 20px;
}
.login-hint code {
font-family: var(--mono);
background: var(--surface);
padding: 2px 6px; border-radius: 4px;
font-size: .82rem;
color: var(--amber-dark);
}
/* ── MODAL ───────────────────────────────── */
.modal-backdrop {
position: fixed; inset: 0;
background: rgba(0,0,0,.45);
display: flex; align-items: center; justify-content: center;
z-index: 500;
animation: fadeBg .2s ease;
}
@keyframes fadeBg { from { opacity: 0; } to { opacity: 1; } }
.modal {
background: var(--white);
border-radius: 20px;
padding: 36px;
width: 90%; max-width: 400px;
text-align: center;
box-shadow: var(--shadow-md);
animation: popIn .25s ease;
}
@keyframes popIn {
from { opacity: 0; transform: scale(.9); }
to { opacity: 1; transform: scale(1); }
}
.modal-icon {
width: 60px; height: 60px;
border-radius: 50%;
display: grid; place-items: center;
font-size: 1.5rem;
margin: 0 auto 16px;
}
.modal-icon.danger { background: var(--red-light); color: var(--red); }
.modal h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 10px; }
.modal p { color: var(--slate); font-size: .9rem; line-height: 1.6; }
.modal-actions { display: flex; gap: 10px; justify-content: center; margin-top: 24px; }
/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 900px) {
.login-panel-left { display: none; }
.login-panel-right { width: 100%; }
}
@media (max-width: 768px) {
.nav-links { display: none; flex-direction: column; position: absolute; top: var(--navbar-h); left: 0; right: 0; background: var(--navy); padding: 12px; gap: 4px; }
.nav-links.open { display: flex; }
.nav-toggle { display: block; }
.navbar { position: relative; flex-wrap: wrap; }
.stats-grid { grid-template-columns: repeat(2, 1fr); }
.form-grid { grid-template-columns: 1fr; }
.main-content { padding: 20px 16px; }
.page-header { flex-direction: column; align-items: flex-start; }
.flash-container { right: 10px; left: 10px; max-width: none; }
.quick-links { flex-direction: column; }
}
@media (max-width: 480px) {
.stats-grid { grid-template-columns: 1fr; }
.search-row { flex-direction: column; align-items: stretch; }
.login-card { padding: 28px 20px; }
}