/*body {
    margin:0;
    font-family:sans-serif;
    background:#fff;
    color:white;
}*/

.chat-container {
    display:flex;
    flex-direction:column;
    height:60vh;
}

.chat-header
{
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 10px;
    align-items: center;
    width: 100%;/*calc(100% - 30px)*/
    margin: 0 auto;
    /*box-shadow: 0px 0px 10px -0px rgba(0, 0, 0, 0.5);*/
    position: relative;
    background: unset;
    backdrop-filter: blur(10px);
}

.chat-header h1
{
    background: transparent;
}
.chat-header #set_chat
{
font-size: 25px;
    background: unset;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    padding: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
#set_chat:hover{
    background-color: var(--set-chat);
}
.chat-header span i{
    color: var(--primary-color);
}
.span_chat_left{
    background: var(--primary-background);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 0.8em;
}
.span_chat_right{
    color: #414141;
    font-size: 0.8em;
}

.chat-messages {
    flex:1;
    overflow-y:auto;
    padding:20px;
}

.style_setting_chat{
    position: absolute;
    z-index: 2;
    background: var(--secondary_back);
    left: 50%;
    transform: translateX(-50%);
    top: 15px;
    border-radius: 15px;
    box-shadow: 0px 0px 10px -0px rgba(0, 0, 0, 0.5);
    width: calc(100% - 30px);
    visibility: hidden;
    height: 81px;
    opacity: 0;
    transition: .25s all;
}
.style_setting_chat.show{
    visibility: visible;
    opacity: 1;
    height: calc(100% - 30px);
    backdrop-filter: blur(5px) brightness(100%);
}
.grid_set_chat{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    /*gap: 20px;*/
    align-items: center;
    height: 70px;
    box-shadow: 0px 0px 1px 1px var(--set_chat_shadow);
    border-radius: 10px;
    width: 95%;
    left: 50%;
    position: relative;
    transform: translateX(-50%);
    margin-top: 10px;
    transition: box-shadow .5s;
}
.grid_set_chat:hover{
    box-shadow: 0px 0px 8px var(--chat-ligne);
}
.grid_set_chat button{
    border: none;
    outline: none;
    color: #fff;
    background: var(--primary-color);
    width: 25%;
    margin: 0 auto;
    text-align: center;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.25s;
    padding: 5px;
    font-size: 15px;
    height: 45px;
    line-height: unset;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 10px;
}
.grid_set_chat #toggleSound{
    background: #f44336;
}
.grid_set_chat #toggleSound.active{
    background: #00c853;
}
.grid_set_chat label{
    top: unset;
    margin: 0 auto;
}
.input_color{
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    margin: 0 auto;
}
.input_color::-webkit-color-swatch{
    border-radius: 5px;
    border: none;
}
.style_chat_close{
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.titre_profil_chat{
    font-size: 1.4vw;
    padding: 10px;
    background: transparent;
}

.content-auth-user{
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.content-auth-user h2{
    color: #00bcd4;
  display: block;
  max-height: 50px;
  vertical-align: top;
  margin-top: unset;
  word-break: break-word;
}

.content-auth-user button{
    background-image: linear-gradient(141deg, #1fc8db 51%, #2cb5e8 75%);
  border: unset;
  padding: 10px;
  border-radius: 10px;
  color: #fff;
}

.message {
    padding:8px;
    border-radius:6px;
    margin-bottom:6px;
    transition:background 0.2s;
    display: flex;
    gap: 15px;
    align-items: center;
    color: black;
    max-width: unset;
    background: unset;
    flex-wrap: wrap;
}

.message:hover {
    background:lightgray;
}

.message-header {
    font-weight:bold;
}

.message-content {
    white-space:pre-wrap;
    background: var(--chat-content);
    padding: 10px;
    border-radius: 10px 10px 10px 0;
    max-width: 100%;
    text-align: justify;
}
.message-deleted .message-content {
    opacity: 0.6;
    font-style: italic;
}
.message-deleted {
    opacity: 0.85;
}

.message-actions {
    font-size: 0.8em;
    display: flex;
    gap: 8px;
    background: var(--chat-content);
    padding: 10px;
    border-radius: 10px;
}

.username{
font-weight:bold;
}

.role-admin{
color:#ff4d4d;
}

.role-moderator{
color:#43b581;
}

.role-vip{
color:#a970ff;
}

.badge{

margin-left:5px;
font-size:12px;
padding:2px 6px;
border-radius:4px;
font-weight:bold;

}

.badge-admin{

background:#ff4d4d;
color:white;

}

.badge-moderator{

background:#43b581;
color:white;

}

.username-gradient{

background: linear-gradient(90deg,#ff7a18,#ff3d77,#9d4edd);
-webkit-background-clip:text;
-webkit-text-fill-color:transparent;

}

.username-glow{

text-shadow:
0 0 5px currentColor,
0 0 10px currentColor,
0 0 20px currentColor;

}

.mention{

color:#00aaff;
font-weight:bold;
background:rgba(0,170,255,0.15);
padding:2px 5px;
border-radius:4px;

}

.mention:hover{

background:rgba(0,170,255,0.3);

}
.mention-highlight{
border-left:3px solid #00bcd4;
padding-left:8px;

background: rgba(0,188,212,0.13);
}
.mention-highlight-element{
    background: var(--titre-font);
}

.chat-input {
    display:flex;
    padding:10px;
    background:var(--titre-font);
    align-items: center;
    width: calc(100% - 30px);
    border-radius: 15px;
    margin: 20px auto 0;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
    bottom: 15px;
    position: relative;
    transition: box-shadow .4s;
}

.chat-input:focus-within{
    box-shadow: var(--primary-shadow);
}


textarea {
    flex:1;
    background:transparent;
    border:none;
    color:var(--text);
    padding:10px;
    border-radius:8px;
    resize: none;
    outline: none;
    font-size: 18px;
    top: 50%;
    transform: translateY(calc(-50% + 10px));
}

button {
    margin-left:10px;
    padding:5px 15px;
}
.emoji-btn{
    cursor:pointer;
}
#emoji_picker
{
    font-size: 20px;
}
#send_btn
{
    height: 54px;
    border-radius: 0;
    border: none;
    width: 54px;
    display: inline-block;
    padding: 0;
    color: #00bcd4;
    border: 2px solid var(--primary-color);
    color: #fff;
    border-radius: 50%;
    background: #fff;
    padding-right: 4px;
    cursor: pointer;
}
#send_btn i{
    font-size: 1.75em;
    transform: rotate(45deg);
    color: var(--primary-color);
}
/*Modération*/
#contextMenu{

position:absolute;
background:#2f3136;
border-radius:5px;
padding:5px;
display:none;
z-index:99999;
min-width:180px;
pointer-events: auto;

}

#contextMenu div{

padding:8px;
cursor:pointer;
color:white;

}

#contextMenu div:hover{

background:#40444b;

}
.chat_v_content{
    position: absolute;
    color: #00bcd4;
    bottom: 20px;
    /* height: 50px; */
    background: var(--primary-color);
    padding: 10px;
    border-radius: 0 10px 10px 0;
}
.chat_v_content span{
    color: #fff;
}
.chat_v_content span a{
    text-decoration: underline;
    color: #fff;
} 
.ban-message {
    margin: 8px 0;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.35);
    color: #dc3545;
    font-size: 14px;
    font-weight: 600;
    width: 90%;
    margin: 0 auto;
}

#messageInput:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#sendMessage:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}