Spaces:
Sleeping
Sleeping
Update static/style.css
Browse files- static/style.css +30 -21
static/style.css
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
* {
|
| 2 |
margin: 0;
|
| 3 |
padding: 0;
|
|
@@ -6,7 +7,7 @@
|
|
| 6 |
|
| 7 |
body {
|
| 8 |
font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
| 9 |
-
background-color: #
|
| 10 |
color: #e0e0e0;
|
| 11 |
padding: 40px 20px;
|
| 12 |
min-height: 100vh;
|
|
@@ -15,12 +16,13 @@ body {
|
|
| 15 |
justify-content: center;
|
| 16 |
}
|
| 17 |
|
|
|
|
| 18 |
.container {
|
| 19 |
-
background: #
|
| 20 |
padding: 30px;
|
| 21 |
border-radius: 20px;
|
| 22 |
-
box-shadow: 0px 0px
|
| 23 |
-
border: 1px solid #
|
| 24 |
max-width: 1000px;
|
| 25 |
width: 100%;
|
| 26 |
}
|
|
@@ -29,21 +31,23 @@ header {
|
|
| 29 |
text-align: center;
|
| 30 |
margin-bottom: 30px;
|
| 31 |
padding-bottom: 20px;
|
| 32 |
-
border-bottom: 1px solid #
|
| 33 |
}
|
| 34 |
|
| 35 |
header h1 { color: #ffffff; font-weight: 700; margin-bottom: 5px; }
|
| 36 |
-
header p { color: #
|
| 37 |
|
|
|
|
| 38 |
.main-content {
|
| 39 |
display: grid;
|
| 40 |
grid-template-columns: 1.5fr 1fr;
|
| 41 |
gap: 40px;
|
| 42 |
}
|
| 43 |
|
|
|
|
| 44 |
.file-upload-container {
|
| 45 |
-
background: #
|
| 46 |
-
border: 1px solid #
|
| 47 |
border-radius: 12px;
|
| 48 |
padding: 30px 20px;
|
| 49 |
margin-bottom: 20px;
|
|
@@ -54,22 +58,22 @@ header p { color: #b8a6d9; }
|
|
| 54 |
flex-direction: column;
|
| 55 |
align-items: center;
|
| 56 |
justify-content: center;
|
| 57 |
-
border: 2px dashed #
|
| 58 |
border-radius: 8px;
|
| 59 |
padding: 40px 20px;
|
| 60 |
transition: all 0.3s ease;
|
| 61 |
-
background: rgba(
|
| 62 |
}
|
| 63 |
|
| 64 |
.upload-box.dragover {
|
| 65 |
-
border-color: #
|
| 66 |
-
background: rgba(
|
| 67 |
}
|
| 68 |
|
| 69 |
.browse-btn {
|
| 70 |
background: transparent;
|
| 71 |
-
border: 1px solid #
|
| 72 |
-
color: #
|
| 73 |
padding: 8px 16px;
|
| 74 |
border-radius: 6px;
|
| 75 |
cursor: pointer;
|
|
@@ -78,15 +82,16 @@ header p { color: #b8a6d9; }
|
|
| 78 |
}
|
| 79 |
|
| 80 |
.browse-btn:hover {
|
| 81 |
-
background: rgba(
|
| 82 |
color: #ffffff;
|
| 83 |
}
|
| 84 |
|
|
|
|
| 85 |
.submit-btn {
|
| 86 |
width: 100%;
|
| 87 |
margin-top: 25px;
|
| 88 |
padding: 14px;
|
| 89 |
-
background: linear-gradient(135deg, #
|
| 90 |
color: #ffffff;
|
| 91 |
font-weight: 700;
|
| 92 |
border: none;
|
|
@@ -98,11 +103,12 @@ header p { color: #b8a6d9; }
|
|
| 98 |
|
| 99 |
.submit-btn:hover:not(:disabled) {
|
| 100 |
transform: translateY(-2px);
|
| 101 |
-
box-shadow: 0 4px 15px rgba(
|
| 102 |
}
|
| 103 |
|
|
|
|
| 104 |
.result-section {
|
| 105 |
-
background: #
|
| 106 |
border-radius: 20px;
|
| 107 |
display: flex;
|
| 108 |
flex-direction: column;
|
|
@@ -110,19 +116,20 @@ header p { color: #b8a6d9; }
|
|
| 110 |
align-items: center;
|
| 111 |
text-align: center;
|
| 112 |
padding: 20px;
|
| 113 |
-
border: 1px solid #
|
| 114 |
min-height: 200px;
|
| 115 |
}
|
| 116 |
|
| 117 |
.placeholder-text h3 { color: #ffffff; margin-bottom: 8px; }
|
| 118 |
-
.placeholder-text p { color: #
|
| 119 |
|
|
|
|
| 120 |
.result-box { animation: fadeIn 0.5s ease; width: 100%; }
|
| 121 |
|
| 122 |
.confidence-bar-bg {
|
| 123 |
width: 100%;
|
| 124 |
height: 8px;
|
| 125 |
-
background-color: #
|
| 126 |
border-radius: 4px;
|
| 127 |
margin-top: 15px;
|
| 128 |
overflow: hidden;
|
|
@@ -132,6 +139,7 @@ header p { color: #b8a6d9; }
|
|
| 132 |
height: 100%;
|
| 133 |
border-radius: 4px;
|
| 134 |
transition: width 1s ease;
|
|
|
|
| 135 |
}
|
| 136 |
|
| 137 |
@keyframes fadeIn {
|
|
@@ -139,6 +147,7 @@ header p { color: #b8a6d9; }
|
|
| 139 |
to { opacity: 1; transform: translateY(0); }
|
| 140 |
}
|
| 141 |
|
|
|
|
| 142 |
@media (max-width: 768px) {
|
| 143 |
.main-content { grid-template-columns: 1fr; }
|
| 144 |
}
|
|
|
|
| 1 |
+
/* Global Reset & Fonts */
|
| 2 |
* {
|
| 3 |
margin: 0;
|
| 4 |
padding: 0;
|
|
|
|
| 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;
|
|
|
|
| 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 8px rgba(94, 53, 177, 0.3);
|
| 25 |
+
border: 1px solid #4527a0;
|
| 26 |
max-width: 1000px;
|
| 27 |
width: 100%;
|
| 28 |
}
|
|
|
|
| 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 |
+
/* File Upload Styles */
|
| 48 |
.file-upload-container {
|
| 49 |
+
background: #0b0f19;
|
| 50 |
+
border: 1px solid #36364c;
|
| 51 |
border-radius: 12px;
|
| 52 |
padding: 30px 20px;
|
| 53 |
margin-bottom: 20px;
|
|
|
|
| 58 |
flex-direction: column;
|
| 59 |
align-items: center;
|
| 60 |
justify-content: center;
|
| 61 |
+
border: 2px dashed #36364c;
|
| 62 |
border-radius: 8px;
|
| 63 |
padding: 40px 20px;
|
| 64 |
transition: all 0.3s ease;
|
| 65 |
+
background: rgba(28, 28, 46, 0.5);
|
| 66 |
}
|
| 67 |
|
| 68 |
.upload-box.dragover {
|
| 69 |
+
border-color: #7e57c2;
|
| 70 |
+
background: rgba(126, 87, 194, 0.1);
|
| 71 |
}
|
| 72 |
|
| 73 |
.browse-btn {
|
| 74 |
background: transparent;
|
| 75 |
+
border: 1px solid #7e57c2;
|
| 76 |
+
color: #b39ddb;
|
| 77 |
padding: 8px 16px;
|
| 78 |
border-radius: 6px;
|
| 79 |
cursor: pointer;
|
|
|
|
| 82 |
}
|
| 83 |
|
| 84 |
.browse-btn:hover {
|
| 85 |
+
background: rgba(126, 87, 194, 0.15);
|
| 86 |
color: #ffffff;
|
| 87 |
}
|
| 88 |
|
| 89 |
+
/* Submit Button */
|
| 90 |
.submit-btn {
|
| 91 |
width: 100%;
|
| 92 |
margin-top: 25px;
|
| 93 |
padding: 14px;
|
| 94 |
+
background: linear-gradient(135deg, #5e35b1 0%, #311b92 100%);
|
| 95 |
color: #ffffff;
|
| 96 |
font-weight: 700;
|
| 97 |
border: none;
|
|
|
|
| 103 |
|
| 104 |
.submit-btn:hover:not(:disabled) {
|
| 105 |
transform: translateY(-2px);
|
| 106 |
+
box-shadow: 0 4px 15px rgba(94, 53, 177, 0.4);
|
| 107 |
}
|
| 108 |
|
| 109 |
+
/* Result Section */
|
| 110 |
.result-section {
|
| 111 |
+
background: #131320;
|
| 112 |
border-radius: 20px;
|
| 113 |
display: flex;
|
| 114 |
flex-direction: column;
|
|
|
|
| 116 |
align-items: center;
|
| 117 |
text-align: center;
|
| 118 |
padding: 20px;
|
| 119 |
+
border: 1px solid #2e2e42;
|
| 120 |
min-height: 200px;
|
| 121 |
}
|
| 122 |
|
| 123 |
.placeholder-text h3 { color: #ffffff; margin-bottom: 8px; }
|
| 124 |
+
.placeholder-text p { color: #6b7280; font-size: 0.9rem; }
|
| 125 |
|
| 126 |
+
/* Dynamic Result Styles */
|
| 127 |
.result-box { animation: fadeIn 0.5s ease; width: 100%; }
|
| 128 |
|
| 129 |
.confidence-bar-bg {
|
| 130 |
width: 100%;
|
| 131 |
height: 8px;
|
| 132 |
+
background-color: #2e2e42;
|
| 133 |
border-radius: 4px;
|
| 134 |
margin-top: 15px;
|
| 135 |
overflow: hidden;
|
|
|
|
| 139 |
height: 100%;
|
| 140 |
border-radius: 4px;
|
| 141 |
transition: width 1s ease;
|
| 142 |
+
background-color: #7e57c2;
|
| 143 |
}
|
| 144 |
|
| 145 |
@keyframes fadeIn {
|
|
|
|
| 147 |
to { opacity: 1; transform: translateY(0); }
|
| 148 |
}
|
| 149 |
|
| 150 |
+
/* Mobile Responsive */
|
| 151 |
@media (max-width: 768px) {
|
| 152 |
.main-content { grid-template-columns: 1fr; }
|
| 153 |
}
|