/**
 * Admin Conversations CSS
 * Modern Vibrant Design with gradients, animations, and stunning visual effects
 * Matching the visitor journeys page style
 */

/* Global dashicons vertical alignment fix */
.convertybot-conversations .dashicons {
    vertical-align: middle;
}

/* Hide WordPress admin footer when on this page */
.convertybot-conversations ~ #wpfooter,
.toplevel_page_convertybot-chatbot #wpfooter,
body.toplevel_page_convertybot-chatbot #wpfooter,
#wpfooter {
    display: none !important;
}

/* Also hide footer for subpages */
.convertybot_page_convertybot-conversations #wpfooter {
    display: none !important;
}

/* Hide WordPress header line */
.convertybot-conversations .wp-header-end,
.convertybot-conversations hr.wp-header-end {
    display: none !important;
}

/* Main Container */
.convertybot-conversations {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    margin: 20px 20px 20px 0;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    position: relative;
    z-index: 1;
}

/* Header Section */
.conversations-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.conversations-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.header-title-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.title-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6); }
}

.title-icon .dashicons {
    font-size: 36px;
    width: 36px;
    height: 36px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Page Title - White on gradient background */
.convertybot-conversations .wp-heading-inline {
    margin: 0 0 20px 0;
    font-size: 32px;
    font-weight: 800;
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.title-content .dashboard-title {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-content .dashboard-subtitle {
    margin: 8px 0 0;
    font-size: 15px;
    color: #64748b;
    font-weight: 500;
}

.conversations-count {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.25);
    padding: 8px 18px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Page Title Actions - Buttons next to title */
.convertybot-conversations .page-title-action {
    display: inline-flex;
    gap: 12px;
    margin-left: 20px;
    vertical-align: middle;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.header-controls-section {
    display: flex;
    gap: 15px;
}

/* Real-time Status */
.realtime-status {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 10px 18px;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.status-indicator.connecting .dashicons {
    color: #f59e0b;
    animation: spin 1s linear infinite;
}

.status-indicator.connected .dashicons {
    color: #10b981;
}

.status-indicator.disconnected .dashicons {
    color: #ef4444;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Toolbar - Filters Card */
.conversations-toolbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.5);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.search-box {
    display: flex;
    align-items: center;
    min-width: 320px;
    flex: 1;
}

.search-box input[type="search"] {
    flex: 1;
    height: 45px;
    padding: 0 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px 0 0 12px;
    border-right: none;
    font-size: 14px;
    color: #1e293b;
    background: #ffffff;
    transition: all 0.3s ease;
    font-weight: 500;
}

.search-box input[type="search"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.search-box .search-submit {
    height: 45px;
    padding: 0 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 0 12px 12px 0;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.search-box .search-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.search-box .search-submit .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-controls select,
#statusFilter,
#dateFilter,
#sortFilter {
    height: 45px;
    padding: 0 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    color: #1e293b;
    background: #ffffff;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 150px;
    cursor: pointer;
}

.filter-controls select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.custom-date-range {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
}

.custom-date-range input[type="date"] {
    height: 45px;
    padding: 0 12px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    color: #1e293b;
    background: #ffffff;
    transition: all 0.3s ease;
    font-weight: 500;
}

.custom-date-range input[type="date"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

#clearFilters {
    height: 45px;
    padding: 0 24px;
    border-radius: 12px;
    font-weight: 600;
    background: white;
    border: 2px solid #e2e8f0 !important;
    color: #64748b !important;
    transition: all 0.3s ease;
}

#clearFilters:hover {
    border-color: #cbd5e1 !important;
    background: #f8fafc !important;
    transform: translateY(-2px);
}

.bulk-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-left: auto;
}

.bulk-actions select {
    height: 45px;
    padding: 0 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    color: #1e293b;
    background: #ffffff;
    font-weight: 500;
}

.bulk-actions .button {
    height: 45px;
    padding: 0 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.3);
}

.bulk-actions .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

/* Conversations Container */
.conversations-container {
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    min-height: 600px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.conversations-list {
    flex: 1;
    border-right: 2px solid rgba(102, 126, 234, 0.1);
    overflow-y: auto;
    max-height: 700px;
    padding: 15px;
}

.conversation-viewer {
    flex: 2;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.02) 0%, rgba(118, 75, 162, 0.02) 100%);
}

/* Conversation List Items */
.conversation-item {
    display: flex;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    background: #ffffff;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.conversation-item:hover {
    border-color: #667eea;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
    transform: translateY(-3px) scale(1.01);
}

.conversation-item.selected {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-color: #667eea;
    border-left: 4px solid #667eea;
}

.conversation-checkbox {
    flex-shrink: 0;
}

.conversation-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

.conversation-content {
    flex: 1;
    min-width: 0;
}

.conversation-main {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

/* ✅ FIX: Allow user email to wrap and show full text */
.user-email {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    /* Allow wrapping to show full name/email */
    white-space: normal;
    word-break: break-word;
    line-height: 1.3;
}

/* ✅ NEW: Style for user name when displayed separately from email */
.user-name {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    white-space: normal;
    word-break: break-word;
    line-height: 1.3;
}

/* ✅ NEW: Secondary email display (below name) */
.user-email-secondary {
    font-size: 12px;
    color: #6366f1;
    font-weight: 500;
    white-space: normal;
    word-break: break-word;
}

/* ✅ NEW: WordPress User ID display */
.user-wp-id {
    font-size: 11px;
    color: #8b5cf6;
    font-weight: 600;
    background: #f3f0ff;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

.user-ip {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.conversation-preview {
    flex: 1;
    min-width: 0;
}

.last-message {
    font-size: 14px;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
    font-weight: 500;
}

.message-count {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

.conversation-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    font-size: 12px;
    color: #64748b;
}

/* Status Badges - Modern Gradient Style */
.status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.status-badge.status-active,
.status-active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
}

.status-badge.status-ended,
.status-ended {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
}

.status-badge.status-abandoned,
.status-abandoned {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
}

.status-badge.status-issues,
.status-issues {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
}

.status-badge.status-transferred {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #ffffff;
}

.conversation-tags {
    margin-top: 8px;
}

.conversation-tags .tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    color: #667eea;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    margin: 2px;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.conversation-time,
.conversation-duration {
    font-weight: 600;
    color: #64748b;
}

.products-discussed,
.coupons-generated {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 11px;
}

.conversation-actions {
    flex-shrink: 0;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    gap: 8px;
}

.conversation-item:hover .conversation-actions {
    opacity: 1;
}

.conversation-actions .button-link,
.view-conversation {
    padding: 8px 16px !important;
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
    text-decoration: none;
}

.conversation-actions .button-link:hover,
.view-conversation:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.5);
}

.conversation-actions .add-note-quick,
.conversation-actions .add-tag-quick {
    width: 36px;
    height: 36px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white !important;
    border: 2px solid #e2e8f0 !important;
    color: #64748b !important;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.conversation-actions .add-note-quick:hover,
.conversation-actions .add-tag-quick:hover {
    border-color: #667eea !important;
    color: #667eea !important;
    background: rgba(102, 126, 234, 0.1) !important;
}

/* Loading States */
.loading-spinner {
    text-align: center;
    padding: 60px;
    color: #64748b;
}

.loading-spinner .spinner,
.spinner.is-active {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 15px;
}

.no-conversations {
    text-align: center;
    padding: 80px 20px;
}

.no-conversations .dashicons {
    font-size: 60px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.no-conversations p {
    color: #64748b;
    font-size: 16px;
    font-weight: 600;
}

/* Conversation Viewer Header */
.conversation-header {
    background: #ffffff;
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.back-to-list,
#backToList {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white !important;
    border: 2px solid #e2e8f0 !important;
    color: #667eea !important;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.back-to-list:hover,
#backToList:hover {
    background: #f8fafc !important;
    border-color: #667eea !important;
    transform: translateX(-3px);
}

.conversation-meta-header h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.meta-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #64748b;
}

/* ✅ FIX: Allow meta items to wrap for long user names/emails */
.meta-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 500;
    flex-wrap: wrap;
    word-break: break-word;
    max-width: 100%;
}

.meta-item strong {
    color: #475569;
    flex-shrink: 0;
}

/* ✅ NEW: Conversion highlight for when visitor became client */
.meta-item.conversion-highlight {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    padding: 8px 12px;
    border-radius: 8px;
    border-left: 3px solid #10b981;
    margin: 8px 0;
}

.meta-item.conversion-highlight strong {
    color: #059669;
}

.meta-item code {
    font-size: 11px;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    color: #4b5563;
    font-family: monospace;
}

/* Admin Notes Section */
.admin-notes-section {
    background: #ffffff;
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
    padding: 25px 30px;
}

/* Section Header - Modern Glass Card */
.admin-notes-section .section-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 20px !important;
    padding: 18px 22px !important;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%) !important;
    border-radius: 16px !important;
    border: 2px solid rgba(102, 126, 234, 0.15) !important;
}

