blob: 6d2f0744dcae183389ec3e60c586112b8eb7434c (
plain)
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
|
/* Buttons */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.35rem;
padding: 0.5rem 0.85rem;
border-radius: var(--radius-sm);
border: 1px solid transparent;
font-size: 0.85rem;
font-weight: 600;
line-height: 1.2;
cursor: pointer;
background: var(--bg-elevated);
color: var(--text-primary);
transition: background var(--transition-fast), border-color var(--transition-fast), transform 80ms ease;
}
.btn:hover { background: var(--bg-surface-hover); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary {
background: var(--accent);
color: #fff;
border-color: var(--accent-active);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-danger {
background: var(--danger);
color: #fff;
border-color: #b91c1c;
}
.btn-danger:hover { background: #e04e4e; }
.btn-ghost {
background: transparent;
color: var(--text-secondary);
border-color: var(--border);
}
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-surface-hover); }
.btn-sm { padding: 0.3rem 0.55rem; font-size: 0.78rem; }
.btn-lg { padding: 0.65rem 1.1rem; font-size: 0.95rem; }
/* Icon buttons */
.icon-btn {
width: 2.25rem;
height: 2.25rem;
border-radius: var(--radius-sm);
background: transparent;
border: 1px solid transparent;
color: var(--text-secondary);
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 1.05rem;
line-height: 1;
padding: 0;
transition: background var(--transition-fast), color var(--transition-fast);
}
.icon-btn:hover { background: var(--bg-surface-hover); color: var(--text-primary); }
.icon-btn.active { color: var(--accent); background: var(--accent-soft); }
/* Forms */
input, textarea, select {
font: inherit;
color: var(--text-primary);
background: var(--bg-elevated);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
padding: 0.5rem 0.65rem;
width: 100%;
}
input:focus, textarea:focus, select:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-soft);
}
label {
display: block;
font-size: 0.8rem;
font-weight: 600;
margin: 0.35rem 0 0.2rem;
color: var(--text-secondary);
}
/* Error message */
.error-message {
color: var(--danger);
font-size: 0.85rem;
min-height: 1.25rem;
margin: 0.35rem 0 0;
}
/* Search bar */
.search-bar {
display: flex;
align-items: center;
gap: 0.4rem;
background: var(--bg-elevated);
border: 1px solid var(--border);
border-radius: var(--radius-md);
padding: 0.25rem 0.6rem;
max-width: 22rem;
width: 100%;
}
.search-bar input {
background: transparent;
border: none;
padding: 0.35rem 0.2rem;
flex: 1 1 auto;
}
.search-bar input:focus { box-shadow: none; }
/* Toast */
.toast {
position: fixed;
bottom: 1rem;
right: 1rem;
background: var(--bg-surface);
color: var(--text-primary);
border: 1px solid var(--border-strong);
border-radius: var(--radius-md);
box-shadow: var(--shadow-lg);
padding: 0.65rem 0.9rem;
z-index: 110;
font-size: 0.85rem;
transform: translateY(120%);
opacity: 0;
transition: transform var(--transition-base), opacity var(--transition-base);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.info { border-left: 4px solid var(--accent); }
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
|