* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #0c0c0e;
    color: #e1e1e6;
}

#app-container {
    display: flex;
    width: 100%;
    height: 100%;
}

#dashboard {
    width: 380px;
    background-color: #16161f;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 4px 0 15px rgba(0,0,0,0.7);
    z-index: 1000;
    overflow-y: auto;
}

#brand h1 {
    font-size: 1.6rem;
    color: #00adb5;
}

.subtitle {
    font-size: 0.8rem;
    color: #797a93;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.control-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: #1f1f2e;
    padding: 10px;
    border-radius: 6px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #c4c4d4;
    cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
    appearance: none;
    background-color: #16161f;
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 1.15em;
    height: 1.15em;
    border: 1px solid #797a93;
    border-radius: 3px;
    display: grid;
    place-content: center;
    cursor: pointer;
}

.checkbox-container input[type="checkbox"]::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    background-color: #00adb5;
    transform-origin: center;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.checkbox-container input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.satellite-card {
    background-color: #1f1f2e;
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 5px solid #00adb5;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#cses02-card {
    border-left-color: #ff5722;
}

.satellite-card h2 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 2px;
}

.data-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #a5a5b4;
}

.geo-data {
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    color: #00adb5;
}

#cses02-card .geo-data {
    color: #ff5722;
}

.magnetic-data {
    border-top: 1px dashed #3b3b4f;
    padding-top: 6px;
    margin-top: 2px;
}

.magnetic-data span:last-child {
    color: #e43f5a;
    font-weight: bold;
    font-family: 'Courier New', Courier, monospace;
}

#analytics-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #1f1f2e;
    border-radius: 8px;
    padding: 10px;
    flex-grow: 1;
}

.tab-menu {
    display: flex;
    background-color: #16161f;
    padding: 3px;
    border-radius: 6px;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: #797a93;
    padding: 6px 0;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    font-weight: 600;
}

.tab-btn.active {
    background-color: #2a2a3d;
    color: #fff;
}

.tab-content {
    display: none;
    width: 100%;
}

.tab-content.active {
    display: block;
}

.chart-wrapper {
    position: relative;
    width: 100%;
    height: 170px;
}

.distance-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #16161f;
    padding: 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.distance-stat strong {
    color: #e43f5a;
}

#map {
    flex-grow: 1;
    height: 100%;
    background-color: #09090b;
}

.station-marker {
    transition: all 0.3s ease-in-out;
}