MATH-Solver / static /css /style.css
fhyfhy's picture
Upload 19 files
d6b3b55 verified
Raw
History Blame Contribute Delete
8.67 kB
/* Reset and Base Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--primary-color: #6366f1;
--primary-dark: #4f46e5;
--primary-light: #818cf8;
--success-color: #10b981;
--error-color: #ef4444;
--warning-color: #f59e0b;
--bg-primary: #0f172a;
--bg-secondary: #1e293b;
--bg-tertiary: #334155;
--text-primary: #f1f5f9;
--text-secondary: #cbd5e1;
--text-muted: #94a3b8;
--border-color: #334155;
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
color: var(--text-primary);
line-height: 1.6;
min-height: 100vh;
}
/* Container */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 2rem;
}
/* Header */
.header {
text-align: center;
margin-bottom: 3rem;
padding: 2rem 0;
}
.header-content {
background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
padding: 2.5rem;
border-radius: 20px;
box-shadow: var(--shadow-xl);
border: 1px solid var(--border-color);
}
.title {
font-size: 2.5rem;
font-weight: 700;
color: var(--text-primary);
margin-bottom: 0.5rem;
display: flex;
align-items: center;
justify-content: center;
gap: 1rem;
}
.title-icon {
width: 40px;
height: 40px;
color: var(--primary-color);
}
.subtitle {
font-size: 1.1rem;
color: var(--text-secondary);
font-weight: 400;
}
/* Card */
.card {
background: var(--bg-secondary);
border-radius: 16px;
padding: 2rem;
margin-bottom: 2rem;
box-shadow: var(--shadow-lg);
border: 1px solid var(--border-color);
transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-xl);
}
/* Section Title */
.section-title {
font-size: 1.5rem;
font-weight: 600;
margin-bottom: 1.5rem;
color: var(--text-primary);
display: flex;
align-items: center;
gap: 0.5rem;
}
.section-icon {
width: 24px;
height: 24px;
color: var(--primary-color);
}
.section-icon.success {
color: var(--success-color);
}
.section-title.error {
color: var(--error-color);
}
/* Problem Input */
.problem-input {
width: 100%;
padding: 1rem;
background: var(--bg-tertiary);
border: 2px solid var(--border-color);
border-radius: 12px;
color: var(--text-primary);
font-size: 1rem;
font-family: 'Inter', monospace;
resize: vertical;
transition: border-color 0.3s, box-shadow 0.3s;
}
.problem-input:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
/* Controls */
.controls {
margin-top: 1.5rem;
}
.control-row {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1.5rem;
margin-bottom: 1.5rem;
}
.control-group {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.control-group.full-width {
margin-bottom: 1.5rem;
}
.control-label {
font-size: 0.9rem;
font-weight: 500;
color: var(--text-secondary);
display: flex;
align-items: center;
gap: 0.5rem;
}
.label-icon {
width: 16px;
height: 16px;
color: var(--primary-light);
}
.control-select,
.control-input {
padding: 0.75rem 1rem;
background: var(--bg-tertiary);
border: 2px solid var(--border-color);
border-radius: 8px;
color: var(--text-primary);
font-size: 1rem;
transition: border-color 0.3s, box-shadow 0.3s;
}
.control-select:focus,
.control-input:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
/* Solve Button */
.solve-button {
width: 100%;
padding: 1rem 2rem;
background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
color: white;
border: none;
border-radius: 12px;
font-size: 1.1rem;
font-weight: 600;
cursor: pointer;
transition: transform 0.2s, box-shadow 0.2s;
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
box-shadow: var(--shadow-md);
}
.solve-button:hover:not(:disabled) {
transform: translateY(-2px);
box-shadow: var(--shadow-lg);
}
.solve-button:active:not(:disabled) {
transform: translateY(0);
}
.solve-button:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.button-icon {
width: 20px;
height: 20px;
}
/* Status Section */
.status-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
flex-wrap: wrap;
gap: 1rem;
}
.status-indicator {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.75rem 1.25rem;
background: var(--bg-tertiary);
border-radius: 25px;
font-size: 0.95rem;
font-weight: 500;
}
.spinner {
width: 20px;
height: 20px;
border: 3px solid var(--border-color);
border-top-color: var(--primary-color);
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
.progress-info {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1rem;
}
.info-item {
padding: 1rem;
background: var(--bg-tertiary);
border-radius: 8px;
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.info-label {
font-size: 0.85rem;
color: var(--text-muted);
font-weight: 500;
}
.info-value {
font-size: 1rem;
color: var(--text-primary);
font-weight: 600;
}
/* Log Section */
.log-output {
background: var(--bg-primary);
border: 2px solid var(--border-color);
border-radius: 8px;
padding: 1rem;
max-height: 400px;
overflow-y: auto;
font-family: 'Monaco', 'Courier New', monospace;
font-size: 0.9rem;
line-height: 1.6;
color: var(--text-secondary);
}
.log-output::-webkit-scrollbar {
width: 8px;
}
.log-output::-webkit-scrollbar-track {
background: var(--bg-tertiary);
border-radius: 4px;
}
.log-output::-webkit-scrollbar-thumb {
background: var(--border-color);
border-radius: 4px;
}
.log-output::-webkit-scrollbar-thumb:hover {
background: var(--primary-color);
}
.log-line {
padding: 0.25rem 0;
word-wrap: break-word;
}
.log-line.success {
color: var(--success-color);
font-weight: 500;
}
.log-line.error {
color: var(--error-color);
}
.log-line.warning {
color: var(--warning-color);
}
/* Solution Section */
.solution-output {
background: var(--bg-primary);
border: 2px solid var(--success-color);
border-radius: 8px;
padding: 1.5rem;
max-height: 600px;
overflow-y: auto;
font-family: 'Monaco', 'Courier New', monospace;
font-size: 0.9rem;
line-height: 1.8;
color: var(--text-primary);
white-space: pre-wrap;
word-wrap: break-word;
}
.solution-footer {
margin-top: 1rem;
padding-top: 1rem;
border-top: 1px solid var(--border-color);
}
.log-path {
font-size: 0.85rem;
color: var(--text-muted);
font-family: 'Monaco', 'Courier New', monospace;
}
/* Error Section */
.error-output {
background: var(--bg-primary);
border: 2px solid var(--error-color);
border-radius: 8px;
padding: 1.5rem;
color: var(--error-color);
font-family: 'Monaco', 'Courier New', monospace;
font-size: 0.9rem;
}
/* Footer */
.footer {
text-align: center;
padding: 2rem 0;
color: var(--text-muted);
font-size: 0.9rem;
border-top: 1px solid var(--border-color);
margin-top: 3rem;
}
/* Responsive Design */
@media (max-width: 768px) {
.container {
padding: 1rem;
}
.title {
font-size: 2rem;
}
.subtitle {
font-size: 1rem;
}
.card {
padding: 1.5rem;
}
.control-row {
grid-template-columns: 1fr;
}
.status-header {
flex-direction: column;
align-items: flex-start;
}
}
/* Animation for cards appearing */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.card {
animation: fadeInUp 0.5s ease-out;
}