Zen-4011 commited on
Commit
d461b31
·
verified ·
1 Parent(s): 2f4878e

Create static/style.css

Browse files
Files changed (1) hide show
  1. src/static/style.css +213 -0
src/static/style.css ADDED
@@ -0,0 +1,213 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Global Reset & Fonts */
2
+ * {
3
+ margin: 0;
4
+ padding: 0;
5
+ box-sizing: border-box;
6
+ }
7
+
8
+ body {
9
+ font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
10
+ background-color: #0b0f19;
11
+ color: #e0e0e0;
12
+ padding: 40px 20px;
13
+ min-height: 100vh;
14
+ display: flex;
15
+ align-items: center;
16
+ justify-content: center;
17
+ }
18
+
19
+ /* Main Container */
20
+ .container {
21
+ background: #1c1c2e;
22
+ padding: 30px;
23
+ border-radius: 20px;
24
+ box-shadow: 0px 0px 5px #706227;
25
+ border: 1px solid #706227;
26
+ max-width: 1000px;
27
+ width: 100%;
28
+ }
29
+
30
+ header {
31
+ text-align: center;
32
+ margin-bottom: 30px;
33
+ padding-bottom: 20px;
34
+ border-bottom: 1px solid #2e2e42;
35
+ }
36
+
37
+ header h1 { color: #ffffff; font-weight: 700; margin-bottom: 5px; }
38
+ header p { color: #9ca3af; }
39
+
40
+ /* Layout Grid */
41
+ .main-content {
42
+ display: grid;
43
+ grid-template-columns: 1.5fr 1fr;
44
+ gap: 40px;
45
+ }
46
+
47
+ .form-grid {
48
+ display: grid;
49
+ grid-template-columns: 1fr 1fr;
50
+ gap: 20px;
51
+ }
52
+
53
+ /* Input Components */
54
+ .input-group {
55
+ display: flex;
56
+ flex-direction: column;
57
+ gap: 8px;
58
+ }
59
+
60
+ .input-label {
61
+ font-size: 14px;
62
+ font-weight: 600;
63
+ color: #f0f1f3;
64
+ letter-spacing: 0.5px;
65
+ }
66
+
67
+ .number-input-container {
68
+ position: relative;
69
+ display: flex;
70
+ align-items: center;
71
+ background: #0b0f19;
72
+ border: 1px solid #36364c;
73
+ border-radius: 10px;
74
+ padding: 0;
75
+ transition: all 0.2s ease;
76
+ overflow: hidden;
77
+ height: 42px;
78
+ }
79
+
80
+ .number-input-container:focus-within {
81
+ border-color: #FFD21E;
82
+ box-shadow: 0 0 0 1px rgba(255, 210, 30, 0.2);
83
+ }
84
+
85
+ .number-input {
86
+ flex: 1;
87
+ border: none;
88
+ background: transparent;
89
+ padding: 0 16px;
90
+ font-size: 16px;
91
+ font-weight: 600;
92
+ color: #ffffff;
93
+ outline: none;
94
+ width: 0;
95
+ min-width: 0;
96
+ }
97
+
98
+ /* Hide native spinners */
99
+ .number-input::-webkit-outer-spin-button,
100
+ .number-input::-webkit-inner-spin-button {
101
+ -webkit-appearance: none;
102
+ margin: 0;
103
+ }
104
+ .number-input[type=number] { -moz-appearance: textfield; }
105
+
106
+ /* Controls */
107
+ .controls {
108
+ display: flex;
109
+ align-items: center;
110
+ background: transparent;
111
+ margin-right: 4px;
112
+ height: 100%;
113
+ }
114
+
115
+ .control-btn {
116
+ display: flex;
117
+ align-items: center;
118
+ justify-content: center;
119
+ width: 28px;
120
+ height: 28px;
121
+ border: none;
122
+ background: transparent;
123
+ cursor: pointer;
124
+ transition: all 0.15s ease;
125
+ color: #9ca3af;
126
+ }
127
+
128
+ .control-btn:hover {
129
+ background: rgba(255, 255, 255, 0.1);
130
+ color: #FFD21E;
131
+ border-radius: 4px;
132
+ }
133
+
134
+ .control-btn:active { transform: scale(0.95); color: #fff; }
135
+
136
+ .decrease-btn { border-radius: 10px; }
137
+ .increase-btn { border-radius: 10px; }
138
+
139
+ .separator {
140
+ width: 1px;
141
+ height: 18px;
142
+ background: #36364c;
143
+ margin: 0 2px;
144
+ }
145
+
146
+ /* Submit Button */
147
+ .submit-btn {
148
+ width: 100%;
149
+ margin-top: 25px;
150
+ padding: 14px;
151
+ background: linear-gradient(135deg, #FFD21E 0%, #facc15 100%);
152
+ color: #000;
153
+ font-weight: 700;
154
+ border: none;
155
+ border-radius: 10px;
156
+ font-size: 1rem;
157
+ cursor: pointer;
158
+ transition: transform 0.1s, box-shadow 0.2s;
159
+ }
160
+
161
+ .submit-btn:hover {
162
+ transform: translateY(-2px);
163
+ box-shadow: 0 4px 15px rgba(255, 210, 30, 0.3);
164
+ }
165
+
166
+ /* Result Section */
167
+ .result-section {
168
+ background: #131320;
169
+ border-radius: 20px;
170
+ display: flex;
171
+ flex-direction: column;
172
+ justify-content: center;
173
+ align-items: center;
174
+ text-align: center;
175
+ padding: 20px;
176
+ border: 1px solid #2e2e42;
177
+ min-height: 200px;
178
+ }
179
+
180
+ .placeholder-text h3 { color: #ffffff; margin-bottom: 8px; }
181
+ .placeholder-text p { color: #6b7280; font-size: 0.9rem; }
182
+
183
+ /* Dynamic Result Styles */
184
+ .result-box { animation: fadeIn 0.5s ease; width: 100%; }
185
+ .risk-level { font-size: 2rem; font-weight: 800; margin: 15px 0; }
186
+ .safe-color { color: #34d399; }
187
+ .danger-color { color: #f87171; }
188
+
189
+ .confidence-bar-bg {
190
+ width: 100%;
191
+ height: 8px;
192
+ background-color: #2e2e42;
193
+ border-radius: 4px;
194
+ margin-top: 15px;
195
+ overflow: hidden;
196
+ }
197
+
198
+ .confidence-bar-fill {
199
+ height: 100%;
200
+ border-radius: 4px;
201
+ transition: width 1s ease;
202
+ }
203
+
204
+ @keyframes fadeIn {
205
+ from { opacity: 0; transform: translateY(10px); }
206
+ to { opacity: 1; transform: translateY(0); }
207
+ }
208
+
209
+ /* Mobile Responsive */
210
+ @media (max-width: 768px) {
211
+ .main-content { grid-template-columns: 1fr; }
212
+ .form-grid { grid-template-columns: 1fr; }
213
+ }