.admin-notes-section .section-header h4 {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-notes-section .section-actions {
    display: flex !important;
    gap: 12px !important;
}

/* Section Action Buttons - Modern Gradient Style */
.admin-notes-section .section-actions .button,
#addNoteInline,
#addTagInline,
#addNote,
#addTag {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 20px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    border: none !important;
}

#addNoteInline,
#addNote {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

#addNoteInline:hover,
#addNote:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
}

#addTagInline,
#addTag {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
}

#addTagInline:hover,
#addTag:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4) !important;
}

#addNoteInline .dashicons,
#addTagInline .dashicons,
#addNote .dashicons,
#addTag .dashicons {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

.admin-notes-section h4 {
    margin: 0 0 20px 0;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.notes-container {
    margin-bottom: 20px;
}

.admin-note {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.admin-note:hover {
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.1);
}

.admin-note:last-child {
    margin-bottom: 0;
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
}

.note-header strong {
    color: #667eea;
    font-weight: 700;
}

.note-date {
    color: #64748b;
    font-weight: 500;
}

.note-content {
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;
}

.note-tags {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.no-notes {
    color: #64748b;
    font-style: normal;
    margin: 0;
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
    border-radius: 16px;
    border: 2px dashed rgba(102, 126, 234, 0.2);
    font-weight: 500;
}

/* Add Note Form - Modern Card Style */
.add-note-form,
#addNoteForm {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06) 0%, rgba(118, 75, 162, 0.06) 100%) !important;
    border: 2px solid rgba(102, 126, 234, 0.2) !important;
    border-radius: 20px !important;
    padding: 25px !important;
    margin-top: 15px;
}

.add-note-form textarea,
#noteText {
    width: 100% !important;
    min-height: 120px !important;
    margin-bottom: 18px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 15px !important;
    font-family: inherit !important;
    resize: vertical !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    background: #ffffff !important;
}

