Repository navigation
Expand file tree
/
Copy pathindex.css
More file actions
55 lines (45 loc) · 2.91 KB
/
Copy pathindex.css
File metadata and controls
55 lines (45 loc) · 2.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/* ===== Global Styles ===== */
* { box-sizing: border-box; font-family: 'Segoe UI', sans-serif; margin: 0; padding: 0; }
body { min-height: 100vh; background: #f0f4f8; display: flex; justify-content: center; padding: 20px; }
.container { max-width: 900px; width: 100%; }
/* ===== Header ===== */
header { text-align: center; margin-bottom: 25px; color: #2c3e50; }
header h1 { font-size: 28px; margin-bottom: 5px; }
header p { font-size: 16px; color: #555; }
/* ===== Card ===== */
.card { background: #fff; border-radius: 20px; padding: 25px; margin-bottom: 25px; box-shadow: 0 8px 30px rgba(0,0,0,0.05); }
.card h2 { margin-bottom: 15px; font-size: 20px; color: #2c3e50; }
/* ===== Form ===== */
.form-group { margin-bottom: 15px; }
label { display: block; font-weight: 600; margin-bottom: 5px; }
input { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid #ccc; outline: none; font-size: 15px; }
input:focus { border-color: #3498db; box-shadow: 0 0 10px rgba(52,152,219,0.3); }
.error { color: #e74c3c; font-size: 13px; margin-top: 3px; display: block; }
.btn { width: 100%; padding: 12px; margin-top: 12px; border-radius: 10px; border: none; font-weight: bold; cursor: pointer; font-size: 15px; transition: background 0.3s, transform 0.2s; }
.btn-primary { background: #3498db; color: white; }
.btn-primary:hover { background: #2980b9; transform: translateY(-2px); }
/* ===== Table ===== */
table { width: 100%; border-collapse: collapse; text-align: center; border-radius: 15px; overflow: hidden; background: #fff; box-shadow: inset 0 0 10px rgba(0,0,0,0.03); }
th, td { padding: 12px; border-bottom: 1px solid rgba(0,0,0,0.1); }
th { background: #f8f9fa; font-weight: 600; }
tr:nth-child(even) { background: rgba(0,0,0,0.03); }
tr:hover { background: rgba(52,152,219,0.1); transform: scale(1.01); transition: transform 0.2s, background 0.2s; }
/* ===== Delete Button ===== */
.delete-btn { background: #e74c3c; color: white; border: none; padding: 6px 12px; border-radius: 8px; cursor: pointer; transition: background 0.2s, transform 0.2s; }
.delete-btn:hover { background: #c0392b; transform: translateY(-2px); }
/* ===== Statistics Cards ===== */
.stats-container { display: flex; justify-content: space-between; flex-wrap: wrap; margin-bottom: 25px; }
.stat-card { background: #fff; flex: 1 1 45%; margin: 10px; border-radius: 15px; padding: 20px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); text-align: center; }
.stat-card h3 { font-size: 16px; color: #555; margin-bottom: 10px; }
.stat-card p { font-size: 24px; font-weight: bold; color: #2c3e50; }
/* ===== Grade Highlights ===== */
.above-avg { color: #2ecc71; font-weight: bold; }
.below-avg { color: #e74c3c; font-weight: bold; }
/* ===== Empty Table Message ===== */
.empty { color: #555; padding: 30px; font-style: italic; }
/* ===== Responsive ===== */
@media (max-width: 768px) {
.stat-card { flex: 1 1 100%; }
input, button { font-size: 14px; }
table th, table td { padding: 10px; }
}