Ultronprime commited on
Commit
b6c18e9
·
verified ·
1 Parent(s): 4ea623c

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +28 -74
style.css CHANGED
@@ -1,4 +1,6 @@
1
- /* style.css - Industrial Tech Theme v4.0 */
 
 
2
 
3
  :root {
4
  --bg-dark: #1a202c; /* Very dark blue, almost black */
@@ -25,7 +27,6 @@ main {
25
  flex-grow: 1;
26
  }
27
 
28
- /* Base Card Style */
29
  .dashboard-card {
30
  background-color: var(--bg-panel);
31
  border: 1px solid var(--border-color);
@@ -41,7 +42,6 @@ main {
41
  border-color: var(--accent-blue);
42
  }
43
 
44
- /* Header & Modals */
45
  .header, .modal-content {
46
  background-color: var(--bg-panel);
47
  border-color: var(--border-color);
@@ -63,58 +63,18 @@ main {
63
  to { transform: scale(1); opacity: 1; }
64
  }
65
 
66
- /* Buttons */
67
- .btn {
68
- padding: 0.5rem 1rem;
69
- border-radius: 6px;
70
- font-weight: 600;
71
- transition: all 0.2s ease;
72
- text-align: center;
73
- border: 1px solid transparent;
74
- cursor: pointer;
75
- }
76
- .btn:active {
77
- transform: scale(0.97);
78
- }
79
- .btn-primary {
80
- background-color: var(--accent-blue);
81
- color: var(--bg-dark);
82
- }
83
- .btn-primary:hover {
84
- background-color: #63b3ed;
85
- }
86
- .btn-secondary {
87
- background-color: transparent;
88
- border-color: var(--accent-blue);
89
- color: var(--accent-blue);
90
- }
91
- .btn-secondary:hover {
92
- background-color: rgba(66, 153, 225, 0.1);
93
- }
94
- .btn-danger {
95
- background-color: transparent;
96
- border-color: var(--accent-red);
97
- color: var(--accent-red);
98
- }
99
- .btn-danger:hover {
100
- background-color: rgba(245, 101, 101, 0.1);
101
- }
102
 
103
- /* Input Fields */
104
- .input-field {
105
- background-color: var(--bg-dark);
106
- border: 1px solid var(--border-color);
107
- color: var(--text-primary);
108
- border-radius: 6px;
109
- padding: 0.5rem 0.75rem;
110
- }
111
- .input-field:focus {
112
- outline: none;
113
- border-color: var(--accent-blue);
114
- box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.5);
115
- }
116
 
117
- /* Toast Notifications */
118
  #toast-container { position: fixed; top: 20px; right: 20px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; }
119
  .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; }
120
  .toast.show { opacity: 1; transform: translateX(0); }
@@ -122,36 +82,30 @@ main {
122
  .toast-error { background-color: var(--accent-red); }
123
  .toast-info { background-color: var(--accent-blue); color: var(--text-primary); }
124
 
125
- /* Icons */
126
  .icon-btn { color: var(--text-secondary); cursor: pointer; transition: color 0.2s; }
127
  .icon-btn:hover { color: var(--accent-blue); }
128
 
129
- /* Scrollbar */
130
  ::-webkit-scrollbar { width: 8px; }
131
  ::-webkit-scrollbar-track { background: var(--bg-dark); }
132
  ::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
133
  ::-webkit-scrollbar-thumb:hover { background: var(--accent-blue); }
134
 
135
- /* Custom Component Styles */
136
- .kpi-icon-wrapper {
137
- width: 48px;
138
- height: 48px;
 
 
 
 
 
139
  border-radius: 50%;
140
- display: flex;
141
- align-items: center;
142
- justify-content: center;
143
- flex-shrink: 0;
144
  }
145
 
146
- /* Custom PO Modal Styles */
147
- .po-item-row {
148
- display: grid;
149
- grid-template-columns: auto 1fr auto;
150
- gap: 1rem;
151
- align-items: center;
152
- padding: 0.75rem 0.5rem;
153
- border-bottom: 1px solid var(--border-color);
154
- }
155
- .po-item-row:last-child {
156
- border-bottom: none;
157
  }
 
1
+ /* style.css - Industrial Tech Theme v5.0 (with Loader) */
2
+
3
+ /* ... (all existing styles from :root to .kpi-icon-wrapper remain the same) ... */
4
 
5
  :root {
6
  --bg-dark: #1a202c; /* Very dark blue, almost black */
 
27
  flex-grow: 1;
28
  }
29
 
 
30
  .dashboard-card {
31
  background-color: var(--bg-panel);
32
  border: 1px solid var(--border-color);
 
42
  border-color: var(--accent-blue);
43
  }
44
 
 
45
  .header, .modal-content {
46
  background-color: var(--bg-panel);
47
  border-color: var(--border-color);
 
63
  to { transform: scale(1); opacity: 1; }
64
  }
65
 
66
+ .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; }
67
+ .btn:active { transform: scale(0.97); }
68
+ .btn-primary { background-color: var(--accent-blue); color: var(--bg-dark); }
69
+ .btn-primary:hover { background-color: #63b3ed; }
70
+ .btn-secondary { background-color: transparent; border-color: var(--accent-blue); color: var(--accent-blue); }
71
+ .btn-secondary:hover { background-color: rgba(66, 153, 225, 0.1); }
72
+ .btn-danger { background-color: transparent; border-color: var(--accent-red); color: var(--accent-red); }
73
+ .btn-danger:hover { background-color: rgba(245, 101, 101, 0.1); }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
74
 
75
+ .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; }
76
+ .input-field:focus { outline: none; border-color: var(--accent-blue); box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.5); }
 
 
 
 
 
 
 
 
 
 
 
77
 
 
78
  #toast-container { position: fixed; top: 20px; right: 20px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; }
79
  .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; }
80
  .toast.show { opacity: 1; transform: translateX(0); }
 
82
  .toast-error { background-color: var(--accent-red); }
83
  .toast-info { background-color: var(--accent-blue); color: var(--text-primary); }
84
 
 
85
  .icon-btn { color: var(--text-secondary); cursor: pointer; transition: color 0.2s; }
86
  .icon-btn:hover { color: var(--accent-blue); }
87
 
 
88
  ::-webkit-scrollbar { width: 8px; }
89
  ::-webkit-scrollbar-track { background: var(--bg-dark); }
90
  ::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
91
  ::-webkit-scrollbar-thumb:hover { background: var(--accent-blue); }
92
 
93
+ .kpi-icon-wrapper { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
94
+ .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); }
95
+ .po-item-row:last-child { border-bottom: none; }
96
+
97
+
98
+ /* NEW: Loader Styles */
99
+ .loader-spinner {
100
+ border: 4px solid var(--border-color);
101
+ border-top: 4px solid var(--accent-blue);
102
  border-radius: 50%;
103
+ width: 50px;
104
+ height: 50px;
105
+ animation: spin 1s linear infinite;
 
106
  }
107
 
108
+ @keyframes spin {
109
+ 0% { transform: rotate(0deg); }
110
+ 100% { transform: rotate(360deg); }
 
 
 
 
 
 
 
 
111
  }