body {
    margin: 0;
    min-height: 100vh;
    background: #111;
    color: white;
    font-family: Arial, sans-serif;

    display: flex;
    align-items: center;
    justify-content: center;
}

.panel {
    width: 320px;
    padding: 24px;
    background: #1c1c1c;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

h1 {
    margin-top: 0;
    text-align: center;
}

label {
    display: block;
    margin-bottom: 8px;
}

input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    font-size: 22px;
    text-align: center;
    letter-spacing: 4px;
    border: none;
    border-radius: 8px;
    margin-bottom: 16px;
}

button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #2f7d32;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

#status {
    margin-top: 16px;
    text-align: center;
    color: #8fd18f;
}

/* --- */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 18px;
    padding: 10px 12px;

    background: #111;
    border-radius: 8px;
    border: 1px solid #333;
}

#current-conf {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 2px;
}

.indicator {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #555;
    box-shadow: 0 0 8px rgba(0,0,0,0.7);
}

.indicator.rx {
    background: #28d957;
    box-shadow: 0 0 12px rgba(40,217,87,0.9);
}

#settings-button {
    position: absolute;
    top: 12px;
    right: 12px;

    width: 36px;
    height: 36px;

    border-radius: 50%;
    background: #2b2b2b;
    color: white;
    border: 1px solid #444;
    cursor: pointer;
}

.panel {
    position: relative;
}

#settings-panel {
    margin-bottom: 18px;
    padding: 14px;
    background: #111;
    border: 1px solid #333;
    border-radius: 10px;
}

#settings-panel h2 {
    margin-top: 0;
    font-size: 20px;
}

#bind-key-button,
#clear-key-button,
#ptt-button {
    margin-top: 8px;
}

#ptt-button {
    background: #444;
}

#ptt-button.transmitting {
    background: #b3261e;
}

#current-key {
    margin-top: 10px;
    color: #aaa;
    text-align: center;
}