* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(
            circle at top,
            #162b3d 0,
            #081018 55%,
            #05090e 100%
        );
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
}



.app {
    width: 100%;
    max-width: 720px;
    margin: auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
}

.logo::first-letter {
    color: #35c8ff;
}

.status {
    padding: 8px 13px;
    border-radius: 20px;
    background: #141e28;
    font-size: 11px;
    font-weight: bold;
}
.audioContainer {
    display: none;
}

.voiceDot {
    background: #2cff88;
}

.voiceDot.transmitting {
    background: #ff3e4d;
    box-shadow: 0 0 12px #ff3e4d;
}

.talk.active {
    transform: scale(.94);
    background:
        radial-gradient(
            circle at 50% 35%,
            #d43a48,
            #54141b 70%
        );
    box-shadow:
        0 0 25px rgba(255, 50, 70, .45),
        0 0 0 7px #0b131c;
}

.talk:disabled {
    opacity: .45;
    cursor: not-allowed;
}
.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 50%;
    background: #ef3947;
}

.status.online .dot {
    background: #20ff83;
    box-shadow: 0 0 10px #20ff83;
}

.card {
    padding: 28px;
    border: 1px solid #273a4c;
    border-radius: 24px;
    background: rgba(14, 24, 35, .96);
    box-shadow: 0 25px 60px rgba(0,0,0,.4);
}

.radioIcon {
    text-align: center;
    font-size: 55px;
    margin-bottom: 10px;
}

h1 {
    text-align: center;
    margin: 0;
    font-size: 30px;
}

.card > p {
    text-align: center;
    color: #8ca1b6;
    margin-bottom: 28px;
}

label,
.label {
    display: block;
    color: #8297ac;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 7px;
}

input,
select {
    width: 100%;
    padding: 14px;
    border-radius: 11px;
    border: 1px solid #34495c;
    background: #080e14;
    color: white;
    font-size: 16px;
    outline: none;
}

input:focus,
select:focus {
    border-color: #25bff5;
}

label + input {
    margin-bottom: 18px;
}

.connect {
    width: 100%;
    border: 0;
    border-radius: 11px;
    padding: 15px;
    margin-top: 20px;
    background: #12aee9;
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 15px;
}

.connect:hover {
    background: #24bdf2;
}

.error {
    min-height: 20px;
    color: #ff6874;
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
}

.info {
    color: #63798d;
    text-align: center;
    font-size: 11px;
    margin-top: 15px;
}

.walkieTop {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.channelTitle {
    font-size: 27px;
    font-weight: bold;
}

.disconnect {
    border: 1px solid #66343b;
    background: #321a1f;
    color: #ff9ba2;
    padding: 9px 12px;
    border-radius: 9px;
    cursor: pointer;
}

.channelSelector {
    display: flex;
    gap: 8px;
    margin-top: 22px;
}

.channelSelector button {
    width: 46px;
    border: 1px solid #34495c;
    border-radius: 10px;
    background: #172432;
    color: white;
    font-size: 25px;
    cursor: pointer;
}

.channelSelector select {
    flex: 1;
}

.talk {
    display: block;
    width: 220px;
    height: 220px;
    margin: 30px auto 15px;
    border-radius: 50%;
    border: 10px solid #1c2b3a;
    background:
        radial-gradient(
            circle at 50% 35%,
            #1681ad,
            #092d42 70%
        );
    color: white;
    cursor: pointer;
    box-shadow:
        0 0 0 7px #0b131c,
        0 20px 50px rgba(0,0,0,.5);
    transition: transform .1s;
}

.talk:active,
.talk.active {
    transform: scale(.95);
    background:
        radial-gradient(
            circle at 50% 35%,
            #c22e3b,
            #4c1118 70%
        );
}

.microphone {
    display: block;
    font-size: 43px;
    margin-bottom: 10px;
}

.talk strong,
.talk small {
    display: block;
}

.talk strong {
    font-size: 18px;
}

.talk small {
    margin-top: 6px;
    color: #9bc6da;
}

.voiceStatus {
    text-align: center;
    color: #8da1b5;
    font-size: 11px;
    font-weight: bold;
}

.voiceDot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2cff88;
    margin-right: 7px;
}

