mathiassandnes Claude Opus 4.5 commited on
Commit
fbe2cfd
·
1 Parent(s): d5815aa

POWER DOMINATION - Masculine industrial theme

Browse files

- Dark gym/industrial background with fire orange accents
- Black Ops One & Oswald bold fonts
- Angular buttons and elements (no rounded corners)
- Fire/metal color palette throughout
- Glowing orange highlights and shadows
- Heavy borders and industrial styling
- Renamed to POWER DOMINATION
- All text uppercase with letter-spacing

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Files changed (1) hide show
  1. index.html +265 -134
index.html CHANGED
@@ -3,21 +3,38 @@
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Household Power Usage Report</title>
7
  <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
8
  <style>
 
 
9
  * {
10
  box-sizing: border-box;
11
  margin: 0;
12
  padding: 0;
13
  }
14
  body {
15
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
16
- background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
 
 
 
 
 
 
 
17
  color: #e4e4e4;
18
  min-height: 100vh;
19
  padding: 20px;
20
  }
 
 
 
 
 
 
 
 
21
  .container {
22
  max-width: 1400px;
23
  margin: 0 auto;
@@ -25,94 +42,136 @@
25
  h1 {
26
  text-align: center;
27
  margin-bottom: 10px;
28
- color: #00d9ff;
29
- font-size: 2rem;
 
 
 
 
30
  }
31
  .subtitle {
32
  text-align: center;
33
- color: #888;
34
  margin-bottom: 30px;
 
 
 
35
  }
36
  .price-toggle {
37
  display: flex;
38
  justify-content: center;
39
- gap: 10px;
40
  margin-bottom: 30px;
41
  flex-wrap: wrap;
42
  }
43
  .price-btn {
44
- padding: 12px 24px;
45
- border: 2px solid #00d9ff;
46
- background: transparent;
47
- color: #00d9ff;
48
- border-radius: 8px;
49
  cursor: pointer;
50
  font-size: 1rem;
 
 
 
51
  transition: all 0.3s;
 
52
  }
53
  .price-btn.active {
54
- background: #00d9ff;
55
- color: #1a1a2e;
 
56
  }
57
  .price-btn:hover {
58
- background: rgba(0, 217, 255, 0.2);
 
59
  }
60
  .current-price {
61
  text-align: center;
62
- font-size: 1.2rem;
63
  margin-bottom: 30px;
64
- color: #ffd700;
 
 
 
65
  }
66
  .charts-grid {
67
  display: grid;
68
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
69
- gap: 20px;
70
  margin-bottom: 30px;
71
  }
72
  .chart-card {
73
- background: rgba(255, 255, 255, 0.05);
74
- border-radius: 12px;
75
- padding: 20px;
76
- border: 1px solid rgba(255, 255, 255, 0.1);
 
 
 
 
 
 
 
 
 
 
 
77
  }
78
  .chart-card h3 {
79
- color: #00d9ff;
80
  margin-bottom: 15px;
81
- font-size: 1.1rem;
 
 
 
82
  }
83
  .table-container {
84
  overflow-x: auto;
85
  margin-bottom: 30px;
 
 
86
  }
87
  table {
88
  width: 100%;
89
  border-collapse: collapse;
90
- background: rgba(255, 255, 255, 0.05);
91
- border-radius: 12px;
92
- overflow: hidden;
93
  }
94
  th, td {
95
  padding: 15px;
96
  text-align: left;
97
- border-bottom: 1px solid rgba(255, 255, 255, 0.1);
98
  }
99
  th {
100
- background: rgba(0, 217, 255, 0.2);
101
- color: #00d9ff;
102
- font-weight: 600;
103
  white-space: nowrap;
 
 
 
104
  }
105
  tr:hover {
106
- background: rgba(255, 255, 255, 0.05);
 
 
 
 
 
 
107
  }
108
  .appliance-name {
109
- font-weight: 600;
110
  color: #fff;
 
 
111
  }
112
  .appliance-details {
113
- font-size: 0.85rem;
114
- color: #888;
115
  margin-top: 4px;
 
116
  }
117
  .slider-cell {
118
  min-width: 200px;
@@ -124,80 +183,102 @@
124
  }
125
  input[type="range"] {
126
  flex: 1;
127
- height: 8px;
128
  -webkit-appearance: none;
129
- background: rgba(255, 255, 255, 0.2);
130
- border-radius: 4px;
131
  cursor: pointer;
 
132
  }
133
  input[type="range"]::-webkit-slider-thumb {
134
  -webkit-appearance: none;
135
- width: 20px;
136
- height: 20px;
137
- background: #00d9ff;
138
- border-radius: 50%;
139
  cursor: pointer;
 
 
140
  }
141
  .slider-value {
142
- min-width: 50px;
143
  text-align: right;
144
- font-weight: bold;
145
- color: #00d9ff;
 
146
  }
147
  .power-value {
148
- color: #ff6b6b;
149
- font-weight: 600;
150
  }
151
  .kwh-value {
152
- color: #ffd700;
153
- font-weight: 600;
154
  }
155
  .cost-value {
156
- color: #4ade80;
157
- font-weight: 600;
158
  }
159
  .summary-row {
160
- background: rgba(0, 217, 255, 0.1) !important;
161
  font-weight: bold;
162
  }
163
  .summary-row td {
164
- color: #00d9ff;
165
- font-size: 1.1rem;
 
 
166
  }
167
  .info-cards {
168
  display: grid;
169
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
170
- gap: 20px;
171
  margin-bottom: 30px;
172
  }
173
  .info-card {
174
- background: rgba(255, 255, 255, 0.05);
175
- border-radius: 12px;
176
- padding: 20px;
177
- border: 1px solid rgba(255, 255, 255, 0.1);
178
  text-align: center;
 
 
 
 
 
 
 
 
 
179
  }
180
  .info-card h4 {
181
  color: #888;
182
- font-size: 0.9rem;
183
  margin-bottom: 10px;
 
 
184
  }
185
  .info-card .value {
186
- font-size: 2rem;
187
- font-weight: bold;
 
188
  }
189
  .info-card .unit {
190
- color: #888;
191
  font-size: 0.9rem;
 
 
192
  }
193
  footer {
194
  text-align: center;
195
- color: #666;
196
- padding: 20px;
197
  font-size: 0.85rem;
 
 
198
  }
199
  footer a {
200
- color: #00d9ff;
201
  }
202
  @media (max-width: 768px) {
203
  .charts-grid {
@@ -216,7 +297,7 @@
216
  left: 0;
217
  width: 100%;
218
  height: 100%;
219
- background: rgba(0, 0, 0, 0.8);
220
  z-index: 1000;
221
  justify-content: center;
222
  align-items: center;
@@ -225,18 +306,21 @@
225
  display: flex;
226
  }
227
  .modal {
228
- background: #1a1a2e;
229
- border-radius: 16px;
230
- padding: 30px;
231
  width: 90%;
232
  max-width: 500px;
233
- border: 2px solid #00d9ff;
234
- box-shadow: 0 20px 60px rgba(0, 217, 255, 0.3);
235
  }
236
  .modal h2 {
237
- color: #00d9ff;
238
- margin-bottom: 20px;
239
- font-size: 1.5rem;
 
 
 
240
  }
241
  .form-group {
242
  margin-bottom: 20px;
@@ -245,45 +329,54 @@
245
  display: block;
246
  color: #888;
247
  margin-bottom: 8px;
248
- font-size: 0.9rem;
 
 
 
249
  }
250
  .form-group input {
251
  width: 100%;
252
- padding: 12px;
253
- border: 1px solid rgba(255, 255, 255, 0.2);
254
- border-radius: 8px;
255
- background: rgba(255, 255, 255, 0.05);
256
  color: #fff;
257
  font-size: 1rem;
 
258
  }
259
  .form-group input:focus {
260
  outline: none;
261
- border-color: #00d9ff;
 
262
  }
263
  .modal-buttons {
264
  display: flex;
265
- gap: 10px;
266
  justify-content: flex-end;
267
- margin-top: 25px;
268
  }
269
  .btn {
270
- padding: 12px 24px;
271
  border: none;
272
- border-radius: 8px;
273
  cursor: pointer;
274
  font-size: 1rem;
 
 
 
275
  transition: all 0.3s;
276
  }
277
  .btn-primary {
278
- background: #00d9ff;
279
- color: #1a1a2e;
 
280
  }
281
  .btn-primary:hover {
282
- background: #00b8d9;
283
  }
284
  .btn-secondary {
285
  background: transparent;
286
- border: 2px solid #666;
287
  color: #888;
288
  }
289
  .btn-secondary:hover {
@@ -291,66 +384,103 @@
291
  color: #fff;
292
  }
293
  .btn-danger {
294
- background: #ff4757;
295
- color: #fff;
 
296
  }
297
  .btn-danger:hover {
298
- background: #ff3344;
299
  }
300
  .btn-add {
301
- background: #4ade80;
302
- color: #1a1a2e;
303
  margin-bottom: 20px;
 
 
304
  }
305
  .btn-add:hover {
306
- background: #22c55e;
307
  }
308
  .action-buttons {
309
  display: flex;
310
  gap: 8px;
311
  }
312
  .btn-icon {
313
- padding: 8px 12px;
314
  border: none;
315
- border-radius: 6px;
316
  cursor: pointer;
317
- font-size: 0.85rem;
 
 
318
  transition: all 0.3s;
319
  }
320
  .btn-edit {
321
- background: rgba(0, 217, 255, 0.2);
322
- color: #00d9ff;
 
323
  }
324
  .btn-edit:hover {
325
- background: rgba(0, 217, 255, 0.4);
326
  }
327
  .btn-delete {
328
- background: rgba(255, 71, 87, 0.2);
329
- color: #ff4757;
 
330
  }
331
  .btn-delete:hover {
332
- background: rgba(255, 71, 87, 0.4);
333
  }
334
  .table-actions {
335
  display: flex;
336
  justify-content: flex-end;
337
  margin-bottom: 15px;
338
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
339
  </style>
340
  </head>
341
  <body>
342
  <div class="container">
343
- <h1>Household Power Usage Report</h1>
344
- <p class="subtitle">Interactive calculator for electricity consumption and costs</p>
 
 
345
 
346
  <div class="price-toggle">
347
- <button class="price-btn active" onclick="setPricing('norgespris')">Norgespris (0.50 kr/kWh)</button>
348
- <button class="price-btn" onclick="setPricing('spot')">Oslo Spot (~1.30 kr/kWh)</button>
349
  </div>
350
- <div class="current-price">Current rate: <span id="currentRate">0.50</span> kr/kWh</div>
351
 
352
  <div class="table-actions">
353
- <button class="btn btn-add" onclick="openModal()">+ Add Appliance</button>
354
  </div>
355
  <div class="table-container">
356
  <table>
@@ -373,22 +503,22 @@
373
 
374
  <div class="info-cards">
375
  <div class="info-card">
376
- <h4>Total Monthly Usage</h4>
377
  <div class="value kwh-value" id="totalKwh">0</div>
378
  <div class="unit">kWh/month</div>
379
  </div>
380
  <div class="info-card">
381
- <h4>Total Monthly Cost</h4>
382
  <div class="value cost-value" id="totalCost">0</div>
383
  <div class="unit">kr/month</div>
384
  </div>
385
  <div class="info-card">
386
- <h4>Average Daily Usage</h4>
387
- <div class="value" id="avgDaily" style="color: #00d9ff;">0</div>
388
  <div class="unit">kWh/day</div>
389
  </div>
390
  <div class="info-card">
391
- <h4>Peak Power Draw</h4>
392
  <div class="value power-value" id="peakPower">0</div>
393
  <div class="unit">Watts</div>
394
  </div>
@@ -556,8 +686,8 @@
556
  labels: labels,
557
  datasets: [{
558
  data: appliances.map(a => a.power),
559
- backgroundColor: ['#00d9ff', '#00d9ff', '#ff6b6b', '#ffd700', '#ffd700'],
560
- borderRadius: 6
561
  }]
562
  },
563
  options: chartOptions
@@ -569,8 +699,8 @@
569
  labels: labels,
570
  datasets: [{
571
  data: [],
572
- backgroundColor: ['#00d9ff', '#00d9ff', '#ff6b6b', '#ffd700', '#ffd700'],
573
- borderRadius: 6
574
  }]
575
  },
576
  options: chartOptions
@@ -582,8 +712,8 @@
582
  labels: labels,
583
  datasets: [{
584
  data: [],
585
- backgroundColor: ['#4ade80', '#4ade80', '#4ade80', '#4ade80', '#4ade80'],
586
- borderRadius: 6
587
  }]
588
  },
