/* Gauge layout */
#gauge-div {
    vertical-align: top;
    margin-inline-end: 20px;
    margin-inline-start: 20px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gauge-row {
    margin-top: 30px;
}

.gauge-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gauge-title {
    font-family: 'Orbitron', sans-serif;
    color: #00e5ff;
    text-shadow: 0 0 0.15em #00e5ff, 0 0 0.3em #00e5ff;
    margin-bottom: 0.3em;
    font-size: clamp(14px, 1.2vw, 18px);
    font-weight: 700;
    letter-spacing: 1px;
}

/* Gauge container */
#gauge-div #inner-gauge-div,
.gauge-container {
    position: relative;
    height: 175px;
    width: 260px;
    margin-bottom: 15px;
    background-color: #08090f;
    border: 2px solid #00e5ff;
    border-radius: 20px;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.35), inset 0 0 15px rgba(0, 229, 255, 0.15);
}

/* Background circle */
.gauge-background-circle,
#background-circle {
    position: absolute;
    top: 0px;
    left: 50%;
    translate: -95px -30px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(8, 9, 15, 0.95) 0%, rgba(12, 13, 18, 0.8) 100%);
    border: 2px solid rgba(0, 229, 255, 0.25);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.15), inset 0 0 10px rgba(0, 0, 0, 0.6);
    z-index: -1;
}

/* SVG Gauge */
#custom-gauge,
.custom-gauge {
    position: absolute;
    left: 50%;
    translate: -110px -30px;
    height: 180px;
    width: 220px;
    overflow: visible;
}

.custom-gauge-track,
.custom-gauge-arc {
    fill: none;
    stroke-linecap: round;
}

.custom-gauge-track {
    stroke: #1f212d;
    stroke-width: 18;
    filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.2));
}

.custom-gauge-arc {
    stroke-width: 18;
    filter: drop-shadow(0 0 8px rgba(0, 255, 102, 0.35)) drop-shadow(0 0 10px rgba(255, 0, 85, 0.25));
}

/* Needle */
#custom-gauge-needle,
[id$="-gauge-needle"] {
    transform-origin: 110px 130px;
    transform: rotate(-90deg);
    transition: transform 1400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.custom-gauge-needle-line {
    stroke: #00e5ff;
    stroke-width: 6;
    stroke-linecap: round;
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.75));
}

.custom-gauge-needle-hub {
    fill: #08090f;
    stroke: #00e5ff;
    stroke-width: 4;
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.75));
}

/* Circular text labels */
#gauge-real-text-div,
#gauge-artificial-text-div,
.gauge-circular-text-red,
.gauge-circular-text-green {
    position: absolute;
    left: 50%;
    translate: -115px -35px;
    width: 230px;
    height: 200px;
}

#gauge-real-text,
#gauge-artificial-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 18px;
}

#gauge-real-text {
    fill: #00ff66;
    filter: drop-shadow(0 0 3px rgba(0, 255, 102, 0.4));
}

#gauge-artificial-text {
    fill: #ff0055;
    filter: drop-shadow(0 0 3px rgba(255, 0, 85, 0.4));
}

.gauge-circular-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 18px;
    filter: drop-shadow(0 0 2px rgba(0, 229, 255, 0.3));
}

.gauge-circular-text-red {
    fill: #ff0055;
    filter: drop-shadow(0 0 3px rgba(255, 0, 85, 0.4));
}

.gauge-circular-text-green {
    fill: #00ff66;
    filter: drop-shadow(0 0 3px rgba(0, 255, 102, 0.4));
}

/* Percentage text */
.gauge-text-p {
    text-align: center;
    translate: 0px 120px;
    font-size: 25px;
    font-weight: 700;
}

.gauge-text {
    font-family: 'Rubik Mono One', monospace;
    font-size: 32px;
    font-weight: 400;
}

.gauge-text-update {
    font-family: 'Rubik Mono One', monospace;
    color: #666d7a;
    text-shadow: none;
    font-size: 32px;
    font-weight: 400;
}
