
.mc_container {
    width: 100%;
    max-width: 1000px;
    height: 90vh;
    min-height: 500px;
    background-color: #1A1A1A;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: row;
}

.mc_friends_list {
    width: 30%;
    min-width: 250px;
    background-color: #222222;
    border-right: 1px solid #FF0000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease-in-out;
}

.mc_friends_header {
    padding: 20px;
    background-color: #FF0000;
    color: #FFD700;
}

.mc_friends_header h3 {
    margin-bottom: 10px;
}

#mc_friends {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
}

.mc_friend {
    cursor: pointer;
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 6px;
    transition: background-color 0.2s;
    color: #FFD700;
}

.mc_friend:hover {
    background-color: #FF0000;
    color: #000000;
}

.mc_friend.mc_active {
    background-color: #FFD700;
    color: #000000;
}

.mc_add_friend {
    padding: 10px;
    border-top: 1px solid #FF0000;
}

.mc_chat_area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mc_chat_header {
    background-color: #FF0000;
    color: #FFD700;
    padding: 15px 20px;
    font-size: 1.2em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#mc_chat_messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #1A1A1A;
    min-height: 200px;
}
#mc_chat_title {
	color:white;
	font-weight:bold;
}

.mc_date_header {
    text-align: center;
    padding: 10px;
    background-color: rgba(255, 215, 0, 0.1);
    color: #FFD700;
    margin: 10px 0;
    border-radius: 5px;
}

.mc_message {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.mc_message_time {
    font-size: 0.8em;
    color: #888;
    margin-bottom: 2px;
}

.mc_message_content {
    padding: 10px;
    border-radius: 8px;
    max-width: 90%;
    word-wrap: break-word;
}

.mc_sent {
    align-items: flex-end;
}

.mc_sent .mc_message_content {
    background-color: #1A1A1A;
}

.mc_received {
    align-items: flex-start;
}

.mc_received .mc_message_content {
    background-color: #2A2A2A;
}

.mc_input_area {
    display: flex;
    padding: 15px;
    border-top: 1px solid #FF0000;
    background-color: #222222;
    flex-shrink: 0;
}

.mc_input_area input[type="text"] {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid #FFD700;
    background-color: #000000;
    color: #FFD700;
    border-radius: 25px;
    margin-right: 10px;
    font-size: 14px;
    min-width: 0;
}

.mc_button {
    background-color: #FF0000;
    color: #FFD700;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    font-size: 16px;
}

.mc_button:hover {
    background-color: #FFD700;
    color: #000000;
}

.mc_button:active {
    transform: scale(0.98);
}

.mc_smilie_panel {
    display: none;
    position: absolute;
    bottom: 60px;
    left: 20px;
    background-color: #222222;
    border: 1px solid #FFD700;
    border-radius: 5px;
    padding: 10px;
    z-index: 1000;
}

.mc_smilie_button {
	border:0px;
	background-color:transparent;
    cursor: pointer;
    margin: 2px;
    font-size: 24px;
}

.mc_message img, .mc_message video {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.mc_loading {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #FFD700;
    padding: 20px;
    border-radius: 5px;
    z-index: 1000;
}

#mc_toggle_friends {
    display: none;
    background: none;
    border: none;
    color: #FFD700;
    font-size: 1.5em;
    cursor: pointer;
}

.mc_file_upload {
    display: none;
}

.mc_upload_options {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
}

.mc_upload_option {
    background-color: transparent;
    color: #FFD700;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.1s;
    font-size: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
}

.mc_upload_option:hover {
    transform: scale(1.1);
}

.mc_actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Responsive styles */
@media (max-width: 768px) {
    .mc_container {
        height: 97vh;
        border-radius: 0;
    }

    .mc_friends_list {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        max-height: 50vh;
        transform: translateY(-100%);
        z-index: 1000;
    }

    .mc_friends_list.mc_show {
        transform: translateY(0);
    }

    .mc_chat_area {
        height: 100%;
    }

    .mc_input_area {
        flex-wrap: wrap;
    }

    .mc_input_area input[type="text"] {
        width: 100%;
        margin-bottom: 10px;
    }

    .mc_actions {
        width: 100%;
        justify-content: space-between;
    }

    #mc_toggle_friends {
        display: block;
    }

    .mc_smilie_panel {
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .mc_friends_header h3 {
        font-size: 1em;
    }

    .mc_chat_header {
        font-size: 1em;
        padding: 10px;
    }

    .mc_message_content {
        max-width: 95%;
    }

    .mc_input_area {
        padding: 10px;
    }

    .mc_input_area input[type="text"] {
        padding: 8px;
        font-size: 12px;
    }

    .mc_button, .mc_upload_option {
        padding: 5px 2px;
        font-size: 14px;
    }
}