-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdashboard.css
More file actions
215 lines (192 loc) · 4.23 KB
/
Copy pathdashboard.css
File metadata and controls
215 lines (192 loc) · 4.23 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
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
/* ===== Global ===== */
body {
margin: 0;
font-family: 'Poppins', 'Segoe UI', sans-serif;
background: linear-gradient(135deg, #f0fff0, #d9fff0);
color: #222;
line-height: 1.6;
}
/* ===== Dashboard Container ===== */
.dashboard-container {
padding: 40px 20px;
max-width: 1000px;
margin: 30px auto;
background: #ffffff20;
border-radius: 20px;
backdrop-filter: blur(12px);
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
animation: fadeIn 0.6s ease-in-out;
}
/* ===== Navigation Tabs ===== */
.dashboard-nav {
display: flex;
gap: 15px;
margin-bottom: 30px;
justify-content: center;
flex-wrap: wrap;
}
.nav-btn {
background: transparent;
color: #3cb371;
border: 2px solid #3cb371;
padding: 10px 25px;
cursor: pointer;
font-weight: 600;
border-radius: 30px;
transition: all 0.3s ease;
}
.nav-btn:hover {
background: #3cb371;
color: #fff;
transform: translateY(-2px);
box-shadow: 0 8px 16px rgba(60, 179, 113, 0.35);
}
.nav-btn.active {
background: #2e8b57;
color: #fff;
border-color: #2e8b57;
box-shadow: 0 8px 20px rgba(46, 139, 87, 0.5);
}
/* ===== Section Titles ===== */
.section-title {
text-align: center;
color: #3cb371;
font-size: 1.8rem;
margin-bottom: 25px;
letter-spacing: 0.5px;
}
/* ===== Product Form ===== */
.product-form {
background: rgba(240, 255, 240, 0.9);
padding: 35px;
border-radius: 20px;
box-shadow: 0 8px 25px rgba(60, 179, 113, 0.25);
backdrop-filter: blur(12px);
animation: slideUp 0.5s ease;
}
.product-form label {
display: block;
margin: 18px 0 8px;
font-weight: 600;
color: #2e8b57;
}
.product-form input,
.product-form select {
width: 100%;
padding: 12px 15px;
border-radius: 12px;
border: 2px solid #3cb37130;
background-color: #e6fff5;
font-size: 0.95rem;
transition: all 0.3s ease;
}
.product-form input:focus,
.product-form select:focus {
outline: none;
border-color: #3cb371;
box-shadow: 0 0 12px rgba(60, 179, 113, 0.35);
}
/* ===== Submit Button ===== */
.submit-btn {
background: #3cb371;
color: #fff;
padding: 14px 22px;
border: none;
border-radius: 30px;
font-weight: 600;
font-size: 1rem;
cursor: pointer;
width: 100%;
margin-top: 25px;
transition: all 0.3s ease;
}
.submit-btn:hover {
background: #2e8b57;
transform: translateY(-2px);
box-shadow: 0 8px 16px rgba(46, 139, 87, 0.45);
}
/* ===== Product Cards ===== */
.product-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 20px;
}
.product-card {
background: #f0fff0;
border-radius: 20px;
padding: 20px;
text-align: center;
color: #2e8b57;
box-shadow: 0 8px 20px rgba(46, 139, 87, 0.3);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
transform: translateY(-5px);
box-shadow: 0 12px 28px rgba(46, 139, 87, 0.5);
}
/* ===== Analytics Cards ===== */
.analytics-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 20px;
}
.analytics-card {
background: #f0fff0;
color: #2e8b57;
border-radius: 20px;
padding: 20px;
text-align: center;
font-weight: 600;
box-shadow: 0 6px 18px rgba(46, 139, 87, 0.3);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.analytics-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(46, 139, 87, 0.45);
}
/* ===== Error & Success Messages ===== */
.error-msg {
color: #ff4d4f;
font-size: 0.9rem;
margin: 5px 0;
font-weight: 500;
}
.success-msg {
color: #3cb371;
font-size: 0.95rem;
margin: 10px 0;
font-weight: 600;
text-align: center;
}
/* ===== Animations ===== */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(15px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes slideUp {
from {
opacity: 0;
transform: translateY(25px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* ===== Responsive ===== */
@media (max-width: 600px) {
.dashboard-nav {
flex-direction: column;
gap: 15px;
margin-bottom: 25px;
}
.nav-btn {
width: 100%;
}
}