.wone-chat-container {
    display: flex;
    height: 600px;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
}

.wone-chat-sidebar {
    width: 300px;
    border-right: 1px solid #ddd;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    background: white;
}

.chat-header h3 {
    margin: 0 0 10px 0;
}

.btn-broadcast, .btn-create-group {
    background: #007cba;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin: 2px;
}

.search-container {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

#chatSearch {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.chat-list {
    flex: 1;
    overflow-y: auto;
}

.chat-section {
    padding: 10px;
}

.chat-section h4 {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
}

.chat-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 5px;
    background: white;
    border: 1px solid #eee;
}

.chat-item:hover {
    background: #e9ecef;
}

.chat-item.active {
    background: #007cba;
    color: white;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #007cba;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 10px;
}

.group-avatar {
    background: #28a745;
}

.chat-info {
    flex: 1;
}

.chat-name {
    font-weight: bold;
    display: block;
}

.last-message, .group-members {
    font-size: 12px;
    color: #666;
}

.unread-count {
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.wone-chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-area-header {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.messages-container {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8f9fa;
}

.no-chat-selected {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
}

.message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
    max-width: 70%;
}

.message.sent {
    background: #007cba;
    color: white;
    margin-left: auto;
}

.message.received {
    background: white;
    border: 1px solid #ddd;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.message-time {
    font-size: 11px;
    opacity: 0.8;
}

.message-actions {
    position: relative;
}

.btn-more {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 2px 5px;
}

.message-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    z-index: 100;
    min-width: 150px;
}

.message-dropdown button {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    color: #333;
}

.message-dropdown button:hover {
    background: #f8f9fa;
}

.file-attachment {
    margin: 5px 0;
    padding: 5px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

.file-attachment a {
    color: inherit;
    text-decoration: none;
}

.message-input-container {
    padding: 15px;
    border-top: 1px solid #ddd;
    background: white;
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.file-upload-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-attach {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
}

#fileName {
    font-size: 12px;
    color: #666;
}

#messageInput {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: none;
    height: 60px;
}

#sendMessageBtn {
    background: #007cba;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

/* Notifications */
.wone-notification-bell {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.notifications-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wone-notification-bell:hover .notifications-dropdown {
    display: block;
}