
/* =========================
   GENERAL
========================= */

body {
    font-family: Arial, sans-serif;
    background-color: #181818;
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    -webkit-text-size-adjust: 100%;
}

/* =========================
   CHAT CONTAINER
========================= */

.chat-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #2a2a2a;
    overflow: hidden;
}

/* =========================
   MESSAGES
========================= */

#messages {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    color: #fff;
}

/* Mesaj */
.message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    background-color: #3c3c3c;
    color: #fff;
}

/* Media */
.message img {
    max-width: 90%;
    border-radius: 10px;
}

.message video {
    width: 100%;
    max-width: 500px;   /* limită pe desktop */
    height: auto;
    border-radius: 10px;
    display: block;
}

/* Linkuri */
.message a {
    color: red !important;
}

/* =========================
   INPUT CHAT MODERN
========================= */

form#chat-form {
    padding: 8px;
    background-color: #2a2a2a;
    border-top: 1px solid #444;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: #444;
    border-radius: 25px;
    padding: 4px;
}

/* input */
.input-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: #fff;
    font-size: 15px;
    padding: 6px 10px;
    height: 34px;
}

/* send button */
.input-wrapper button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #128c7e;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.input-wrapper button:hover {
    background: #075e54;
}

/* =========================
   FILE BUTTONS
========================= */

.file-buttons {
    display: flex;
    justify-content: space-around;
    padding: 8px;
    background-color: #2a2a2a;
    border-top: 1px solid #444;
}

.file-buttons button {
    flex: 1;
    margin: 3px;
    padding: 14px 0;
    font-size: 20px;
    border: none;
    background-color: #128c7e;
    color: white;
    border-radius: 8px;
    cursor: pointer;
}

.file-buttons button:hover {
    background-color: #075e54;
}

/* sunet */
#enable-sound {
    font-size: 22px;
    background: transparent;
    border: none;
    color: white;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 480px) {

    .input-wrapper input {
        font-size: 17px;
        height: 38px;
    }

    .input-wrapper button {
        width: 46px;
        height: 46px;
        font-size: 22px;
    }

    .file-buttons button {
        font-size: 24px;
        padding: 16px 0;
    }

    #messages {
        font-size: 18px;
        padding: 12px;
    }

    .message {
        font-size: 18px;
        padding: 12px;
    }
}