*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Inter',sans-serif;
}

body{
    background:#0f141a;
    color:white;
    padding:40px;
}

/* Scroll moderne */

::-webkit-scrollbar{
    width:8px;
}

::-webkit-scrollbar-track{
    background:#0f141a;
}

::-webkit-scrollbar-thumb{
    background:linear-gradient(#5cb567,#2aa745);
    border-radius:10px;
}

/* Container */

.container{
    max-width:1100px;
    margin:auto;
}

/* Header */

.header{

    background:linear-gradient(135deg,#5cb567,#2aa745);
    border-radius:14px;
    padding:25px 30px;

    display:flex;
    align-items:center;
    gap:20px;

    box-shadow:0 15px 40px rgba(0,0,0,0.4);

    margin-bottom:30px;
}

.logo{
    width:60px;
}

.header h1{
    font-size:26px;
    font-weight:600;
}

.header p{
    opacity:0.9;
    font-size:14px;
}

/* Infos */

.ticket-info{

    background:#161b22;
    border-radius:12px;

    padding:20px;
    margin-bottom:25px;

    display:flex;
    justify-content:space-between;
}

.ticket-info span{
    font-size:13px;
    opacity:0.7;
}

/* Messages */

.messages{

    background:#161b22;
    border-radius:14px;

    padding:30px;

    display:flex;
    flex-direction:column;
    gap:20px;

    max-height:700px;
    overflow-y:auto;

}

/* Message */

.message{
    display:flex;
    align-items:flex-end;
    gap:12px;
    animation:fadeIn 0.4s ease;
}

/* staff */

.message.staff{
    justify-content:flex-start;
}

/* joueur */

.message.user{
    justify-content:flex-end;
}

/* Avatar */

.avatar{
    width:40px;
    height:40px;
    border-radius:50%;
    background:#2aa745;

    display:flex;
    align-items:center;
    justify-content:center;

    font-weight:600;
}

/* Bulle */

.bubble{

    max-width:60%;
    padding:15px 18px;

    border-radius:14px;

    background:#0f141a;

    box-shadow:0 5px 15px rgba(0,0,0,0.4);
}

/* joueur */

.message.user .bubble{

    background:linear-gradient(135deg,#5cb567,#2aa745);

    color:white;

}

/* header message */

.msg-header{
    display:flex;
    align-items:center;
    gap:10px;

    margin-bottom:5px;
}

.username{
    font-weight:600;
}

.timestamp{
    font-size:12px;
    opacity:0.6;
}

/* message */

.text{
    line-height:1.5;
}

/* edited */

.edited{
    font-size:11px;
    opacity:0.5;
    margin-top:5px;
}

/* attachments */

.attachments{
    margin-top:10px;
    display:flex;
    flex-direction:column;
    gap:8px;
}

.attachments img{
    max-width:260px;
    border-radius:8px;
    cursor:pointer;
    transition:0.2s;
}

.attachments img:hover{
    transform:scale(1.03);
}

/* animation */

@keyframes fadeIn{

    from{
        opacity:0;
        transform:translateY(5px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

/* footer */

.footer{
    text-align:center;
    margin-top:25px;
    opacity:0.5;
    font-size:13px;
}