.add-note-form textarea:focus,
#noteText:focus {
    outline: none !important;
    border-color: #667eea !important;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15) !important;
}

/* Note Form Row */
.note-form-row {
    display: flex !important;
    gap: 12px !important;
    align-items: center !important;
    margin-bottom: 15px !important;
}

#noteTags {
    flex: 1 !important;
    height: 48px !important;
    padding: 0 16px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    background: #ffffff !important;
}

#noteTags:focus {
    outline: none !important;
    border-color: #667eea !important;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15) !important;
}

#notePriority {
    min-width: 160px !important;
    height: 48px !important;
    padding: 0 16px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    background: #ffffff !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

#notePriority:focus {
    outline: none !important;
    border-color: #667eea !important;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15) !important;
}

/* Note Form Buttons */
.note-form-buttons {
    display: flex !important;
    gap: 12px !important;
    justify-content: flex-end !important;
}

#saveNote,
.add-note-form .button-primary,
.add-tag-form .button-primary,
#saveTag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    padding: 12px 28px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

#saveNote:hover,
.add-note-form .button-primary:hover,
.add-tag-form .button-primary:hover,
#saveTag:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
}

#cancelNote,
#cancelTag,
.add-note-form .button:not(.button-primary),
.add-tag-form .button:not(.button-primary) {
    background: #ffffff !important;
    color: #64748b !important;
    border: 2px solid #e2e8f0 !important;
    padding: 10px 24px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

#cancelNote:hover,
#cancelTag:hover,
.add-note-form .button:not(.button-primary):hover,
.add-tag-form .button:not(.button-primary):hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
}

/* Add Tag Form - Modern Card Style */
.add-tag-form,
#addTagForm {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.06) 0%, rgba(5, 150, 105, 0.06) 100%) !important;
    border: 2px solid rgba(16, 185, 129, 0.2) !important;
    border-radius: 20px !important;
    padding: 25px !important;
    margin-top: 15px;
}

.tag-actions {
    display: flex !important;
    gap: 12px !important;
    align-items: center !important;
}

#tagInput {
    flex: 1 !important;
    height: 48px !important;
    padding: 0 16px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    background: #ffffff !important;
}

#tagInput:focus {
    outline: none !important;
    border-color: #10b981 !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15) !important;
}

#saveTag {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
}

#saveTag:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4) !important;
}

.note-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.note-actions input[type="text"] {
    flex: 1;
    height: 48px;
    margin: 0;
    padding: 0 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #ffffff;
}