.peopleHeader {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid #253544;
    color: #8096aa;
    font-size: 11px;
    font-weight: bold;
}

.peopleHeader b {
    color: white;
}

.user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 3px;
    border-bottom: 1px solid #17232e;
}

.avatar {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #173449;
}

.me {
    color: #36c9ff;
}

footer {
    text-align: center;
    color: #52687c;
    font-size: 11px;
    padding: 20px;
}

@media (max-width: 500px) {

    .app {
        padding: 10px;
    }

    .card {
        padding: 19px;
    }

    .talk {
        width: 195px;
        height: 195px;
    }
}
/* =========================================================
   PEOPLE / TALKING STATUS
========================================================= */

.user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 8px;
    border-bottom: 1px solid #17232e;
    transition: .2s ease;
}

.userInfo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.userRadioDot {
    width: 9px;
    height: 9px;
    min-width: 9px;
    border-radius: 50%;
    background: #20ff83;
    box-shadow: 0 0 6px rgba(32,255,131,.4);
}

.userName {
    color: #ffffff;
    font-weight: bold;
    font-size: 14px;
}

.talkingStatus {
    font-size: 10px;
    font-weight: bold;
    color: #71879a;
    white-space: nowrap;
}


/* =========================================================
   PERSON IS TALKING
========================================================= */

.userTalking {
    background: rgba(255, 45, 60, .10);
    border-radius: 9px;
    border-bottom-color: rgba(255, 45, 60, .3);
}

.userTalking .userRadioDot {
    background: #ff3045;
    box-shadow:
        0 0 5px #ff3045,
        0 0 12px #ff3045;
    animation: talkingPulse .65s infinite alternate;
}

.userTalking .talkingStatus {
    color: #ff4052;
    text-shadow: 0 0 8px rgba(255,50,70,.5);
    animation: talkingText .65s infinite alternate;
}


/* =========================================================
   TALKING ANIMATION
========================================================= */

@keyframes talkingPulse {

    from {
        transform: scale(1);
        opacity: .55;
    }

    to {
        transform: scale(1.6);
        opacity: 1;
    }

}

@keyframes talkingText {

    from {
        opacity: .55;
    }

    to {
        opacity: 1;
    }

}


/* =========================================================
   MY TALK BUTTON
========================================================= */

.talk.active {
    border-color: #ff3045;
    box-shadow:
        0 0 0 7px #0b131c,
        0 0 25px rgba(255,48,69,.55),
        0 20px 50px rgba(0,0,0,.5);
}

.voiceDot.transmitting {
    background: #ff3045;
    box-shadow:
        0 0 8px #ff3045,
        0 0 15px #ff3045;
    animation: talkingPulse .65s infinite alternate;
}

/* =========================================================
   NOW TALKING BANNER
========================================================= */

.nowTalking {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
    padding: 12px 14px;
    border: 1px solid #253544;
    border-radius: 11px;
    background: #0c151d;
    color: #71879a;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    text-align: center;
    transition: .18s ease;
}

.nowTalking .nowTalkingDot {
    width: 9px;
    height: 9px;
    min-width: 9px;
    border-radius: 50%;
    background: #2b4356;
}

.nowTalking.live {
    border-color: rgba(255, 48, 69, .55);
    background: rgba(255, 45, 60, .12);
    color: #ff5566;
    text-shadow: 0 0 10px rgba(255, 50, 70, .45);
}

.nowTalking.live .nowTalkingDot {
    background: #ff3045;
    box-shadow:
        0 0 6px #ff3045,
        0 0 14px #ff3045;
    animation: talkingPulse .65s infinite alternate;
}


/* =========================================================
   YOUR OWN ROW IN THE LIST
========================================================= */

.userMe .userName {
    color: #36c9ff;
}

.userTag {
    padding: 2px 7px;
    border-radius: 20px;
    background: #14344a;
    color: #4fc9ff;
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 1px;
}
