-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
201 lines (175 loc) · 3.91 KB
/
style.css
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
/* Root Variables for Theme */
:root {
--primary-color: #3498db;
--secondary-color: #2ecc71;
--background-color: #f4f4f8;
--card-background: #ffffff;
--text-primary: #2c3e50;
--text-secondary: #7f8c8d;
--border-color: #e0e4e8;
--accent-color: #e74c3c;
}
/* Global Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Arial', sans-serif;
background: linear-gradient(135deg, #f6f8f9 0%, #e5ebee 100%);
color: var(--text-primary);
line-height: 1.6;
padding: 20px;
}
h1, h2 {
text-align: center;
margin-bottom: 20px;
color: var(--primary-color);
}
.dashboard {
max-width: 1200px;
margin: 0 auto;
background-color: var(--background-color);
padding: 20px;
border-radius: 12px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
/* Financial Summary Cards */
.financial-summary {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
gap: 20px;
margin-bottom: 30px;
}
.summary-card {
flex: 1;
background-color: var(--card-background);
padding: 15px 20px;
border-radius: 8px;
text-align: center;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
}
.summary-card:hover {
transform: translateY(-5px);
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}
.summary-card h3 {
font-size: 1rem;
color: var(--text-secondary);
margin-bottom: 10px;
text-transform: uppercase;
}
.summary-card p {
font-size: 1.5rem;
font-weight: bold;
color: var(--primary-color);
}
/* Add Transaction Form */
.add-form {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-bottom: 30px;
background-color: var(--card-background);
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.add-form input,
.add-form select {
flex: 1;
padding: 12px;
border: 1px solid var(--border-color);
border-radius: 6px;
background: white;
font-size: 1rem;
}
.add-form button {
padding: 12px 20px;
border: none;
border-radius: 6px;
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
color: white;
font-size: 1rem;
cursor: pointer;
transition: all 0.3s ease;
}
.add-form button:hover {
background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
/* Tables Styling */
.transactions-table, .customer-table {
width: 100%;
border-collapse: collapse;
margin-bottom: 30px;
background: white;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.transactions-table th, .customer-table th {
background-color: var(--primary-color);
color: white;
text-align: left;
padding: 12px;
font-size: 0.9rem;
text-transform: uppercase;
}
.transactions-table td, .customer-table td {
padding: 12px;
font-size: 0.9rem;
color: var(--text-primary);
background-color: var(--background-color);
}
.transactions-table tr:nth-child(even) td, .customer-table tr:nth-child(even) td {
background-color: #f0f0f0;
}
.transactions-table tr:hover, .customer-table tr:hover {
background-color: var(--accent-color);
color: white;
transition: all 0.3s ease;
}
/* Customer Selector */
.customer-selector {
margin-bottom: 20px;
text-align: center;
}
.customer-selector select {
padding: 10px;
font-size: 1rem;
border-radius: 6px;
border: 1px solid var(--border-color);
background: white;
width: 250px;
}
/* Responsive Design */
@media screen and (max-width: 768px) {
.financial-summary {
flex-direction: column;
}
.summary-card {
width: 100%;
margin-bottom: 10px;
}
.add-form {
flex-direction: column;
}
.add-form input,
.add-form select,
.add-form button {
width: 100%;
}
.transactions-table, .customer-table {
display: block;
overflow-x: auto;
}
.transactions-table th, .transactions-table td,
.customer-table th, .customer-table td {
font-size: 0.8rem;
}
}