/* General Styles */
.customer-chat {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    background: #f5f5f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

h1 {
    text-align: center;
    color: #333;
    margin: 20px 0;
}

/* Chat Container */
.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100% - 70px); /* Adjusted for header */
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

/* Message List */
.message-list {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #f7f7f7;
    border-bottom: 1px solid #ddd;
}

.message-item {
    padding: 12px 16px;
    border-radius: 20px;
    margin-bottom: 12px;
    max-width: 75%;
    word-break: break-word;
    line-height: 1.5;
}

.message-item.self {
    background-color: #007bff;
    color: #fff;
    align-self: flex-end;
    text-align: right;
}

.message-item.other {
    background-color: #e0e0e0;
    color: #333;
    align-self: flex-start;
}

/* Input Container */
.input-container {
    display: flex;
    align-items: center;
    padding: 12px;
    border-top: 1px solid #ddd;
    background: #fff;
}

input[type="text"] {
    flex: 1;
    padding: 12px;
    margin-right: 12px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

button {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    background-color: #007bff;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* End Chat Button */
.end-chat-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    background: #fff;
    border-top: 1px solid #ddd;
}

.end-chat-container button {
    background-color: #dc3545;
    border-radius: 20px;
}

.end-chat-container button:hover {
    background-color: #c82333;
}

/* Options Icon */
.options-menu {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.options-menu .dot {
    width: 10px;
    height: 10px;
    background-color: #333;
    border-radius: 50%;
    display: inline-block;
    margin: 0 2px;
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
    background: #000000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 8px 0;
    width: 120px;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu button {
    width: 100%;
    background: none;
    border: none;
    padding: 12px;
    text-align: left;
    font-size: 14px;
    cursor: pointer;
}

.dropdown-menu button:hover {
    background: #ff0000;
}

/* Responsive Design */
@media (max-width: 600px) {
    .chat-container {
        max-width: 100%;
        border-radius: 0;
    }
}
