516 lines
8.0 KiB
CSS
516 lines
8.0 KiB
CSS
/* Admin Page Styles */
|
|
.admin-page {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 0;
|
|
}
|
|
|
|
.page-header {
|
|
text-align: center;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.page-header h1 {
|
|
font-size: 2.5rem;
|
|
font-weight: 700;
|
|
background: linear-gradient(135deg, #1e293b, #3b82f6);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
margin: 0 0 0.5rem 0;
|
|
}
|
|
|
|
.page-header p {
|
|
color: #64748b;
|
|
font-size: 1.125rem;
|
|
margin: 0;
|
|
}
|
|
|
|
/* Message Styles */
|
|
.message {
|
|
padding: 1rem;
|
|
border-radius: 0.75rem;
|
|
margin-bottom: 1.5rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.message.success {
|
|
background: #d1fae5;
|
|
border: 1px solid #a7f3d0;
|
|
color: #065f46;
|
|
}
|
|
|
|
.message.error {
|
|
background: #fee2e2;
|
|
border: 1px solid #fecaca;
|
|
color: #991b1b;
|
|
}
|
|
|
|
/* Admin Section */
|
|
.admin-section {
|
|
background: white;
|
|
border-radius: 1rem;
|
|
padding: 2rem;
|
|
margin-bottom: 2rem;
|
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
|
|
border: 1px solid #e2e8f0;
|
|
}
|
|
|
|
.section-header {
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.section-header h2 {
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
color: #1e293b;
|
|
margin: 0 0 0.5rem 0;
|
|
}
|
|
|
|
.section-header p {
|
|
color: #64748b;
|
|
margin: 0;
|
|
}
|
|
|
|
/* Stats Grid */
|
|
.stats-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.stat-card {
|
|
background: #f8fafc;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 0.75rem;
|
|
padding: 1.5rem;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.stat-card:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.stat-icon {
|
|
font-size: 2rem;
|
|
width: 3rem;
|
|
height: 3rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
|
|
border-radius: 0.75rem;
|
|
}
|
|
|
|
.stat-content {
|
|
flex: 1;
|
|
}
|
|
|
|
.stat-number {
|
|
font-size: 2rem;
|
|
font-weight: 700;
|
|
color: #1e293b;
|
|
line-height: 1;
|
|
}
|
|
|
|
.stat-label {
|
|
color: #64748b;
|
|
font-size: 0.875rem;
|
|
margin-top: 0.25rem;
|
|
}
|
|
|
|
/* Model Status */
|
|
.model-status-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.model-card {
|
|
background: #f8fafc;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 0.75rem;
|
|
padding: 1.5rem;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.model-card:hover {
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.model-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.model-header h3 {
|
|
margin: 0;
|
|
color: #1e293b;
|
|
font-size: 1.125rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.status-indicator {
|
|
padding: 0.25rem 0.75rem;
|
|
border-radius: 0.375rem;
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
text-transform: capitalize;
|
|
}
|
|
|
|
.status-indicator.online {
|
|
background: #d1fae5;
|
|
color: #065f46;
|
|
}
|
|
|
|
.status-indicator.offline {
|
|
background: #fee2e2;
|
|
color: #991b1b;
|
|
}
|
|
|
|
.status-indicator.unknown {
|
|
background: #f3f4f6;
|
|
color: #6b7280;
|
|
}
|
|
|
|
.model-card p {
|
|
color: #64748b;
|
|
font-size: 0.875rem;
|
|
margin: 0 0 1rem 0;
|
|
}
|
|
|
|
.model-metrics {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.metric {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.metric-label {
|
|
color: #64748b;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.metric-value {
|
|
color: #1e293b;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* Feedback Management */
|
|
.feedback-overview {
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.feedback-stats {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
|
|
gap: 1rem;
|
|
background: #f8fafc;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 0.75rem;
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.stat-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.25rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.stat-label {
|
|
color: #64748b;
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.stat-value {
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
color: #1e293b;
|
|
}
|
|
|
|
.stat-value.positive {
|
|
color: #10b981;
|
|
}
|
|
|
|
.stat-value.negative {
|
|
color: #ef4444;
|
|
}
|
|
|
|
.stat-value.correction {
|
|
color: #f59e0b;
|
|
}
|
|
|
|
.stat-value.suggestion {
|
|
color: #8b5cf6;
|
|
}
|
|
|
|
/* Recent Feedback */
|
|
.recent-feedback h3 {
|
|
margin: 0 0 1rem 0;
|
|
color: #1e293b;
|
|
font-size: 1.125rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.feedback-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.feedback-item {
|
|
background: #f8fafc;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 0.75rem;
|
|
padding: 1.5rem;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.feedback-item:hover {
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.feedback-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.feedback-type {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.type-badge {
|
|
padding: 0.25rem 0.75rem;
|
|
border-radius: 0.375rem;
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
text-transform: capitalize;
|
|
}
|
|
|
|
.type-badge.positive {
|
|
background: #d1fae5;
|
|
color: #065f46;
|
|
}
|
|
|
|
.type-badge.negative {
|
|
background: #fee2e2;
|
|
color: #991b1b;
|
|
}
|
|
|
|
.type-badge.correction {
|
|
background: #fef3c7;
|
|
color: #92400e;
|
|
}
|
|
|
|
.type-badge.suggestion {
|
|
background: #e9d5ff;
|
|
color: #7c3aed;
|
|
}
|
|
|
|
.feedback-rating {
|
|
color: #64748b;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.feedback-actions {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.process-btn {
|
|
background: #3b82f6;
|
|
color: white;
|
|
border: none;
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 0.375rem;
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.process-btn:hover:not(:disabled) {
|
|
background: #2563eb;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.process-btn:disabled {
|
|
background: #10b981;
|
|
cursor: not-allowed;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.feedback-comment,
|
|
.feedback-correction {
|
|
background: white;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 0.5rem;
|
|
padding: 0.75rem;
|
|
margin-bottom: 0.75rem;
|
|
font-size: 0.875rem;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.feedback-meta {
|
|
display: flex;
|
|
gap: 1rem;
|
|
font-size: 0.75rem;
|
|
color: #64748b;
|
|
padding-top: 0.75rem;
|
|
border-top: 1px solid #e2e8f0;
|
|
}
|
|
|
|
/* System Actions */
|
|
.system-actions {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
gap: 2rem;
|
|
}
|
|
|
|
.action-group h3 {
|
|
margin: 0 0 1rem 0;
|
|
color: #1e293b;
|
|
font-size: 1.125rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.action-buttons {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.action-btn {
|
|
padding: 0.75rem 1rem;
|
|
border: none;
|
|
border-radius: 0.5rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
text-align: left;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.action-btn.primary {
|
|
background: linear-gradient(135deg, #3b82f6, #8b5cf6);
|
|
color: white;
|
|
}
|
|
|
|
.action-btn.primary:hover {
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
|
|
}
|
|
|
|
.action-btn.secondary {
|
|
background: #f1f5f9;
|
|
color: #64748b;
|
|
border: 1px solid #e2e8f0;
|
|
}
|
|
|
|
.action-btn.secondary:hover {
|
|
background: #e2e8f0;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
/* Loading State */
|
|
.loading-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 4rem;
|
|
color: #64748b;
|
|
}
|
|
|
|
.loading-spinner {
|
|
width: 2rem;
|
|
height: 2rem;
|
|
border: 3px solid #e2e8f0;
|
|
border-top: 3px solid #3b82f6;
|
|
border-radius: 50%;
|
|
animation: spin 1s linear infinite;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* Responsive Design */
|
|
@media (max-width: 768px) {
|
|
.stats-grid {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
|
|
.model-status-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.feedback-stats {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
|
|
.system-actions {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.feedback-header {
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.feedback-actions {
|
|
align-self: flex-end;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.stats-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.feedback-stats {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.page-header h1 {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.page-header p {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.section-header h2 {
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.admin-section {
|
|
padding: 1.5rem;
|
|
}
|
|
}
|