* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

body {
    background-color: #030712;
    overflow: hidden;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 12px;
    letter-spacing: -0.2px;
}

canvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

/* Premium Minimalist Control Panel Dashboard */
.control-panel {
    position: absolute;
    top: 24px;
    left: 24px;
    background: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(16px);
    border: 1px solid #10b981;
    padding: 24px;
    border-radius: 12px;
    z-index: 10;
    color: #10b981;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
    width: 330px;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

h3 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    border-bottom: 1px dashed #10b981;
    padding-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Forces the buttons to stay in a neat horizontal line */
.hud-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;            /* This creates a permanent space between them */
    align-items: center;
}

/* Beautiful custom dashboard styling for each action trigger */
.hud-actions button {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid currentColor;
    color: inherit;
    cursor: pointer;
    font-size: 9px;
    font-family: inherit;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 6px 10px !important;   /* Clean box size padding */
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;            /* Prevents text from breaking into two lines */
}

.hud-actions button:hover {
    background: rgba(16, 185, 129, 0.15);
    transform: translateY(-1px);
}

.section {
    margin-bottom: 20px;
}

label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: block;
    margin-bottom: 10px;
    color: #34d399;
}

.color-palette {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.btn {
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s;
}

.btn-green { background: #10b981 !important; border-color: #10b981; }
.btn-pink  { background: #ec4899 !important; border-color: #ec4899; }
.btn-gold  { background: #f59e0b !important; border-color: #f59e0b; }
.btn-blue  { background: #06b6d4 !important; border-color: #06b6d4; }

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px currentColor;
}

.input-wrapper {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
}

input[type=range] {
    width: 100%;
    background: #1f2937;
    height: 4px;
    border-radius: 2px;
    outline: none;
    accent-color: #10b981;
    cursor: pointer;
}

.utility-btn {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px dashed #10b981;
    color: #10b981;
    padding: 10px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.utility-btn:hover {
    background: rgba(16, 185, 129, 0.1);
    border-style: solid;
}

.telemetry-grid {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 14px;
    border-radius: 8px;
    font-size: 11px;
    line-height: 1.8;
}

.telemetry-grid span {
    color: #ffffff;
    font-weight: 500;
}

.status-text {
    font-size: 11px;
    color: #6b7280;
    margin-top: 14px;
    line-height: 1.6;
    border-top: 1px solid rgba(16, 185, 129, 0.1);
    padding-top: 12px;
}

.show-hud-btn {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 11;
    background: #111827;
    border: 1px solid #10b981;
    color: #10b981;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.show-hud-btn:hover {
    background: #10b981;
    color: #111827;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    position: absolute;
}
