#reduchat-box {
    border: 0;
    padding: 15px;
    max-width: 100%;
    margin: 20px auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: inherit;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    border-radius: 8px;
}

#reduchat-messages {
    max-height: 300px;
    overflow-y: auto;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 10px;
    background-color: inherit;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    padding: 10px;
    border-radius: 4px;
}

.reduchat-message {
    margin-bottom: 10px;
    padding: 5px;
    background: inherit;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    border-radius: 4px;
    border: 0;
}

.reduchat-seen {
    font-weight: normal;
    opacity: 0.8;
    font-size: 0.9em;
}

#reduchat-credentials {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 10px;
}

#reduchat-nickname,
#reduchat-password {
    flex: 1;
    padding: 8px;
    border: 0;
    border-radius: 4px;
    background: #222;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

#reduchat-message {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 0;
    border-radius: 4px;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background-color: inherit;
    resize: none;
}

.reduchat-link {
    display: block;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
    margin: 10px 0;
    padding: 10px;
    background-color: inherit;
    border-radius: 4px;
    border: 0;
    transition: background-color 0.2s, color 0.2s;
}

.reduchat-link:hover {
    color: inherit;
    background-color: inherit;
}

#reduchat-send {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    background-color: inherit;
    color: inherit;
    border: 0;
    border-radius: 4px;
    font-weight: bold;
    font-size: inherit;
    font-family: inherit;
    transition: background-color 0.2s, transform 0.2s;
}

#reduchat-send:hover {
    background-color: inherit;
    transform: scale(1.02);
}

#reduchat-fulltext {
    max-height: 70vh;
    overflow: auto;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.15);
    white-space: pre-wrap;
}

@media (max-width: 480px) {
    #reduchat-credentials {
        flex-direction: column;
    }

    #reduchat-nickname,
    #reduchat-password {
        width: 100%;
        margin-bottom: 10px;
    }
}
