nomypython's picture
improve: <!DOCTYPE html>
dd7cafb verified
:root {
--primary-color: #2b5876;
--secondary-color: #4ecca3;
--accent-color: #4e95f7;
--dark-text: #2d3748;
--light-text: #f8f9fa;
--border-radius: 8px;
--box-shadow: 0 4px 6px rgba(0,0,0,0.1);
--transition: all 0.3s ease;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
line-height: 1.6;
color: var(--dark-text);
background-color: #f5f7fa;
margin: 0;
padding: 0;
}
/* Layout */
.container {
display: grid;
grid-template-columns: 1fr 1.5fr;
gap: 2rem;
max-width: 1400px;
margin: 2rem auto;
padding: 0 2rem;
}
.header {
background: linear-gradient(135deg, #2b5876 0%, #4e95f7 100%);
color: white;
padding: 2rem;
margin-bottom: 2rem;
}
.header-content {
max-width: 1400px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
}
.header-title {
font-size: 2rem;
margin: 0;
font-weight: 700;
}
.header-subtitle {
margin: 0.5rem 0 0;
opacity: 0.9;
}
/* Cards */
.card {
background: white;
border-radius: var(--border-radius);
box-shadow: var(--box-shadow);
padding: 1.5rem;
margin-bottom: 2rem;
}
.section-title {
font-size: 1.3rem;
margin-top: 0;
margin-bottom: 1.5rem;
color: var(--primary-color);
border-bottom: 2px solid var(--secondary-color);
padding-bottom: 0.5rem;
}
/* Buttons */
.btn {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.75rem 1.5rem;
border-radius: var(--border-radius);
border: none;
font-weight: 500;
cursor: pointer;
transition: var(--transition);
}
.btn-primary {
background: var(--primary-color);
color: white;
}
.btn-primary:hover {
background: #1a3a4f;
transform: translateY(-2px);
}
.btn-success {
background: var(--secondary-color);
color: white;
}
.btn-success:hover {
background: #3aa789;
transform: translateY(-2px);
}
.btn-secondary {
background: #e2e8f0;
color: var(--dark-text);
}
.btn-secondary:hover {
background: #cbd5e0;
}
.btn-icon {
font-size: 1.2rem;
}
/* Image Preview */
.image-preview-container {
margin: 1.5rem 0;
}
.image-preview {
border: 1px solid #e2e8f0;
border-radius: var(--border-radius);
padding: 0.5rem;
background: #f8fafc;
display: flex;
justify-content: center;
align-items: center;
height: 300px;
overflow: hidden;
}
.image-preview img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
}
/* Results */
.results-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1.5rem;
margin-bottom: 1.5rem;
}
.result-section {
margin-bottom: 1.5rem;
}
.subsection-title {
font-size: 1.1rem;
margin-top: 0;
color: var(--primary-color);
}
.result-box {
background: #f8fafc;
border-radius: var(--border-radius);
padding: 1rem;
min-height: 150px;
}
/* Footer */
.footer {
text-align: center;
padding: 1.5rem;
background: var(--primary-color);
color: white;
margin-top: 2rem;
}
/* Responsive */
@media (max-width: 768px) {
.container {
grid-template-columns: 1fr;
padding: 0 1rem;
}
.results-grid {
grid-template-columns: 1fr;
}
}