html, body {
    margin: 0;
    padding: 0;
    background-color: #171717;
    color: white;
    font-family: "Inter", Arial, sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #55ACEE;
}

#nameInput {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-family: "Inter", Arial, sans-serif;
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    color: white;
    outline: none;
    width: 280px;
    margin-bottom: 0.75rem;
    transition: border-color 200ms;
}

#nameInput:focus {
    border-color: #55ACEE;
}

#sendBtn {
    padding: 0.6rem 2rem;
    font-size: 1rem;
    font-family: "Inter", Arial, sans-serif;
    font-weight: 600;
    background-color: #55ACEE;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 200ms;
}

#sendBtn:hover {
    background-color: #0051ff;
}

#sendBtn:active {
    transition: none;
    background-color: #0040cc;
}

#toasts {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 100;
}

.toast {
    background-color: #2a2a2a;
    border: 1px solid #55ACEE;
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    font-family: "Inter", Arial, sans-serif;
    color: white;
    animation: slidein 200ms ease;
    max-width: 320px;
}

.toast.fade-out {
    animation: fadeout 400ms ease forwards;
}

@keyframes slidein {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeout {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(10px); }
}

#connIndicator {
    position: fixed;
    top: 1.25rem;
    left: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-family: "Inter", Arial, sans-serif;
    font-weight: 600;
}

#connDot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

#connIndicator.connected { color: #4caf50; }
#connIndicator.connected #connDot { background-color: #4caf50; }

#connIndicator.disconnected { color: #f44336; }
#connIndicator.disconnected #connDot { background-color: #f44336; }