hm_ai_qc_report_tool/static/css/unified_theme.css
nickviljoen e6f3e9387e Add modular architecture, core framework, and web UI
New blueprint-based module system (hm_qc, video_qc, video_master,
reporting), core framework (database, config, templates), and
unified web interface with progress tracking and tab navigation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 11:39:04 +02:00

419 lines
8.1 KiB
CSS

/**
* Unified H&M Theme for QC Platform
*
* Colors:
* - Primary Black: #000000
* - Primary Yellow: #FFDD00
* - Success Green: #28a745
* - Danger Red: #dc3545
* - Warning Orange: #ffc107
* - Info Blue: #17a2b8
*/
/* ============================================
Global Styles
============================================ */
:root {
--hm-black: #000000;
--hm-yellow: #FFDD00;
--hm-gray-light: #f8f9fa;
--hm-gray-medium: #6c757d;
--hm-gray-dark: #343a40;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
background-color: #f5f5f5;
min-height: 100vh;
display: flex;
flex-direction: column;
}
/* ============================================
Top Navigation Bar
============================================ */
.hm-navbar {
background-color: var(--hm-black) !important;
border-bottom: 3px solid var(--hm-yellow);
padding: 1rem 1.5rem;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.navbar-brand-wrapper {
display: flex;
align-items: center;
}
.hm-navbar .navbar-brand {
color: var(--hm-yellow) !important;
font-size: 1.5rem;
font-weight: 700;
letter-spacing: 0.5px;
margin: 0;
}
.version-badge {
font-size: 0.7rem;
padding: 0.25rem 0.5rem;
vertical-align: middle;
}
#userInfo {
color: white;
}
#userName {
font-size: 0.9rem;
}
#logoutBtn:hover {
background-color: var(--hm-yellow);
color: var(--hm-black);
border-color: var(--hm-yellow);
}
/* ============================================
Content Wrapper
============================================ */
.content-wrapper {
flex: 1;
padding: 2rem;
max-width: 1400px;
width: 100%;
margin: 0 auto;
}
/* ============================================
Cards and Containers
============================================ */
.card {
border: none;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
margin-bottom: 1.5rem;
border-radius: 8px;
}
.card-header {
background-color: var(--hm-black);
color: var(--hm-yellow);
font-weight: 600;
border-radius: 8px 8px 0 0 !important;
padding: 1rem 1.25rem;
}
.card-body {
padding: 1.5rem;
}
/* ============================================
Status Badges
============================================ */
.badge {
padding: 0.4rem 0.8rem;
font-size: 0.85rem;
font-weight: 600;
border-radius: 4px;
}
.badge-passed,
.badge-success {
background-color: #28a745 !important;
color: white;
}
.badge-error,
.badge-failed {
background-color: #dc3545 !important;
color: white;
}
.badge-warning {
background-color: #ffc107 !important;
color: #000;
}
.badge-skipped {
background-color: #6c757d !important;
color: white;
}
.badge-info {
background-color: #17a2b8 !important;
color: white;
}
/* ============================================
Buttons
============================================ */
.btn-hm-primary {
background-color: var(--hm-yellow);
color: var(--hm-black);
border: none;
font-weight: 600;
padding: 0.5rem 1.5rem;
border-radius: 4px;
transition: all 0.3s ease;
}
.btn-hm-primary:hover {
background-color: #e6c900;
color: var(--hm-black);
transform: translateY(-1px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.btn-hm-secondary {
background-color: var(--hm-black);
color: var(--hm-yellow);
border: 2px solid var(--hm-yellow);
font-weight: 600;
padding: 0.5rem 1.5rem;
border-radius: 4px;
transition: all 0.3s ease;
}
.btn-hm-secondary:hover {
background-color: var(--hm-yellow);
color: var(--hm-black);
}
/* ============================================
Forms
============================================ */
.form-control:focus {
border-color: var(--hm-yellow);
box-shadow: 0 0 0 0.2rem rgba(255, 221, 0, 0.25);
}
.form-label {
font-weight: 600;
color: var(--hm-gray-dark);
margin-bottom: 0.5rem;
}
.form-select:focus {
border-color: var(--hm-yellow);
box-shadow: 0 0 0 0.2rem rgba(255, 221, 0, 0.25);
}
/* ============================================
Alerts
============================================ */
.alert {
border-radius: 8px;
border: none;
padding: 1rem 1.25rem;
margin-bottom: 1.5rem;
}
.alert-success {
background-color: #d4edda;
color: #155724;
}
.alert-danger {
background-color: #f8d7da;
color: #721c24;
}
.alert-warning {
background-color: #fff3cd;
color: #856404;
}
.alert-info {
background-color: #d1ecf1;
color: #0c5460;
}
/* ============================================
Progress Bars
============================================ */
.progress {
height: 1.5rem;
border-radius: 8px;
background-color: #e9ecef;
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}
.progress-bar {
background-color: var(--hm-yellow);
color: var(--hm-black);
font-weight: 600;
font-size: 0.9rem;
transition: width 0.4s ease;
}
.progress-bar-success {
background-color: #28a745;
color: white;
}
.progress-bar-danger {
background-color: #dc3545;
color: white;
}
/* ============================================
Tables
============================================ */
.table {
background-color: white;
border-radius: 8px;
overflow: hidden;
}
.table thead th {
background-color: var(--hm-black);
color: var(--hm-yellow);
border: none;
font-weight: 600;
text-transform: uppercase;
font-size: 0.85rem;
letter-spacing: 0.5px;
padding: 1rem;
}
.table tbody tr {
transition: background-color 0.2s ease;
}
.table tbody tr:hover {
background-color: #f8f9fa;
}
.table tbody td {
padding: 0.75rem 1rem;
vertical-align: middle;
}
/* ============================================
Loading States
============================================ */
.spinner-hm {
border: 3px solid var(--hm-gray-light);
border-top: 3px solid var(--hm-yellow);
border-radius: 50%;
width: 40px;
height: 40px;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.loading-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.7);
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
}
.loading-content {
text-align: center;
color: white;
}
/* ============================================
Footer
============================================ */
.hm-footer {
background-color: var(--hm-black);
color: var(--hm-yellow);
padding: 1.5rem 0;
margin-top: auto;
border-top: 3px solid var(--hm-yellow);
}
.hm-footer a {
text-decoration: none;
transition: color 0.3s ease;
}
.hm-footer a:hover {
color: var(--hm-yellow);
text-decoration: underline;
}
/* ============================================
Accordion (for reports)
============================================ */
.accordion-button {
background-color: white;
color: var(--hm-black);
font-weight: 600;
}
.accordion-button:not(.collapsed) {
background-color: var(--hm-yellow);
color: var(--hm-black);
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
}
.accordion-button:focus {
border-color: var(--hm-yellow);
box-shadow: 0 0 0 0.2rem rgba(255, 221, 0, 0.25);
}
/* ============================================
Utilities
============================================ */
.text-hm-yellow {
color: var(--hm-yellow) !important;
}
.bg-hm-black {
background-color: var(--hm-black) !important;
}
.bg-hm-yellow {
background-color: var(--hm-yellow) !important;
}
.border-hm-yellow {
border-color: var(--hm-yellow) !important;
}
/* ============================================
Responsive Design
============================================ */
@media (max-width: 768px) {
.content-wrapper {
padding: 1rem;
}
.hm-navbar {
padding: 0.75rem 1rem;
}
.hm-navbar .navbar-brand {
font-size: 1.25rem;
}
#userName {
display: none;
}
}