.note-actions input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

/* Conversation Header Action Buttons */
.conversation-header .conversation-actions .button,
#exportConversation {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 18px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    background: #ffffff !important;
    color: #667eea !important;
    border: 2px solid #e2e8f0 !important;
}

.conversation-header .conversation-actions .button:hover,
#exportConversation:hover {
    border-color: #667eea !important;
    background: rgba(102, 126, 234, 0.05) !important;
    transform: translateY(-2px) !important;
}

.conversation-header .conversation-actions .button .dashicons,
#exportConversation .dashicons {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

/* Conversation Messages */
.conversation-messages {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.messages-container {
    height: 100%;
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 25px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.02) 0%, rgba(118, 75, 162, 0.02) 100%);
}

.messages-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #64748b;
}

/* Message Items */
.message-item {
    display: flex;
    margin-bottom: 25px;
    max-width: 75%;
    gap: 12px;
    animation: fadeIn 0.3s ease;
}

.message-item.user-message {
    margin-left: auto;
    flex-direction: row-reverse;
}

.message-item.user-message .message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 20px 20px 4px 20px;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.message-item.bot-message .message-content {
    background: #ffffff;
    color: #1e293b;
    border-radius: 20px 20px 20px 4px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-content {
    flex: 1;
    padding: 15px 20px;
    word-wrap: break-word;
    position: relative;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12px;
    opacity: 0.9;
}

.message-author {
    font-weight: 700;
}

.message-time {
    font-size: 11px;
    font-weight: 500;
}

.read-receipt {
    color: #10b981;
    font-size: 11px;
    font-weight: 700;
}

.user-message .read-receipt {
    color: rgba(255, 255, 255, 0.9);
}

.message-body {
    line-height: 1.6;
    font-size: 14px;
    font-weight: 500;
}

.message-body a {
    color: inherit;
    text-decoration: underline;
}

.user-message .message-body a {
    color: #cce7ff;
}

/* Message Reactions */
.message-reactions {
    margin-top: 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.reaction {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 15px;
    padding: 4px 10px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
}

.reaction:hover {
    background: rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

.user-message .reaction {
    background: rgba(255, 255, 255, 0.2);
}

.user-message .reaction:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Message Products/Coupons */
.message-products,
.message-coupons {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.user-message .message-products,
.user-message .message-coupons {
    border-top-color: rgba(255, 255, 255, 0.2);
}

.message-products h5,
.message-coupons h5 {
    margin: 0 0 10px 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.8;
}

.product-mention {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 500;
}

.product-mention img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.coupon-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 500;
}

.coupon-item code {
    background: rgba(0, 0, 0, 0.1);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.user-message .coupon-item code {
    background: rgba(255, 255, 255, 0.2);
}

/* Modal Styles */
.convertybot-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #ffffff;
    border-radius: 20px;
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px 30px;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #ffffff;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.export-options,
.export-filters {
    margin-bottom: 30px;
}

.export-options h4,
.export-filters h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.export-format {
    display: block;
    cursor: pointer;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.export-format:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    transform: translateX(5px);
}

.export-format input[type="radio"] {
    margin-right: 12px;
    accent-color: #667eea;
}

.export-format:has(input:checked) {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.format-icon {
    font-size: 20px;
    margin-right: 8px;
}

.export-format small {
    display: block;
    color: #64748b;
    margin-top: 6px;
    margin-left: 32px;
    font-size: 13px;
}

.export-filters label {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
    font-weight: 500;
    color: #475569;
}

.export-filters input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.modal-footer {
    background: #f8fafc;
    border-top: 2px solid #e2e8f0;
    padding: 20px 30px;
    border-radius: 0 0 20px 20px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-footer .button {
    height: 45px;
    padding: 0 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.modal-footer .button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.modal-footer .button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.modal-footer .button-secondary {
    background: white !important;
    border: 2px solid #e2e8f0 !important;
    color: #64748b !important;
}

.modal-footer .button-secondary:hover {
    border-color: #667eea !important;
    color: #667eea !important;
    background: rgba(102, 126, 234, 0.05) !important;
}

/* Tag Suggestions */
.tag-suggestions {
    margin-bottom: 25px;
}

.tag-suggestions small {
    display: block;
    margin-bottom: 10px;
    color: #64748b;
    font-weight: 600;
}

.tag-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-suggestion {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #667eea;
}

.tag-suggestion:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: scale(1.05);
}

/* Current Tags Display */
.current-tags {
    margin-top: 20px;
}

.current-tags small {
    display: block;
    margin-bottom: 10px;
    color: #64748b;
    font-weight: 600;
}

.current-tag {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    margin: 3px;
    font-weight: 700;
}

.no-tags {
    color: #94a3b8;
    font-style: italic;
}

/* Note and Tag Forms in Modal */
.note-form label,
.tag-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #1e293b;
}

.note-form textarea,
.tag-form input[type="text"] {
    width: 100%;
    padding: 14px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.note-form textarea:focus,
.tag-form input[type="text"]:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    outline: none;
}

/* Pagination */
.tablenav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.tablenav.bottom {
    min-height: 70px;
}

.tablenav.bottom .alignleft.actions {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    height: 100%;
}

.tablenav.bottom .pagination-info {
    display: flex;
    align-items: center;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.pagination-info {
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
}

.tablenav-pages {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pagination-link {
    padding: 10px 16px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    color: #667eea;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pagination-link:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-color: #667eea;
    transform: translateY(-2px);
}

.pagination-current {
    padding: 10px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.pagination-dots {
    padding: 10px 8px;
    color: #64748b;
    font-weight: 600;
}

/* Export and Refresh Buttons - Glass morphism style on gradient */
.convertybot-conversations .page-title-action .button,
.convertybot-conversations .page-title-action #exportAllConversations,
.convertybot-conversations .page-title-action #refreshConversations,
#exportAllConversations,
#refreshConversations {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 24px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    text-shadow: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    height: auto !important;
}

#refreshConversations,
.convertybot-conversations .page-title-action #refreshConversations {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #667eea !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(10px) !important;
}

#refreshConversations:hover {
    background: #ffffff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2) !important;
}

#exportAllConversations,
.convertybot-conversations .page-title-action #exportAllConversations {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4) !important;
}

#exportAllConversations:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.5) !important;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
}

#exportAllConversations .dashicons,
#refreshConversations .dashicons {
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Notices */
.notice {
    border-radius: 12px;
    margin: 20px 0;
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.notice-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 15px 20px;
}

.notice-success p {
    color: white !important;
    font-weight: 600;
}

.notice-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 15px 20px;
}

.notice-error p {
    color: white !important;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .conversations-container {
        flex-direction: column;
    }

    .conversations-list {
        border-right: none;
        border-bottom: 2px solid rgba(102, 126, 234, 0.1);
        max-height: 400px;
    }

    .conversation-viewer {
        min-height: 500px;
    }
}

@media (max-width: 782px) {
    .convertybot-conversations {
        padding: 20px;
        margin: 15px 15px 15px 0;
    }

    .conversations-toolbar {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
    }

    .search-box {
        min-width: auto;
        width: 100%;
    }

    .filter-controls,
    .bulk-actions {
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
    }

    .filter-controls select {
        flex: 1;
        min-width: 0;
    }

    .conversation-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .conversation-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .message-item {
        max-width: 90%;
    }

    .conversation-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
    }

    .modal-content {
        margin: 20px;
        width: calc(100% - 40px);
        border-radius: 16px;
    }

    .modal-footer {
        flex-direction: column-reverse;
    }

    .modal-footer .button {
        width: 100%;
        text-align: center;
    }

    .conversations-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .convertybot-conversations .wp-heading-inline {
        font-size: 24px;
    }

    .conversation-item {
        padding: 15px;
    }

    .user-avatar {
        width: 40px;
        height: 40px;
    }

    .user-email {
        max-width: 150px;
    }

    .tablenav {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .tablenav-pages {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Accessibility Improvements */
.conversation-item:focus-within {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

.pagination-link:focus,
.button:focus,
.button-link:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .status-badge {
        border: 2px solid currentColor;
    }

    .conversation-item {
        border-width: 3px;
    }

    .message-content {
        border: 2px solid rgba(0, 0, 0, 0.3);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .admin-color-scheme-dark .convertybot-conversations {
        background: linear-gradient(135deg, #4c5fd5 0%, #5c3d8b 100%);
    }

    .admin-color-scheme-dark .conversations-container,
    .admin-color-scheme-dark .conversations-toolbar,
    .admin-color-scheme-dark .tablenav {
        background: rgba(30, 41, 59, 0.95);
    }

    .admin-color-scheme-dark .conversation-item {
        background: #1e293b;
        border-color: #334155;
    }

    .admin-color-scheme-dark .conversation-item:hover {
        background: #334155;
    }
}
