Spaces:
Configuration error
Configuration error
File size: 7,240 Bytes
791a20d 5ca0b18 791a20d 5ca0b18 791a20d 5ca0b18 791a20d 5ca0b18 791a20d 5ca0b18 791a20d 5ca0b18 791a20d 5ca0b18 8216787 791a20d 5ca0b18 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 | /* Previous root variables */
:root {
--bg-color: #0b0f19;
--panel-bg: rgba(20, 25, 40, 0.6);
--panel-border: rgba(255, 255, 255, 0.1);
--text-primary: #ffffff;
--text-secondary: #a0aabf;
--accent-blue: #00f0ff;
--accent-purple: #bd00ff;
--accent-green: #00ff66;
--accent-red: #ff0055;
--font-main: 'Outfit', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
background-color: var(--bg-color);
color: var(--text-primary);
font-family: var(--font-main);
min-height: 100vh;
overflow-x: hidden;
position: relative;
}
.background-orbs {
position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; overflow: hidden;
}
.orb {
position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.5; animation: float 20s infinite ease-in-out;
}
.orb-1 { width: 400px; height: 400px; background: var(--accent-purple); top: -100px; left: -100px; }
.orb-2 { width: 300px; height: 300px; background: var(--accent-blue); bottom: -50px; right: -50px; animation-delay: -5s; }
.orb-3 { width: 250px; height: 250px; background: var(--accent-green); top: 40%; left: 50%; animation-delay: -10s; opacity: 0.3; }
@keyframes float {
0%, 100% { transform: translate(0, 0) scale(1); }
33% { transform: translate(30px, -50px) scale(1.1); }
66% { transform: translate(-20px, 20px) scale(0.9); }
}
.container { max-width: 1400px; margin: 0 auto; padding: 2rem; }
.glass-panel {
background: var(--panel-bg);
backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
border: 1px solid var(--panel-border); border-radius: 20px;
padding: 1.5rem; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
header { text-align: center; margin-bottom: 2rem; }
header h1 {
font-size: 2.5rem; font-weight: 800;
background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
-webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 0.5rem;
}
header p { color: var(--text-secondary); font-size: 1.1rem; }
.dashboard { display: grid; grid-template-columns: 300px 1fr; gap: 2rem; }
.controls { display: flex; flex-direction: column; gap: 2rem; height: fit-content; }
.controls h2 { font-size: 1.5rem; font-weight: 600; border-bottom: 1px solid var(--panel-border); padding-bottom: 1rem; }
.control-group { display: flex; flex-direction: column; gap: 0.8rem; }
.control-group label { font-weight: 600; color: var(--accent-blue); font-size: 1.1rem; }
.date-inputs { display: flex; flex-direction: column; gap: 1rem; }
.input-wrapper { display: flex; flex-direction: column; gap: 0.3rem; }
.label-mini { font-size: 0.85rem; color: var(--text-secondary); }
input[type="number"], input[type="date"] {
width: 100%; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--panel-border);
color: white; padding: 0.8rem; border-radius: 10px; font-family: var(--font-main);
font-size: 1rem; outline: none; transition: all 0.3s ease;
}
/* Chrome/Webkit specific for date icon */
::-webkit-calendar-picker-indicator { filter: invert(1); cursor: pointer; }
input:focus { border-color: var(--accent-blue); box-shadow: 0 0 10px rgba(0, 240, 255, 0.2); }
/* Radio buttons stylisés */
.radio-inputs { display: flex; flex-direction: column; gap: 0.8rem; }
.radio-label {
display: flex; align-items: center; gap: 0.8rem; cursor: pointer; color: var(--text-primary);
font-size: 1rem; transition: color 0.3s;
}
.radio-label:hover { color: var(--accent-blue); }
.radio-label input[type="radio"] { display: none; }
.custom-radio {
width: 20px; height: 20px; border: 2px solid var(--text-secondary); border-radius: 50%;
display: inline-block; position: relative; transition: all 0.3s ease;
}
.radio-label input[type="radio"]:checked + .custom-radio {
border-color: var(--accent-blue); box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}
.radio-label input[type="radio"]:checked + .custom-radio::after {
content: ''; width: 10px; height: 10px; background: var(--accent-blue);
border-radius: 50%; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.threshold-inputs { display: flex; flex-direction: column; gap: 1rem; }
.glow-on-hover {
padding: 1rem; border: none; outline: none; color: #fff;
background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
cursor: pointer; position: relative; z-index: 0; border-radius: 10px;
font-size: 1.1rem; font-weight: 600; font-family: var(--font-main); transition: transform 0.2s ease;
}
.glow-on-hover:hover { transform: translateY(-2px); }
.glow-on-hover:before {
content: ''; background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
position: absolute; top: -2px; left:-2px; background-size: 400%; z-index: -1; filter: blur(5px);
width: calc(100% + 4px); height: calc(100% + 4px); animation: glowing 20s linear infinite;
opacity: 0; transition: opacity .3s ease-in-out; border-radius: 10px;
}
.glow-on-hover:hover:before { opacity: 1; }
.glow-on-hover:after {
z-index: -1; content: ''; position: absolute; width: 100%; height: 100%;
background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
left: 0; top: 0; border-radius: 10px;
}
@keyframes glowing { 0% { background-position: 0 0; } 50% { background-position: 400% 0; } 100% { background-position: 0 0; } }
.main-content { display: flex; flex-direction: column; gap: 2rem; }
.summary-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.summary-card { text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 2rem; }
.summary-card h3 { color: var(--text-secondary); font-size: 1.2rem; margin-bottom: 1rem; font-weight: 400; }
.sum-value { font-size: 2.5rem; font-weight: 800; color: var(--text-primary); text-shadow: 0 0 20px rgba(0, 240, 255, 0.4); }
#sum-voltage { background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
#sum-current { background: linear-gradient(90deg, var(--accent-green), var(--accent-blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.charts-area { display: flex; flex-direction: column; gap: 2rem; }
.chart-container { height: 400px; display: flex; flex-direction: column; }
.chart-container h2 { font-size: 1.3rem; margin-bottom: 1rem; color: var(--text-primary); }
canvas { flex-grow: 1; width: 100% !important; height: 100% !important; }
.alert-text {
color: var(--accent-red);
font-size: 0.9rem;
font-weight: 600;
line-height: 1.4;
}
.file-input {
width: 100%;
background: rgba(0, 0, 0, 0.3);
border: 1px solid var(--accent-red);
color: white;
padding: 0.8rem;
border-radius: 10px;
font-family: var(--font-main);
font-size: 0.9rem;
outline: none;
transition: all 0.3s ease;
}
.file-input:focus {
border-color: var(--accent-blue);
box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}
@media (max-width: 900px) {
.dashboard { grid-template-columns: 1fr; }
.summary-cards { grid-template-columns: 1fr; }
}
|