Vinay-11's picture
Update static/style.css
895b01b verified
:root {
--primary-color: #2563eb;
/* Blue like in screenshot */
--secondary-color: #457b9d;
--background-color: #f3f4f6;
/* Light gray background */
--text-color: #1f2937;
--card-bg: #ffffff;
--success-color: #10b981;
--warning-color: #f59e0b;
--error-color: #ef4444;
--nav-height: 60px;
}
body {
font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: var(--background-color);
color: var(--text-color);
margin: 0;
padding: 0;
line-height: 1.6;
}
/* Navbar */
.navbar {
background-color: var(--card-bg);
height: var(--nav-height);
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 50px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
position: sticky;
top: 0;
z-index: 1000;
}
.nav-brand {
font-size: 1.5rem;
font-weight: bold;
color: var(--primary-color);
}
.nav-links a {
text-decoration: none;
color: #4b5563;
margin-left: 20px;
font-weight: 500;
transition: color 0.2s;
}
.nav-links a:hover {
color: var(--primary-color);
}
.container {
max-width: 1000px;
margin: 0 auto;
padding: 40px 20px;
min-height: calc(100vh - var(--nav-height) - 100px);
/* Adjust for footer */
}
header {
text-align: center;
margin-bottom: 40px;
}
h1 {
color: #111827;
margin-bottom: 10px;
font-size: 2.2rem;
}
header p {
color: #6b7280;
font-size: 1.1rem;
}
.upload-section {
background-color: var(--card-bg);
padding: 40px;
border-radius: 12px;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
margin-bottom: 30px;
text-align: center;
}
.file-input-wrapper {
margin-bottom: 25px;
}
input[type="file"] {
display: none;
}
.file-label {
display: inline-block;
padding: 12px 24px;
background-color: #f3f4f6;
color: #374151;
border: 1px solid #d1d5db;
border-radius: 6px;
cursor: pointer;
transition: all 0.2s;
width: 100%;
max-width: 400px;
text-align: left;
display: flex;
align-items: center;
margin: 0 auto;
}
.file-label::before {
content: "Choose File";
background-color: #e5e7eb;
padding: 4px 12px;
border-radius: 4px;
margin-right: 10px;
font-size: 0.9em;
font-weight: 500;
border: 1px solid #d1d5db;
}
.file-label:hover {
background-color: #e5e7eb;
}
button#predictBtn {
background-color: var(--primary-color);
color: white;
border: none;
padding: 14px 40px;
font-size: 16px;
font-weight: 600;
border-radius: 6px;
cursor: pointer;
transition: background-color 0.2s;
width: 100%;
max-width: 400px;
}
button#predictBtn:hover {
background-color: #1d4ed8;
}
#preview-section {
text-align: center;
margin: 30px 0;
background-color: var(--card-bg);
padding: 20px;
border-radius: 12px;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
#imagePreview {
max-width: 100%;
max-height: 250px;
border-radius: 8px;
}
.hidden {
display: none;
}
#loading {
text-align: center;
margin: 20px 0;
}
.spinner {
border: 4px solid #f3f3f3;
border-top: 4px solid var(--primary-color);
border-radius: 50%;
width: 40px;
height: 40px;
animation: spin 1s linear infinite;
margin: 0 auto 10px;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
#results {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
margin-top: 30px;
}
.result-card {
background-color: var(--card-bg);
padding: 25px;
border-radius: 12px;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
border-left: none;
/* Removed colored border */
}
.result-title {
font-size: 1.1em;
font-weight: 700;
margin-bottom: 15px;
color: #111827;
border-bottom: 2px solid #f3f4f6;
padding-bottom: 10px;
}
.prob-bar {
background-color: #e5e7eb;
height: 8px;
border-radius: 4px;
margin-top: 8px;
overflow: hidden;
}
.prob-fill {
height: 100%;
background-color: var(--primary-color);
border-radius: 4px;
}
footer {
text-align: center;
padding: 30px 0;
color: #9ca3af;
font-size: 0.9em;
margin-top: auto;
}