589
  options: chartOptions
@@ -597,11 +727,11 @@
597
  datasets: [{
598
  data: appliances.map(a => a.usage),
599
  backgroundColor: appliances.map(a => {
600
- if (a.usage >= 50) return '#ff6b6b';
601
- if (a.usage >= 25) return '#ffd700';
602
- return '#4ade80';
603
  }),
604
- borderRadius: 6
605
  }]
606
  },
607
  options: {
@@ -643,10 +773,11 @@
643
 
644
  // Colors: incremental bars are colored, total is different
645
  const colors = appliances.map((_, i) => {
646
- const hue = (i * 60) % 360;
647
- return `hsl(${hue}, 70%, 60%)`;
 
648
  });
649
- colors.push('#00d9ff'); // Total bar color
650
 
651
  waterfallChart = new Chart(document.getElementById('waterfallChart'), {
652
  type: 'bar',
@@ -792,9 +923,9 @@
792
  // Update usage percentage chart
793
  usagePercentChart.data.datasets[0].data = appliances.map(a => a.usage);
794
  usagePercentChart.data.datasets[0].backgroundColor = appliances.map(a => {
795
- if (a.usage >= 50) return '#ff6b6b';
796
- if (a.usage >= 25) return '#ffd700';
797
- return '#4ade80';
798
  });
799
 
800
  usageChart.update();
@@ -821,10 +952,10 @@
821
  waterfallData.push([0, cumulative]);
822
 
823
  const colors = appliances.map((_, i) => {
824
- const hue = (i * 60) % 360;
825
- return `hsl(${hue}, 70%, 60%)`;
826
  });
827
- colors.push('#00d9ff');
828
 
829
  waterfallChart.data.labels = labels;
830
  waterfallChart.data.datasets[0].data = waterfallData;
 
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>POWER DOMINATION CALCULATOR</title>
7
  <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
8
  <style>
9
+ @import url('https://fonts.googleapis.com/css2?family=Black+Ops+One&family=Oswald:wght@700&display=swap');
10
+
11
  * {
12
  box-sizing: border-box;
13
  margin: 0;
14
  padding: 0;
15
  }
16
  body {
17
+ font-family: 'Oswald', 'Impact', sans-serif;
18
+ background: #0a0a0a;
19
+ background-image:
20
+ url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?w=1920&q=80'),
21
+ linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(20,10,5,0.98) 100%);
22
+ background-blend-mode: overlay;
23
+ background-size: cover;
24
+ background-attachment: fixed;
25
+ background-position: center;
26
  color: #e4e4e4;
27
  min-height: 100vh;
28
  padding: 20px;
29
  }
30
+ body::before {
31
+ content: '';
32
+ position: fixed;
33
+ top: 0; left: 0; right: 0; bottom: 0;
34
+ background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(30,15,0,0.85) 100%);
35
+ pointer-events: none;
36
+ z-index: -1;
37
+ }
38
  .container {
39
  max-width: 1400px;
40
  margin: 0 auto;
 
42
  h1 {
43
  text-align: center;
44
  margin-bottom: 10px;
45
+ color: #ff6600;
46
+ font-size: 3rem;
47
+ font-family: 'Black Ops One', 'Impact', sans-serif;
48
+ text-transform: uppercase;
49
+ letter-spacing: 6px;
50
+ text-shadow: 0 0 30px rgba(255,102,0,0.8), 0 0 60px rgba(255,50,0,0.4), 3px 3px 0 #000;
51
  }
52
  .subtitle {
53
  text-align: center;
54
+ color: #999;
55
  margin-bottom: 30px;
56
+ text-transform: uppercase;
57
+ letter-spacing: 4px;
58
+ font-size: 0.9rem;
59
  }
60
  .price-toggle {
61
  display: flex;
62
  justify-content: center;
63
+ gap: 15px;
64
  margin-bottom: 30px;
65
  flex-wrap: wrap;
66
  }
67
  .price-btn {
68
+ padding: 15px 30px;
69
+ border: 3px solid #ff6600;
70
+ background: linear-gradient(180deg, rgba(255,102,0,0.2) 0%, rgba(100,40,0,0.3) 100%);
71
+ color: #ff9944;
72
+ border-radius: 0;
73
  cursor: pointer;
74
  font-size: 1rem;
75
+ font-weight: 700;
76
+ text-transform: uppercase;
77
+ letter-spacing: 2px;
78
  transition: all 0.3s;
79
+ clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
80
  }
81
  .price-btn.active {
82
+ background: linear-gradient(180deg, #ff6600 0%, #cc4400 100%);
83
+ color: #000;
84
+ box-shadow: 0 0 30px rgba(255,102,0,0.6);
85
  }
86
  .price-btn:hover {
87
+ background: linear-gradient(180deg, rgba(255,102,0,0.4) 0%, rgba(150,60,0,0.5) 100%);
88
+ box-shadow: 0 0 20px rgba(255,102,0,0.4);
89
  }
90
  .current-price {
91
  text-align: center;
92
+ font-size: 1.4rem;
93
  margin-bottom: 30px;
94
+ color: #ff9944;
95
+ font-weight: 700;
96
+ text-transform: uppercase;
97
+ letter-spacing: 2px;
98
  }
99
  .charts-grid {
100
  display: grid;
101
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
102
+ gap: 25px;
103
  margin-bottom: 30px;
104
  }
105
  .chart-card {
106
+ background: linear-gradient(145deg, rgba(30,20,10,0.95) 0%, rgba(15,10,5,0.98) 100%);
107
+ border-radius: 0;
108
+ padding: 25px;
109
+ border: 3px solid #3a2a1a;
110
+ box-shadow: 0 10px 40px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,150,50,0.1);
111
+ position: relative;
112
+ }
113
+ .chart-card::before {
114
+ content: '';
115
+ position: absolute;
116
+ top: 8px; left: 8px;
117
+ width: 12px; height: 12px;
118
+ background: radial-gradient(circle at 30% 30%, #664422 0%, #332211 100%);
119
+ border-radius: 50%;
120
+ box-shadow: calc(100% - 28px) 0 0 0 #332211;
121
  }
122
  .chart-card h3 {
123
+ color: #ff9944;
124
  margin-bottom: 15px;
125
+ font-size: 1.2rem;
126
+ text-transform: uppercase;
127
+ letter-spacing: 2px;
128
+ font-weight: 700;
129
  }
130
  .table-container {
131
  overflow-x: auto;
132
  margin-bottom: 30px;
133
+ border: 3px solid #3a2a1a;
134
+ box-shadow: 0 10px 40px rgba(0,0,0,0.6);
135
  }
136
  table {
137
  width: 100%;
138
  border-collapse: collapse;
139
+ background: linear-gradient(180deg, rgba(25,18,10,0.98) 0%, rgba(15,10,5,0.99) 100%);
 
 
140
  }
141
  th, td {
142
  padding: 15px;
143
  text-align: left;
144
+ border-bottom: 1px solid #2a1a0a;
145
  }
146
  th {
147
+ background: linear-gradient(180deg, #3a2510 0%, #2a1a0a 100%);
148
+ color: #ff9944;
149
+ font-weight: 700;
150
  white-space: nowrap;
151
+ text-transform: uppercase;
152
+ letter-spacing: 1px;
153
+ border-bottom: 2px solid #ff6600;
154
  }
155
  tr:hover {
156
+ background: rgba(255,102,0,0.1);
157
+ }
158
+ tr:nth-child(even) {
159
+ background: rgba(0,0,0,0.2);
160
+ }
161
+ tr:nth-child(even):hover {
162
+ background: rgba(255,102,0,0.15);
163
  }
164
  .appliance-name {
165
+ font-weight: 700;
166
  color: #fff;
167
+ text-transform: uppercase;
168
+ letter-spacing: 1px;
169
  }
170
  .appliance-details {
171
+ font-size: 0.8rem;
172
+ color: #777;
173
  margin-top: 4px;
174
+ font-weight: 400;
175
  }
176
  .slider-cell {
177
  min-width: 200px;
 
183
  }
184
  input[type="range"] {
185
  flex: 1;
186
+ height: 10px;
187
  -webkit-appearance: none;
188
+ background: linear-gradient(180deg, #1a0a00 0%, #2a1a0a 100%);
189
+ border-radius: 0;
190
  cursor: pointer;
191
+ border: 2px solid #4a3020;
192
  }
193
  input[type="range"]::-webkit-slider-thumb {
194
  -webkit-appearance: none;
195
+ width: 24px;
196
+ height: 24px;
197
+ background: linear-gradient(145deg, #ff6600 0%, #cc4400 100%);
198
+ border-radius: 0;
199
  cursor: pointer;
200
+ border: 2px solid #ff9944;
201
+ box-shadow: 0 0 15px rgba(255,102,0,0.6);
202
  }
203
  .slider-value {
204
+ min-width: 55px;
205
  text-align: right;
206
+ font-weight: 900;
207
+ color: #ff6600;
208
+ font-size: 1.1rem;
209
  }
210
  .power-value {
211
+ color: #ff4444;
212
+ font-weight: 700;
213
  }
214
  .kwh-value {
215
+ color: #ffaa00;
216
+ font-weight: 700;
217
  }
218
  .cost-value {
219
+ color: #66cc66;
220
+ font-weight: 700;
221
  }
222
  .summary-row {
223
+ background: linear-gradient(90deg, rgba(255,102,0,0.2) 0%, rgba(255,50,0,0.1) 100%) !important;
224
  font-weight: bold;
225
  }
226
  .summary-row td {
227
+ color: #ff6600;
228
+ font-size: 1.2rem;
229
+ text-transform: uppercase;
230
+ letter-spacing: 1px;
231
  }
232
  .info-cards {
233
  display: grid;
234
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
235
+ gap: 25px;
236
  margin-bottom: 30px;
237
  }
238
  .info-card {
239
+ background: linear-gradient(145deg, rgba(30,20,10,0.95) 0%, rgba(15,10,5,0.98) 100%);
240
+ border-radius: 0;
241
+ padding: 25px;
242
+ border: 3px solid #3a2a1a;
243
  text-align: center;
244
+ position: relative;
245
+ box-shadow: 0 10px 40px rgba(0,0,0,0.5);
246
+ }
247
+ .info-card::after {
248
+ content: '';
249
+ position: absolute;
250
+ bottom: 0; left: 0; right: 0;
251
+ height: 4px;
252
+ background: linear-gradient(90deg, #ff6600 0%, #ff9944 50%, #ff6600 100%);
253
  }
254
  .info-card h4 {
255
  color: #888;
256
+ font-size: 0.85rem;
257
  margin-bottom: 10px;
258
+ text-transform: uppercase;
259
+ letter-spacing: 2px;
260
  }
261
  .info-card .value {
262
+ font-size: 2.5rem;
263
+ font-weight: 900;
264
+ text-shadow: 0 0 20px currentColor;
265
  }
266
  .info-card .unit {
267
+ color: #666;
268
  font-size: 0.9rem;
269
+ text-transform: uppercase;
270
+ letter-spacing: 1px;
271
  }
272
  footer {
273
  text-align: center;
274
+ color: #555;
275
+ padding: 30px;
276
  font-size: 0.85rem;
277
+ text-transform: uppercase;
278
+ letter-spacing: 2px;
279
  }
280
  footer a {
281
+ color: #ff6600;
282
  }
283
  @media (max-width: 768px) {
284
  .charts-grid {
 
297
  left: 0;
298
  width: 100%;
299
  height: 100%;
300
+ background: rgba(0, 0, 0, 0.95);
301
  z-index: 1000;
302
  justify-content: center;
303
  align-items: center;
 
306
  display: flex;
307
  }
308
  .modal {
309
+ background: linear-gradient(145deg, rgba(30,20,10,0.99) 0%, rgba(15,10,5,1) 100%);
310
+ border-radius: 0;
311
+ padding: 35px;
312
  width: 90%;
313
  max-width: 500px;
314
+ border: 4px solid #ff6600;
315
+ box-shadow: 0 0 60px rgba(255,102,0,0.4), 0 20px 60px rgba(0,0,0,0.8);
316
  }
317
  .modal h2 {
318
+ color: #ff6600;
319
+ margin-bottom: 25px;
320
+ font-size: 1.8rem;
321
+ text-transform: uppercase;
322
+ letter-spacing: 3px;
323
+ font-family: 'Black Ops One', 'Impact', sans-serif;
324
  }
325
  .form-group {
326
  margin-bottom: 20px;
 
329
  display: block;
330
  color: #888;
331
  margin-bottom: 8px;
332
+ font-size: 0.85rem;
333
+ text-transform: uppercase;
334
+ letter-spacing: 1px;
335
+ font-weight: 600;
336
  }
337
  .form-group input {
338
  width: 100%;
339
+ padding: 15px;
340
+ border: 2px solid #4a3020;
341
+ border-radius: 0;
342
+ background: linear-gradient(180deg, #1a0a00 0%, #2a1a0a 100%);
343
  color: #fff;
344
  font-size: 1rem;
345
+ font-weight: 600;
346
  }
347
  .form-group input:focus {
348
  outline: none;
349
+ border-color: #ff6600;
350
+ box-shadow: 0 0 20px rgba(255,102,0,0.3);
351
  }
352
  .modal-buttons {
353
  display: flex;
354
+ gap: 15px;
355
  justify-content: flex-end;
356
+ margin-top: 30px;
357
  }
358
  .btn {
359
+ padding: 15px 30px;
360
  border: none;
361
+ border-radius: 0;
362
  cursor: pointer;
363
  font-size: 1rem;
364
+ font-weight: 700;
365
+ text-transform: uppercase;
366
+ letter-spacing: 1px;
367
  transition: all 0.3s;
368
  }
369
  .btn-primary {
370
+ background: linear-gradient(180deg, #ff6600 0%, #cc4400 100%);
371
+ color: #000;
372
+ border: 2px solid #ff9944;
373
  }
374
  .btn-primary:hover {
375
+ box-shadow: 0 0 30px rgba(255,102,0,0.6);
376
  }
377
  .btn-secondary {
378
  background: transparent;
379
+ border: 2px solid #555;
380
  color: #888;
381
  }
382
  .btn-secondary:hover {
 
384
  color: #fff;
385
  }
386
  .btn-danger {
387
+ background: linear-gradient(180deg, #aa2222 0%, #881111 100%);
388
+ color: #ffaaaa;
389
+ border: 2px solid #cc4444;
390
  }
391
  .btn-danger:hover {
392
+ box-shadow: 0 0 20px rgba(255,50,50,0.5);
393
  }
394
  .btn-add {
395
+ background: linear-gradient(180deg, #ff6600 0%, #cc4400 100%);
396
+ color: #000;
397
  margin-bottom: 20px;
398
+ border: 2px solid #ff9944;
399
+ font-family: 'Oswald', sans-serif;
400
  }
401
  .btn-add:hover {
402
+ box-shadow: 0 0 30px rgba(255,102,0,0.6);
403
  }
404
  .action-buttons {
405
  display: flex;
406
  gap: 8px;
407
  }
408
  .btn-icon {
409
+ padding: 10px 15px;
410
  border: none;
411
+ border-radius: 0;
412
  cursor: pointer;
413
+ font-size: 0.8rem;
414
+ font-weight: 700;
415
+ text-transform: uppercase;
416
  transition: all 0.3s;
417
  }
418
  .btn-edit {
419
+ background: linear-gradient(180deg, rgba(255,102,0,0.3) 0%, rgba(200,80,0,0.2) 100%);
420
+ color: #ff9944;
421
+ border: 1px solid #ff6600;
422
  }
423
  .btn-edit:hover {
424
+ background: linear-gradient(180deg, rgba(255,102,0,0.5) 0%, rgba(200,80,0,0.4) 100%);
425
  }
426
  .btn-delete {
427
+ background: linear-gradient(180deg, rgba(180,50,50,0.3) 0%, rgba(120,30,30,0.2) 100%);
428
+ color: #ff6666;
429
+ border: 1px solid #aa4444;
430
  }
431
  .btn-delete:hover {
432
+ background: linear-gradient(180deg, rgba(180,50,50,0.5) 0%, rgba(120,30,30,0.4) 100%);
433
  }
434
  .table-actions {
435
  display: flex;
436
  justify-content: flex-end;
437
  margin-bottom: 15px;
438
  }
439
+
440
+ /* Decorative elements */
441
+ .hero-banner {
442
+ text-align: center;
443
+ margin-bottom: 30px;
444
+ padding: 20px;
445
+ position: relative;
446
+ }
447
+ .hero-banner::before {
448
+ content: '//';
449
+ position: absolute;
450
+ left: 20%;
451
+ top: 50%;
452
+ transform: translateY(-50%);
453
+ font-size: 4rem;
454
+ color: rgba(255,102,0,0.2);
455
+ font-weight: 900;
456
+ }
457
+ .hero-banner::after {
458
+ content: '//';
459
+ position: absolute;
460
+ right: 20%;
461
+ top: 50%;
462
+ transform: translateY(-50%);
463
+ font-size: 4rem;
464
+ color: rgba(255,102,0,0.2);
465
+ font-weight: 900;
466
+ }
467
  </style>
468
  </head>
469
  <body>
470
  <div class="container">
471
+ <div class="hero-banner">
472
+ <h1>POWER DOMINATION</h1>
473
+ <p class="subtitle">Conquer your electricity. Control your costs. Dominate your energy.</p>
474
+ </div>
475
 
476
  <div class="price-toggle">
477
+ <button class="price-btn active" onclick="setPricing('norgespris')">NORGESPRIS (0.50 KR/KWH)</button>
478
+ <button class="price-btn" onclick="setPricing('spot')">OSLO SPOT (~1.30 KR/KWH)</button>
479
  </div>
480
+ <div class="current-price">CURRENT RATE: <span id="currentRate">0.50</span> KR/KWH</div>
481
 
482
  <div class="table-actions">
483
+ <button class="btn btn-add" onclick="openModal()">+ ADD WEAPON</button>
484
  </div>
485
  <div class="table-container">
486
  <table>
 
503
 
504
  <div class="info-cards">
505
  <div class="info-card">
506
+ <h4>Total Monthly Consumption</h4>
507
  <div class="value kwh-value" id="totalKwh">0</div>
508
  <div class="unit">kWh/month</div>
509
  </div>
510
  <div class="info-card">
511
+ <h4>Monthly Cost</h4>
512
  <div class="value cost-value" id="totalCost">0</div>
513
  <div class="unit">kr/month</div>
514
  </div>
515
  <div class="info-card">
516
+ <h4>Daily Average</h4>
517
+ <div class="value" id="avgDaily" style="color: #ff6600;">0</div>
518
  <div class="unit">kWh/day</div>
519
  </div>
520
  <div class="info-card">
521
+ <h4>Peak Power</h4>
522
  <div class="value power-value" id="peakPower">0</div>
523
  <div class="unit">Watts</div>
524
  </div>
 
686
  labels: labels,
687
  datasets: [{
688
  data: appliances.map(a => a.power),
689
+ backgroundColor: ['#ff6600', '#cc4400', '#aa3300', '#ff8844', '#dd5522', '#bb4411', '#ff9955', '#cc6633'],
690
+ borderRadius: 0
691
  }]
692
  },
693
  options: chartOptions
 
699
  labels: labels,
700
  datasets: [{
701
  data: [],
702
+ backgroundColor: ['#ff6600', '#cc4400', '#aa3300', '#ff8844', '#dd5522', '#bb4411', '#ff9955', '#cc6633'],
703
+ borderRadius: 0
704
  }]
705
  },
706
  options: chartOptions
 
712
  labels: labels,
713
  datasets: [{
714
  data: [],
715
+ backgroundColor: ['#66aa44', '#558833', '#447722', '#77bb55', '#669944', '#558833', '#77bb55', '#669944'],
716
+ borderRadius: 0
717
  }]
718
  },
719
  options: chartOptions
 
727
  datasets: [{
728
  data: appliances.map(a => a.usage),
729
  backgroundColor: appliances.map(a => {
730
+ if (a.usage >= 50) return '#cc3333';
731
+ if (a.usage >= 25) return '#ff6600';
732
+ return '#66aa44';
733
  }),
734
+ borderRadius: 0
735
  }]
736
  },
737
  options: {
 
773
 
774
  // Colors: incremental bars are colored, total is different
775
  const colors = appliances.map((_, i) => {
776
+ // Fire/metal gradient colors
777
+ const fireColors = ['#ff6600', '#cc4400', '#ff8844', '#aa3300', '#dd5522', '#ff9955', '#bb4411', '#cc6633'];
778
+ return fireColors[i % fireColors.length];
779
  });
780
+ colors.push('#ff6600'); // Total bar color - bright orange
781
 
782
  waterfallChart = new Chart(document.getElementById('waterfallChart'), {
783
  type: 'bar',
 
923
  // Update usage percentage chart
924
  usagePercentChart.data.datasets[0].data = appliances.map(a => a.usage);
925
  usagePercentChart.data.datasets[0].backgroundColor = appliances.map(a => {
926
+ if (a.usage >= 50) return '#cc3333';
927
+ if (a.usage >= 25) return '#ff6600';
928
+ return '#66aa44';
929
  });
930
 
931
  usageChart.update();
 
952
  waterfallData.push([0, cumulative]);
953
 
954
  const colors = appliances.map((_, i) => {
955
+ const fireColors = ['#ff6600', '#cc4400', '#ff8844', '#aa3300', '#dd5522', '#ff9955', '#bb4411', '#cc6633'];
956
+ return fireColors[i % fireColors.length];
957
  });
958
+ colors.push('#ff6600');
959
 
960
  waterfallChart.data.labels = labels;
961
  waterfallChart.data.datasets[0].data = waterfallData;