codeflash-internal/experiments/optimization-factory/server/static/style.css
Sarthak Agarwal 0c16414301
optimization Pipeline (#1860)
Co-authored-by: saga4 <saga4@codeflashs-MacBook-Air.local>
2025-10-02 12:21:10 -07:00

640 lines
9.7 KiB
CSS

* {
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
"Helvetica Neue", Arial, sans-serif;
margin: 0;
padding: 0;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
color: #333;
}
.container {
max-width: 1200px;
margin: 20px auto;
padding: 0;
background: #fff;
border-radius: 12px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
overflow: hidden;
}
.header {
background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
color: white;
padding: 24px 32px;
text-align: center;
}
.header h1 {
margin: 0;
font-size: 28px;
font-weight: 600;
}
.header p {
margin: 8px 0 0 0;
opacity: 0.9;
font-size: 16px;
}
.content {
padding: 32px;
}
.actions {
display: flex;
gap: 12px;
margin-bottom: 24px;
flex-wrap: wrap;
}
.btn {
padding: 12px 20px;
border: none;
border-radius: 8px;
cursor: pointer;
font-weight: 500;
font-size: 14px;
transition: all 0.2s ease;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 8px;
}
.btn-primary {
background: #4f46e5;
color: white;
}
.btn-primary:hover {
background: #4338ca;
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}
.btn-success {
background: #10b981;
color: white;
}
.btn-success:hover {
background: #059669;
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.btn-danger {
background: #ef4444;
color: white;
}
.btn-danger:hover {
background: #dc2626;
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}
.btn-secondary {
background: #6b7280;
color: white;
}
.btn-secondary:hover {
background: #4b5563;
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}
.btn-sm {
padding: 8px 12px;
font-size: 12px;
}
.form-section {
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 12px;
padding: 24px;
margin-bottom: 32px;
}
.form-section h2 {
margin: 0 0 20px 0;
color: #1e293b;
font-size: 20px;
font-weight: 600;
}
/* Tab styling */
.form-tabs {
display: flex;
margin-bottom: 20px;
border-bottom: 2px solid #e2e8f0;
gap: 4px;
}
.tab-btn {
background: none;
border: none;
padding: 12px 20px;
cursor: pointer;
color: #64748b;
font-weight: 500;
border-bottom: 3px solid transparent;
transition: all 0.3s ease;
border-radius: 8px 8px 0 0;
position: relative;
top: 2px;
}
.tab-btn:hover {
color: #3b82f6;
background: rgba(59, 130, 246, 0.05);
}
.tab-btn.active {
color: #3b82f6;
border-bottom-color: #3b82f6;
background: white;
}
.tab-content {
display: none;
}
.tab-content.active {
display: block;
}
.form-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 16px;
margin-bottom: 20px;
}
.form-group {
display: flex;
flex-direction: column;
}
.form-group label {
font-weight: 500;
color: #374151;
margin-bottom: 6px;
font-size: 14px;
}
.form-group input,
.form-group select {
padding: 12px 16px;
border: 1px solid #d1d5db;
border-radius: 8px;
font-size: 14px;
transition: all 0.2s ease;
background: white;
}
.form-group input:focus,
.form-group select:focus {
outline: none;
border-color: #4f46e5;
box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
.form-actions {
display: flex;
gap: 12px;
flex-wrap: wrap;
}
.table-section {
margin-bottom: 32px;
}
.table-section h2 {
margin: 0 0 16px 0;
color: #1e293b;
font-size: 20px;
font-weight: 600;
}
.table-wrapper {
background: white;
border-radius: 12px;
overflow: hidden;
border: 1px solid #e2e8f0;
}
table {
width: 100%;
border-collapse: collapse;
}
th {
background: #f1f5f9;
color: #475569;
font-weight: 600;
padding: 16px;
text-align: left;
font-size: 14px;
border-bottom: 1px solid #e2e8f0;
}
td {
padding: 16px;
border-bottom: 1px solid #f1f5f9;
font-size: 14px;
vertical-align: middle;
}
tbody tr:hover {
background: #f8fafc;
}
.repo-url {
color: #4f46e5;
font-weight: 500;
max-width: 300px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.tier-badge {
display: inline-block;
padding: 4px 8px;
border-radius: 6px;
font-size: 12px;
font-weight: 500;
text-transform: uppercase;
}
.tier-small {
background: #dbeafe;
color: #1e40af;
}
.tier-medium {
background: #fef3c7;
color: #d97706;
}
.tier-large {
background: #fee2e2;
color: #dc2626;
}
.job-id {
font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
font-size: 12px;
color: #6b7280;
max-width: 120px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.action-buttons {
display: flex;
gap: 4px;
flex-wrap: wrap;
align-items: center;
justify-content: flex-start;
}
.action-buttons .btn-sm {
padding: 6px 10px;
font-size: 11px;
min-width: 70px;
white-space: nowrap;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 4px;
font-weight: 500;
}
.action-buttons .btn-sm span {
font-size: 12px;
}
.logs-section {
margin-top: 32px;
}
.logs-section h2 {
margin: 0 0 16px 0;
color: #1e293b;
font-size: 20px;
font-weight: 600;
}
.logs-container {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
}
.log-panel {
background: white;
border: 1px solid #e2e8f0;
border-radius: 12px;
overflow: hidden;
}
.log-panel h3 {
background: #f8fafc;
margin: 0;
padding: 16px 20px;
color: #374151;
font-size: 16px;
font-weight: 600;
border-bottom: 1px solid #e2e8f0;
}
.log-content {
background: #1e293b;
color: #e2e8f0;
padding: 20px;
font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
font-size: 13px;
line-height: 1.5;
max-height: 400px;
overflow: auto;
margin: 0;
white-space: pre-wrap;
word-wrap: break-word;
}
.log-content:empty:after {
content: "No data available. Click Status or Logs buttons to load information.";
color: #64748b;
font-style: italic;
}
.loading {
opacity: 0.6;
pointer-events: none;
}
/* Bulk upload styling */
.bulk-upload-section {
max-width: 100%;
}
.file-input-wrapper {
position: relative;
display: inline-block;
width: 100%;
cursor: pointer;
display: flex;
align-items: center;
padding: 12px 16px;
border: 2px dashed #cbd5e0;
border-radius: 8px;
background: #f7fafc;
transition: all 0.3s ease;
min-height: 48px;
}
.file-input-wrapper input[type="file"] {
position: absolute;
left: -9999px;
}
.file-input-wrapper:hover {
border-color: #3b82f6;
background: #eff6ff;
}
.file-input-wrapper.has-file {
border-color: #10b981;
background: #f0fdf4;
border-style: solid;
}
.file-input-text {
color: #64748b;
font-size: 14px;
}
.file-input-wrapper.has-file .file-input-text {
color: #059669;
font-weight: 500;
}
.help-text {
margin-top: 8px;
font-size: 12px;
color: #6b7280;
line-height: 1.4;
}
.help-text a {
color: #3b82f6;
text-decoration: none;
}
.help-text a:hover {
text-decoration: underline;
}
.csv-preview,
.validation-results {
margin-top: 20px;
padding: 16px;
border-radius: 8px;
border: 1px solid #e2e8f0;
background: white;
}
.csv-preview h4,
.validation-results h4 {
margin: 0 0 12px 0;
color: #1e293b;
font-size: 16px;
font-weight: 600;
}
.csv-content {
max-height: 200px;
overflow: auto;
background: #f8fafc;
padding: 12px;
border-radius: 6px;
font-family: "Courier New", monospace;
font-size: 12px;
line-height: 1.4;
white-space: pre-wrap;
}
.validation-summary {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
gap: 12px;
margin-bottom: 16px;
}
.validation-stat {
text-align: center;
padding: 12px;
border-radius: 8px;
font-size: 14px;
}
.validation-stat.total {
background: #f1f5f9;
color: #475569;
}
.validation-stat.valid {
background: #f0fdf4;
color: #059669;
}
.validation-stat.warnings {
background: #fffbeb;
color: #d97706;
}
.validation-stat.errors {
background: #fef2f2;
color: #dc2626;
}
.validation-stat-number {
display: block;
font-size: 20px;
font-weight: 700;
margin-bottom: 4px;
}
.validation-details {
max-height: 300px;
overflow-y: auto;
}
.validation-row {
padding: 12px;
margin-bottom: 8px;
border-radius: 6px;
border-left: 4px solid #e2e8f0;
}
.validation-row.has-errors {
background: #fef2f2;
border-left-color: #dc2626;
}
.validation-row.has-warnings {
background: #fffbeb;
border-left-color: #d97706;
}
.validation-row.valid {
background: #f0fdf4;
border-left-color: #059669;
}
.validation-row-header {
font-weight: 600;
margin-bottom: 6px;
color: #374151;
font-size: 14px;
}
.validation-messages {
list-style: none;
padding: 0;
margin: 0;
}
.validation-messages li {
padding: 4px 0;
font-size: 13px;
display: flex;
align-items: center;
gap: 6px;
}
.validation-messages .error {
color: #dc2626;
}
.validation-messages .warning {
color: #d97706;
}
.validation-messages .error::before {
content: "❌";
font-size: 12px;
}
.validation-messages .warning::before {
content: "⚠️";
font-size: 12px;
}
@media (max-width: 768px) {
.container {
margin: 10px;
border-radius: 8px;
}
.content {
padding: 20px;
}
.header {
padding: 20px;
}
.header h1 {
font-size: 24px;
}
.logs-container {
grid-template-columns: 1fr;
}
.form-grid {
grid-template-columns: 1fr;
}
.actions {
justify-content: center;
}
.action-buttons {
justify-content: center;
}
.form-tabs {
flex-direction: column;
gap: 0;
}
.tab-btn {
border-radius: 0;
border-bottom: 1px solid #e2e8f0;
top: 0;
}
.tab-btn.active {
border-bottom-color: #3b82f6;
}
.validation-summary {
grid-template-columns: repeat(2, 1fr);
}
.csv-content {
font-size: 11px;
}
}