jytest/web/css/style.css

479 lines
7.1 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--primary: #6366f1;
--primary-dark: #4f46e5;
--success: #10b981;
--warning: #f59e0b;
--danger: #ef4444;
--bg: #f8fafc;
--card: #ffffff;
--text: #1e293b;
--text-light: #64748b;
--border: #e2e8f0;
--radius: 12px;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: var(--bg);
color: var(--text);
line-height: 1.6;
padding-bottom: 70px;
}
/* Header */
.header {
background: linear-gradient(135deg, var(--primary), var(--primary-dark));
color: white;
padding: 20px;
text-align: center;
position: sticky;
top: 0;
z-index: 100;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.header h1 {
font-size: 20px;
font-weight: 600;
}
/* Navigation */
.nav {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: var(--card);
display: flex;
justify-content: space-around;
padding: 10px 0;
box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
z-index: 100;
}
.nav-item {
display: flex;
flex-direction: column;
align-items: center;
text-decoration: none;
color: var(--text-light);
font-size: 12px;
padding: 5px 10px;
transition: color 0.2s;
}
.nav-item.active {
color: var(--primary);
}
.nav-item svg {
width: 24px;
height: 24px;
margin-bottom: 4px;
}
/* Container */
.container {
padding: 20px;
max-width: 600px;
margin: 0 auto;
}
/* Card */
.card {
background: var(--card);
border-radius: var(--radius);
padding: 20px;
margin-bottom: 16px;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.card-title {
font-size: 16px;
font-weight: 600;
margin-bottom: 16px;
color: var(--text);
}
/* Form */
.form-group {
margin-bottom: 16px;
}
.form-label {
display: block;
font-size: 14px;
font-weight: 500;
margin-bottom: 6px;
color: var(--text);
}
.form-input,
.form-select,
.form-textarea {
width: 100%;
padding: 12px;
border: 1px solid var(--border);
border-radius: 8px;
font-size: 14px;
transition: border-color 0.2s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
outline: none;
border-color: var(--primary);
}
.form-textarea {
resize: vertical;
min-height: 80px;
}
/* Button */
.btn {
display: inline-block;
padding: 12px 24px;
border: none;
border-radius: 8px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
text-align: center;
text-decoration: none;
}
.btn-primary {
background: var(--primary);
color: white;
}
.btn-primary:hover {
background: var(--primary-dark);
}
.btn-success {
background: var(--success);
color: white;
}
.btn-danger {
background: var(--danger);
color: white;
}
.btn-block {
display: block;
width: 100%;
}
.btn:disabled {
opacity: 0.6;
cursor: not-allowed;
}
/* Status Badge */
.badge {
display: inline-block;
padding: 4px 10px;
border-radius: 12px;
font-size: 12px;
font-weight: 500;
}
.badge-created {
background: #e0e7ff;
color: #3730a3;
}
.badge-queued {
background: #fef3c7;
color: #92400e;
}
.badge-running {
background: #dbeafe;
color: #1e40af;
}
.badge-success {
background: #d1fae5;
color: #065f46;
}
.badge-failed {
background: #fee2e2;
color: #991b1b;
}
.badge-canceled {
background: #f3f4f6;
color: #374151;
}
/* Task List */
.task-item {
background: var(--card);
border-radius: var(--radius);
padding: 16px;
margin-bottom: 12px;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.task-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 12px;
}
.task-title {
font-size: 14px;
font-weight: 600;
}
.task-meta {
font-size: 12px;
color: var(--text-light);
margin-bottom: 8px;
}
.task-actions {
display: flex;
gap: 8px;
margin-top: 12px;
}
.task-actions .btn {
padding: 8px 16px;
font-size: 13px;
}
/* Result */
.result {
background: #f0fdf4;
border: 1px solid #bbf7d0;
border-radius: var(--radius);
padding: 16px;
margin-top: 16px;
}
.result-title {
font-size: 14px;
font-weight: 600;
color: #065f46;
margin-bottom: 8px;
}
.result-video {
width: 100%;
border-radius: 8px;
margin-top: 12px;
}
/* Loading */
.loading {
text-align: center;
padding: 40px;
color: var(--text-light);
}
.spinner {
border: 3px solid var(--border);
border-top: 3px solid var(--primary);
border-radius: 50%;
width: 40px;
height: 40px;
animation: spin 1s linear infinite;
margin: 0 auto 16px;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* Empty State */
.empty {
text-align: center;
padding: 60px 20px;
color: var(--text-light);
}
.empty svg {
width: 80px;
height: 80px;
margin-bottom: 16px;
opacity: 0.5;
}
/* Alert */
.alert {
padding: 12px 16px;
border-radius: 8px;
margin-bottom: 16px;
font-size: 14px;
}
.alert-success {
background: #d1fae5;
color: #065f46;
}
.alert-error {
background: #fee2e2;
color: #991b1b;
}
.alert-info {
background: #dbeafe;
color: #1e40af;
}
/* Tabs */
.tabs {
display: flex;
background: var(--card);
border-radius: var(--radius);
padding: 4px;
margin-bottom: 20px;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.tab {
flex: 1;
padding: 10px;
text-align: center;
border-radius: 8px;
cursor: pointer;
font-size: 14px;
font-weight: 500;
transition: all 0.2s;
color: var(--text-light);
}
.tab.active {
background: var(--primary);
color: white;
}
/* Stage indicator */
.stages {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 16px;
}
.stage {
padding: 6px 12px;
border-radius: 16px;
font-size: 12px;
background: var(--border);
color: var(--text-light);
}
.stage.active {
background: var(--primary);
color: white;
}
.stage.completed {
background: var(--success);
color: white;
}
/* Test Data Picker */
.btn-testdata {
display: inline-block;
margin-top: 8px;
padding: 6px 12px;
background: #f0f9ff;
border: 1px solid #bae6fd;
border-radius: 6px;
font-size: 13px;
color: #0369a1;
cursor: pointer;
transition: all 0.2s;
}
.btn-testdata:hover {
background: #e0f2fe;
border-color: #7dd3fc;
}
.testdata-picker {
margin-top: 10px;
padding: 12px;
background: #fafafa;
border: 1px solid var(--border);
border-radius: 8px;
}
.testdata-item {
display: flex;
align-items: center;
gap: 12px;
padding: 10px;
margin-bottom: 8px;
background: white;
border: 1px solid var(--border);
border-radius: 8px;
cursor: pointer;
transition: all 0.2s;
}
.testdata-item:hover {
border-color: var(--primary);
background: #f5f3ff;
}
.testdata-item.selected {
border-color: var(--primary);
background: #ede9fe;
}
.testdata-item:last-child {
margin-bottom: 0;
}
.testdata-thumb {
width: 50px;
height: 50px;
object-fit: cover;
border-radius: 6px;
border: 1px solid var(--border);
}
.testdata-info {
display: flex;
flex-direction: column;
gap: 2px;
}
.testdata-name {
font-size: 14px;
font-weight: 500;
color: var(--text);
}
.testdata-url {
font-size: 11px;
color: var(--text-light);
}
.testdata-empty {
text-align: center;
padding: 20px;
color: var(--text-light);
font-size: 13px;
}