/* Custom styles */
.tab-content {
    display: block;
}

.tab-content.hidden {
    display: none;
}

.nav-btn.active {
    color: #16a34a;
    border-bottom-color: #16a34a;
}

.page-content {
    display: block;
}

.page-content.hidden {
    display: none;
}

#qr-container img {
    max-width: 100%;
    height: auto;
}

.group-item {
    transition: background-color 0.15s ease;
    position: relative;
}

.group-item:hover {
    background-color: #f5f6f6 !important;
}

.group-item:active {
    background-color: #e9edef !important;
}

.group-item.bg-green-50 {
    background-color: #dcf8c6 !important;
}

.group-item.bg-green-50:hover {
    background-color: #d0f0b8 !important;
}

.group-avatar {
    border-radius: 50%;
}

.group-avatar-img {
    border-radius: 50%;
}

/* WhatsApp Web-style styling */
#groups-list {
    overflow-y: auto;
}

#groups-list::-webkit-scrollbar,
#chat-messages::-webkit-scrollbar {
    width: 6px;
}

#groups-list::-webkit-scrollbar-track,
#chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#groups-list::-webkit-scrollbar-thumb,
#chat-messages::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

#groups-list::-webkit-scrollbar-thumb:hover,
#chat-messages::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.sidebar-item {
    transition: background-color 0.15s ease;
}

.sidebar-item:hover {
    background-color: #f5f6f6 !important;
}

.sidebar-item.bg-green-50 {
    background-color: #dcf8c6 !important;
}

.sidebar-item.bg-green-50:hover {
    background-color: #d0f0b8 !important;
}

.filter-btn.active {
    background-color: #25d366 !important;
    color: white !important;
}

.pool-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.pool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-sent {
    background-color: #d1fae5;
    color: #065f46;
}

.status-failed {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Line clamp utility */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Custom checkbox styling */
.group-checkbox {
    accent-color: #10b981;
    cursor: pointer;
}

.group-checkbox:checked {
    background-color: #10b981;
    border-color: #10b981;
}

/* Quill WYSIWYG Editor Styles */
#message-editor-container {
    position: relative;
}

#message-input-composer .ql-container {
    font-size: 14px;
    font-family: inherit;
    border: none;
    min-height: 40px;
    max-height: 128px;
}

#message-input-composer .ql-editor {
    padding: 8px 12px;
    min-height: 40px;
    max-height: 128px;
    overflow-y: auto;
}

#message-input-composer .ql-editor.ql-blank::before {
    color: #9ca3af;
    font-style: normal;
}

#message-input-composer .ql-toolbar {
    display: none;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    padding: 4px 8px;
    background: #f9fafb;
}

#message-editor-container:focus-within .ql-toolbar {
    display: block;
}

#message-editor-container:focus-within {
    border-color: #10b981;
}

#message-input-composer .ql-toolbar .ql-formats {
    margin-right: 8px;
}

#message-input-composer .ql-toolbar button {
    width: 24px;
    height: 24px;
    padding: 2px;
}

#message-input-composer .ql-toolbar button:hover {
    background: #e5e7eb;
    border-radius: 4px;
}

