Spaces:
Running
Running
| /* style.css - Industrial Tech Theme v5.0 (with Loader) */ | |
| /* ... (all existing styles from :root to .kpi-icon-wrapper remain the same) ... */ | |
| :root { | |
| --bg-dark: #1a202c; /* Very dark blue, almost black */ | |
| --bg-panel: #2d3748; /* Dark slate gray for panels/cards */ | |
| --border-color: #4a5568; /* Muted gray for borders */ | |
| --text-primary: #e2e8f0; /* Light gray for primary text */ | |
| --text-secondary: #a0aec0; /* Softer gray for secondary text */ | |
| --accent-blue: #4299e1; /* Vibrant blue for accents, charts, links */ | |
| --accent-green: #48bb78; /* Green for success/positive trends */ | |
| --accent-yellow: #f6e05e; /* Yellow for warnings */ | |
| --accent-red: #f56565; /* Red for critical/danger */ | |
| } | |
| body { | |
| font-family: 'Inter', sans-serif; | |
| background-color: var(--bg-dark); | |
| color: var(--text-primary); | |
| display: flex; | |
| flex-direction: column; | |
| min-height: 100vh; | |
| } | |
| main { | |
| flex-grow: 1; | |
| } | |
| .dashboard-card { | |
| background-color: var(--bg-panel); | |
| border: 1px solid var(--border-color); | |
| border-radius: 8px; | |
| box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); | |
| transition: all 0.3s ease; | |
| color: var(--text-primary); | |
| } | |
| .dashboard-card:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2); | |
| border-color: var(--accent-blue); | |
| } | |
| .header, .modal-content { | |
| background-color: var(--bg-panel); | |
| border-color: var(--border-color); | |
| } | |
| .modal-backdrop { | |
| background-color: rgba(26, 32, 44, 0.8); | |
| backdrop-filter: blur(5px); | |
| transition: opacity 0.3s ease; | |
| } | |
| .modal-content { | |
| transition: all 0.3s ease; | |
| animation: scale-up 0.3s ease forwards; | |
| } | |
| @keyframes scale-up { | |
| from { transform: scale(0.95); opacity: 0; } | |
| to { transform: scale(1); opacity: 1; } | |
| } | |
| .btn { padding: 0.5rem 1rem; border-radius: 6px; font-weight: 600; transition: all 0.2s ease; text-align: center; border: 1px solid transparent; cursor: pointer; } | |
| .btn:active { transform: scale(0.97); } | |
| .btn-primary { background-color: var(--accent-blue); color: var(--bg-dark); } | |
| .btn-primary:hover { background-color: #63b3ed; } | |
| .btn-secondary { background-color: transparent; border-color: var(--accent-blue); color: var(--accent-blue); } | |
| .btn-secondary:hover { background-color: rgba(66, 153, 225, 0.1); } | |
| .btn-danger { background-color: transparent; border-color: var(--accent-red); color: var(--accent-red); } | |
| .btn-danger:hover { background-color: rgba(245, 101, 101, 0.1); } | |
| .input-field { background-color: var(--bg-dark); border: 1px solid var(--border-color); color: var(--text-primary); border-radius: 6px; padding: 0.5rem 0.75rem; } | |
| .input-field:focus { outline: none; border-color: var(--accent-blue); box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.5); } | |
| #toast-container { position: fixed; top: 20px; right: 20px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; } | |
| .toast { padding: 12px 16px; border-radius: 6px; color: var(--bg-dark); font-weight: 500; font-size: 14px; display: flex; align-items: center; gap: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); opacity: 0; transform: translateX(100%); transition: all 0.3s ease-in-out; } | |
| .toast.show { opacity: 1; transform: translateX(0); } | |
| .toast-success { background-color: var(--accent-green); } | |
| .toast-error { background-color: var(--accent-red); } | |
| .toast-info { background-color: var(--accent-blue); color: var(--text-primary); } | |
| .icon-btn { color: var(--text-secondary); cursor: pointer; transition: color 0.2s; } | |
| .icon-btn:hover { color: var(--accent-blue); } | |
| ::-webkit-scrollbar { width: 8px; } | |
| ::-webkit-scrollbar-track { background: var(--bg-dark); } | |
| ::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; } | |
| ::-webkit-scrollbar-thumb:hover { background: var(--accent-blue); } | |
| .kpi-icon-wrapper { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; } | |
| .po-item-row { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 0.75rem 0.5rem; border-bottom: 1px solid var(--border-color); } | |
| .po-item-row:last-child { border-bottom: none; } | |
| /* NEW: Loader Styles */ | |
| .loader-spinner { | |
| border: 4px solid var(--border-color); | |
| border-top: 4px solid var(--accent-blue); | |
| border-radius: 50%; | |
| width: 50px; | |
| height: 50px; | |
| animation: spin 1s linear infinite; | |
| } | |
| @keyframes spin { | |
| 0% { transform: rotate(0deg); } | |
| 100% { transform: rotate(360deg); } | |
| } |