amogne-vlm-LLM / style.css
amogneandualem's picture
Update style.css
7bd110c verified
/* Main Styles */
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
margin: 0;
padding: 20px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
}
.gradio-container {
max-width: 1400px;
margin: 0 auto;
background: white;
border-radius: 20px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
overflow: hidden;
}
/* Header */
.title {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 30px;
margin: 0;
text-align: center;
font-size: 2.5em;
font-weight: 300;
}
.subtitle {
text-align: center;
color: #666;
padding: 0 30px 30px;
font-size: 1.1em;
line-height: 1.6;
}
/* Input Section */
.input-section {
padding: 30px;
background: #f8f9fa;
border-bottom: 1px solid #e9ecef;
}
.image-upload-container {
border: 3px dashed #dee2e6;
border-radius: 15px;
padding: 40px;
text-align: center;
cursor: pointer;
transition: all 0.3s ease;
background: white;
margin-bottom: 20px;
}
.image-upload-container:hover {
border-color: #667eea;
background: #f0f2ff;
}
.image-upload-container.dragover {
border-color: #764ba2;
background: #e8d5ff;
}
/* Language Selector */
.language-selector {
width: 100%;
padding: 12px 20px;
border: 2px solid #dee2e6;
border-radius: 10px;
font-size: 16px;
background: white;
color: #495057;
appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 15px center;
background-size: 20px;
cursor: pointer;
}
.language-selector:focus {
outline: none;
border-color: #667eea;
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
/* Buttons */
.btn-primary {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
padding: 15px 30px;
border-radius: 10px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
width: 100%;
margin-top: 20px;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}
.btn-secondary {
background: #6c757d;
color: white;
border: none;
padding: 10px 20px;
border-radius: 8px;
font-size: 14px;
cursor: pointer;
transition: all 0.2s ease;
}
.btn-secondary:hover {
background: #5a6268;
transform: translateY(-1px);
}
/* Results Section */
.results-container {
padding: 30px;
background: white;
}
.tabs {
display: flex;
border-bottom: 2px solid #dee2e6;
margin-bottom: 30px;
}
.tab-button {
padding: 15px 30px;
background: none;
border: none;
font-size: 16px;
font-weight: 600;
color: #6c757d;
cursor: pointer;
position: relative;
transition: all 0.3s ease;
}
.tab-button:hover {
color: #667eea;
}
.tab-button.active {
color: #667eea;
}
.tab-button.active::after {
content: '';
position: absolute;
bottom: -2px;
left: 0;
right: 0;
height: 3px;
background: #667eea;
border-radius: 3px 3px 0 0;
}
/* Text Output */
.text-output {
background: #f8f9fa;
border-radius: 10px;
padding: 25px;
border-left: 5px solid #667eea;
line-height: 1.8;
font-size: 16px;
color: #495057;
min-height: 200px;
white-space: pre-wrap;
word-wrap: break-word;
}
.objects-list {
background: #e7f1ff;
border-radius: 10px;
padding: 20px;
margin-top: 20px;
}
.object-tag {
display: inline-block;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 8px 16px;
margin: 5px;
border-radius: 20px;
font-size: 14px;
font-weight: 500;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
transition: all 0.2s ease;
}
.object-tag:hover {
transform: scale(1.05);
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
/* JSON Output */
.json-output {
background: #282c34;
color: #abb2bf;
padding: 25px;
border-radius: 10px;
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
font-size: 14px;
line-height: 1.6;
overflow-x: auto;
max-height: 500px;
overflow-y: auto;
}
.json-key {
color: #61afef;
}
.json-string {
color: #98c379;
}
.json-number {
color: #d19a66;
}
.json-boolean {
color: #d19a66;
}
.json-null {
color: #d19a66;
}
/* Statistics */
.stats-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 20px;
margin: 30px 0;
}
.stat-card {
background: white;
border-radius: 15px;
padding: 25px;
text-align: center;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
border: 1px solid #e9ecef;
transition: all 0.3s ease;
}
.stat-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.stat-value {
font-size: 2.5em;
font-weight: 700;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
margin-bottom: 10px;
}
.stat-label {
font-size: 14px;
color: #6c757d;
text-transform: uppercase;
letter-spacing: 1px;
}
/* Responsive Design */
@media (max-width: 768px) {
.gradio-container {
border-radius: 10px;
margin: 10px;
}
.title {
font-size: 1.8em;
padding: 20px;
}
.input-section,
.results-container {
padding: 20px;
}
.stats-container {
grid-template-columns: 1fr;
}
.tabs {
flex-wrap: wrap;
}
.tab-button {
flex: 1;
min-width: 120px;
padding: 12px;
font-size: 14px;
}
}
/* Loading Animation */
.loading {
display: inline-block;
width: 20px;
height: 20px;
border: 3px solid #f3f3f3;
border-top: 3px solid #667eea;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* Footer */
.footer {
text-align: center;
padding: 30px;
background: #f8f9fa;
border-top: 1px solid #e9ecef;
color: #6c757d;
font-size: 14px;
}
.footer a {
color: #667eea;
text-decoration: none;
transition: color 0.3s ease;
}
.footer a:hover {
color: #764ba2;
text-decoration: underline;
}