
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;
    background:#0b1020;
    color:#fff;
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    overflow-x:hidden;
}

.background{
    position:fixed;
    inset:0;
    background:
        radial-gradient(circle at top,#214dff33,transparent 40%),
        radial-gradient(circle at bottom,#0d2a8033,transparent 35%),
        #0b1020;
    z-index:-1;
}

.container{
    width:100%;
    max-width:900px;
    padding:30px;
}

.card{
    background:#171e33;
    border:1px solid rgba(255,255,255,.05);
    border-radius:22px;
    padding:35px;
    box-shadow:0 20px 50px rgba(0,0,0,.45);
    backdrop-filter:blur(10px);
}

.logo{
    text-align:center;
    font-size:40px;
    margin-bottom:10px;
}

.subtitle{
    text-align:center;
    color:#aab3c5;
    margin-bottom:30px;
}

.timer{
    width:110px;
    height:110px;
    margin:0 auto 30px;
    border-radius:50%;
    border:4px solid #2e6bff;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:42px;
    font-weight:bold;
    box-shadow:0 0 30px rgba(46,107,255,.35);
}

button{
    width:100%;
    border:none;
    border-radius:14px;
    padding:15px;
    margin-top:15px;
    font-size:17px;
    cursor:pointer;
    transition:.25s;
}

button:hover:not(:disabled){
    transform:translateY(-2px);
}

button:disabled{
    opacity:.45;
    cursor:not-allowed;
}

.record-btn,
#loginButton{
    background:#2e6bff;
    color:#fff;
}

.record-btn:hover,
#loginButton:hover{
    background:#4d83ff;
}

.stop-btn{
    background:#d34a4a;
    color:#fff;
}

.stop-btn:hover{
    background:#ea6262;
}

.send-btn{
    background:#32d17a;
    color:#fff;
}

.send-btn:hover{
    background:#4ae08d;
}

.status{
    text-align:center;
    color:#aab3c5;
    margin-top:25px;
    min-height:24px;
}

audio{
    width:100%;
    margin-top:20px;
}

input{
    width:100%;
    background:#0f1528;
    border:1px solid #2a355c;
    color:#fff;
    border-radius:14px;
    padding:15px;
    margin-top:20px;
    font-size:16px;
    outline:none;
}

.admin-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
    gap:15px;
}

.admin-header button{
    width:auto;
    background:#2e6bff;
    color:#fff;
    margin:0;
    padding:12px 20px;
}

#queueInfo{
    color:#aab3c5;
    margin-bottom:20px;
}

.queue-card{
    background:#0f1528;
    border:1px solid #293252;
    border-radius:16px;
    padding:18px;
    margin-bottom:18px;
    animation:fade .25s ease;
}

.queue-title{
    font-weight:bold;
    margin-bottom:15px;
    word-break:break-all;
}

.queue-buttons{
    display:flex;
    gap:10px;
    margin-top:15px;
}

.queue-buttons button{
    flex:1;
    margin:0;
}

.reverseButton{
    background:#2e6bff;
    color:#fff;
}

.deleteButton{
    background:#d34a4a;
    color:#fff;
}

.empty{
    text-align:center;
    color:#aab3c5;
    padding:35px;
}

@keyframes fade{
    from{
        opacity:0;
        transform:translateY(10px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@media(max-width:700px){

    .container{
        padding:15px;
    }

    .card{
        padding:20px;
    }

    .logo{
        font-size:30px;
    }

    .queue-buttons{
        flex-direction:column;
    }

    .admin-header{
        flex-direction:column;
        align-items:stretch;
    }

    .admin-header button{
        width:100%;
    }

}

.recorder-card {
    margin-bottom: 20px;
}

.recorder-buttons {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.recorder-buttons button {
    flex: 1;
}