Zen-4011's picture
Update static/style.css
d2150aa verified
Raw
History Blame Contribute Delete
3.09 kB
/* Global Reset & Fonts */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background-color: #0b0f19;
color: #e0e0e0;
padding: 40px 20px;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
/* Main Container */
.container {
background: #1c1c2e;
padding: 30px;
border-radius: 20px;
box-shadow: 0px 0px 8px rgba(94, 53, 177, 0.3);
border: 1px solid #4527a0;
max-width: 1000px;
width: 100%;
}
header {
text-align: center;
margin-bottom: 30px;
padding-bottom: 20px;
border-bottom: 1px solid #2e2e42;
}
header h1 { color: #ffffff; font-weight: 700; margin-bottom: 5px; }
header p { color: #9ca3af; }
/* Layout Grid */
.main-content {
display: grid;
grid-template-columns: 1.5fr 1fr;
gap: 40px;
}
/* File Upload Styles */
.file-upload-container {
background: #0b0f19;
border: 1px solid #36364c;
border-radius: 12px;
padding: 30px 20px;
margin-bottom: 20px;
}
.upload-box {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
border: 2px dashed #36364c;
border-radius: 8px;
padding: 40px 20px;
transition: all 0.3s ease;
background: rgba(28, 28, 46, 0.5);
}
.upload-box.dragover {
border-color: #7e57c2;
background: rgba(126, 87, 194, 0.1);
}
.browse-btn {
background: transparent;
border: 1px solid #7e57c2;
color: #b39ddb;
padding: 8px 16px;
border-radius: 6px;
cursor: pointer;
font-weight: 600;
transition: all 0.2s;
}
.browse-btn:hover {
background: rgba(126, 87, 194, 0.15);
color: #ffffff;
}
/* Submit Button */
.submit-btn {
width: 100%;
margin-top: 25px;
padding: 14px;
background: linear-gradient(135deg, #5e35b1 0%, #311b92 100%);
color: #ffffff;
font-weight: 700;
border: none;
border-radius: 10px;
font-size: 1rem;
cursor: pointer;
transition: transform 0.1s, box-shadow 0.2s;
}
.submit-btn:hover:not(:disabled) {
transform: translateY(-2px);
box-shadow: 0 4px 15px rgba(94, 53, 177, 0.4);
}
/* Result Section */
.result-section {
background: #131320;
border-radius: 20px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
padding: 20px;
border: 1px solid #2e2e42;
min-height: 200px;
}
.placeholder-text h3 { color: #ffffff; margin-bottom: 8px; }
.placeholder-text p { color: #6b7280; font-size: 0.9rem; }
/* Dynamic Result Styles */
.result-box { animation: fadeIn 0.5s ease; width: 100%; }
.confidence-bar-bg {
width: 100%;
height: 8px;
background-color: #2e2e42;
border-radius: 4px;
margin-top: 15px;
overflow: hidden;
}
.confidence-bar-fill {
height: 100%;
border-radius: 4px;
transition: width 1s ease;
background-color: #7e57c2;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
/* Mobile Responsive */
@media (max-width: 768px) {
.main-content { grid-template-columns: 1fr; }
}