oliver-metadata-tool/static/css/admin.css
SamoilenkoVadym 3deaa5ef40 Initial commit: Oliver Metadata Tool (FastAPI)
Complete Flask → FastAPI migration with:
- FastAPI app with session auth, Azure AD SSO, rate limiting
- SQLite-backed session store (survives restarts)
- Bulk AI metadata generation with SSE progress
- Admin panel (user management, audit log, AI usage)
- Subpath deployment support (ROOT_PATH config)
- Docker + deploy.sh for production deployment
- Test suite (auth, upload, templates, imports, admin, sessions)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-02-09 21:23:42 +00:00

204 lines
3.2 KiB
CSS

/* Admin Dashboard Styles */
.admin-stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 15px;
margin-bottom: 25px;
}
.stat-card {
background: white;
border-radius: 12px;
padding: 20px;
text-align: center;
box-shadow: 0 2px 8px rgba(0,0,0,0.06);
border: 1px solid #e5e7eb;
}
.stat-value {
font-size: 28px;
font-weight: 700;
color: var(--primary-gold-dark, #e6b007);
}
.stat-label {
font-size: 13px;
color: #6b7280;
margin-top: 5px;
}
.admin-tabs {
display: flex;
gap: 5px;
margin-bottom: 20px;
border-bottom: 2px solid #e5e7eb;
padding-bottom: 0;
}
.admin-tab {
padding: 10px 20px;
border: none;
background: none;
cursor: pointer;
font-size: 14px;
font-weight: 500;
color: #6b7280;
border-bottom: 2px solid transparent;
margin-bottom: -2px;
transition: all 0.2s;
}
.admin-tab:hover {
color: #1f2937;
}
.admin-tab.active {
color: var(--primary-gold-dark, #e6b007);
border-bottom-color: var(--primary-gold, #FFC407);
}
.admin-panel {
background: white;
border-radius: 12px;
padding: 20px;
box-shadow: 0 2px 8px rgba(0,0,0,0.06);
border: 1px solid #e5e7eb;
}
.panel-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
}
.panel-header h3 {
margin: 0;
font-size: 18px;
color: #1f2937;
}
.admin-table-container {
overflow-x: auto;
}
.admin-table {
width: 100%;
border-collapse: collapse;
font-size: 13px;
}
.admin-table th,
.admin-table td {
padding: 10px 12px;
text-align: left;
border-bottom: 1px solid #e5e7eb;
}
.admin-table th {
background: #f9fafb;
font-weight: 600;
color: #374151;
white-space: nowrap;
}
.admin-table tr:hover {
background: #f9fafb;
}
.badge {
display: inline-block;
padding: 2px 8px;
border-radius: 10px;
font-size: 11px;
font-weight: 600;
}
.badge-admin {
background: #fef3c7;
color: #92400e;
}
.badge-user {
background: #dbeafe;
color: #1e40af;
}
.badge-active {
background: #d1fae5;
color: #065f46;
}
.badge-inactive {
background: #fee2e2;
color: #991b1b;
}
.btn-sm {
padding: 6px 14px;
font-size: 12px;
border-radius: 6px;
}
.btn-action {
padding: 4px 10px;
font-size: 11px;
border: 1px solid #d1d5db;
background: white;
border-radius: 4px;
cursor: pointer;
color: #374151;
}
.btn-action:hover {
background: #f3f4f6;
}
.btn-action.danger {
color: #dc2626;
border-color: #fca5a5;
}
.btn-action.danger:hover {
background: #fef2f2;
}
.audit-filters {
display: flex;
gap: 10px;
align-items: center;
}
.audit-filters select {
padding: 6px 10px;
border: 1px solid #d1d5db;
border-radius: 6px;
font-size: 13px;
}
.ai-stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 12px;
margin-bottom: 20px;
}
.ai-stat-card {
background: #f9fafb;
border-radius: 8px;
padding: 15px;
text-align: center;
}
.ai-stat-value {
font-size: 22px;
font-weight: 600;
color: #1f2937;
}
.ai-stat-label {
font-size: 12px;
color: #6b7280;
margin-top: 3px;
}