/* Copyright (C) 2026 Hauke Christoph, Wellenweg GbR - All rights reserved */
html, body {
    overscroll-behavior-y: contain;
}
body {
    background-color: #000;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 10px 20px 20px 20px;
    transition: filter 0.3s ease; 
}
body.dimmed {
    filter: grayscale(100%) sepia(100%) hue-rotate(-45deg) saturate(1000%) brightness(0.35); 
}
.container {
    max-width: 400px;
    margin: 0 auto;
}
.tab-bar {
    display: flex;
    border-bottom: 2px solid #222;
    margin-bottom: 30px;
}
.tab-button {
    flex: 1;
    padding: 15px;
    text-decoration: none;
    color: #666;
    font-weight: bold;
    font-size: 16px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}
.tab-button.active {
    color: #fff;
    border-bottom-color: #004a9f; 
}
input[type="number"], input[type="text"] {
    font-size: 24px;
    padding: 10px;
    width: 150px;
    text-align: center;
    border-radius: 8px;
    border: none;
    margin-top: 10px;
    background-color: #222;
    color: #fff;
}
input[type="text"] {
    text-transform: uppercase; 
    width: 200px;
    letter-spacing: 2px;
}
button {
    font-size: 20px;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    margin-bottom: 10px;
    transition: opacity 0.3s ease; 
}

.btn-primary { background-color: #004a9f; color: #eee; }
.btn-danger { background-color: #990000; color: #eee; }
.btn-secondary { background-color: #2a2a2a; color: #aaa; }
.btn-dark { background-color: #1a1a1a; color: #888; border: none; }

.btn-test {
    font-size: 14px;
    padding: 8px 15px;
    width: auto;
    margin: 10px auto;
    display: block;
    background-color: #222;
    color: #aaa;
    border: none;
}

body.dimmed button {
    opacity: 0.5;
}

.icon-gray {
    filter: grayscale(100%);
    display: inline-block; 
}
.icon-orig {
    display: inline-block; 
}
.pin-line {
    font-size: 20px;
    color: #fff;
    margin: 15px 0;
}
.pin-display {
    font-size: 20px;
    letter-spacing: 2px;
    color: #00cc00;
    font-weight: bold;
    text-transform: uppercase;
}
.distance-display {
    font-size: 64px;
    font-weight: bold;
    margin: 20px 0;
}
.note { color: #888; font-size: 14px; margin-bottom: 30px; }

.status-offline { background-color: #141414; }

.status-ok { background-color: #042004; }
.status-warning { background-color: #2b1c02; } 
.status-alarm { 
    background-color: #ff0000; 
    animation: flash 1s infinite; 
}

@keyframes flash {
    0% { background-color: #ff0000; }
    50% { background-color: #4a0000; }
    100% { background-color: #ff0000; }
}
body.status-alarm #stopBtn,
body.status-alarm #disconnectBtn {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: none !important;
}
.accordion {
    margin-top: 40px;
    text-align: left;
    border-top: 1px solid #333;
    padding-top: 15px;
}
.accordion summary {
    color: #666;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    text-align: center;
}
.accordion-content {
    font-size: 12px;
    color: #888;
    margin-top: 15px;
    line-height: 1.5;
}
.radar-container {
    width: 100%;
    max-width: 250px;
    aspect-ratio: 1 / 1;
    margin: 0 auto 15px auto;
    overflow: visible; 
}
.radar-svg {
    width: 100%;
    height: 100%;
    overflow: visible; 
}

