/* ========================================
   AI Compliance Monitor - Sierra Theme Professional Design
   Clean, Minimal, & Corporate UI
   Version: 5.0.3 - Sierra Edition
   
   SCOPING STRATEGY:
   - All styles are scoped under .ai-dashboard parent class
   - All custom classes use .ai- prefix for namespace isolation
   - Third-party library selectors (.dataTables, .woocommerce) 
     are wrapped with .ai-dashboard scope
   - Global selectors (*, box-sizing) are scoped to .ai-dashboard
   - Prevents conflicts with WordPress core and other plugins
   ======================================== */

/* Import System Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/* ========================================
   GLOBAL RESET & CONTAINER
   ======================================== */

/* Scoped Box Sizing */
.ai-dashboard,
.ai-dashboard * {
    box-sizing: border-box;
}

/* Global Dashboard Container */
.ai-dashboard {
    max-width: 1400px;
    margin: 10px auto;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #fafafa;
    padding: 0 20px 20px 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Standardize All Heading Sizes - h2, h3, h4 */
.ai-dashboard h2,
.ai-dashboard h3,
.ai-dashboard h4 {
    font-size: 18px !important;
    font-weight: 600;
    line-height: 1.4;
}

/* Dashboard Header - Modern Professional Style */
.ai-dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 32px 32px;
    border-radius: 0;
    margin-bottom: 28px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.ai-dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.ai-dashboard-header h1 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.ai-dashboard-header p {
    margin: 0;
    opacity: 0.95;
    font-size: 15px;
    font-weight: 400;
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.9);
}

.ai-dashboard-header a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 1px;
}

.ai-dashboard-header a:hover {
    border-bottom-color: #ffffff;
    opacity: 1;
}

/* Stats Cards - macOS Sierra Style */
/* ============================================
   DASHBOARD STATS - Modern Card Design
   ============================================ */

.ai-dashboard-stats {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    gap: 20px !important;
    margin-bottom: 30px !important;
}

.ai-dashboard .ai-stat-card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 16px !important;
    padding: 24px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 16px !important;
}

.ai-dashboard .ai-stat-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 4px !important;
    height: 100% !important;
    transition: width 0.3s ease !important;
}

.ai-dashboard .ai-stat-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1) !important;
    border-color: transparent !important;
}

.ai-dashboard .ai-stat-card:hover::before {
    width: 100% !important;
    opacity: 0.05 !important;
}

/* Stat Icon */
.ai-dashboard .ai-stat-icon {
    flex-shrink: 0 !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    transition: all 0.3s ease !important;
}

.ai-dashboard .ai-stat-card:hover .ai-stat-icon {
    transform: scale(1.1) !important;
}

/* Stat Content */
.ai-dashboard .ai-stat-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.ai-dashboard .ai-stat-label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #6b7280 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin: 0 !important;
}

.ai-dashboard .ai-stat-number {
    font-size: 36px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    margin: 8px 0 !important;
    letter-spacing: -1px !important;
}

.ai-dashboard .ai-stat-description {
    font-size: 13px !important;
    color: #9ca3af !important;
    font-weight: 400 !important;
    margin: 0 !important;
}

/* Color Variants */
.ai-dashboard .ai-stat-primary::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.ai-dashboard .ai-stat-primary .ai-stat-icon {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%) !important;
    color: #667eea !important;
}

.ai-dashboard .ai-stat-primary .ai-stat-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.ai-dashboard .ai-stat-info::before {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
}

.ai-dashboard .ai-stat-info .ai-stat-icon {
    background: linear-gradient(135deg, #3b82f615 0%, #2563eb15 100%) !important;
    color: #3b82f6 !important;
}

.ai-dashboard .ai-stat-info .ai-stat-number {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.ai-dashboard .ai-stat-success::before {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

.ai-dashboard .ai-stat-success .ai-stat-icon {
    background: linear-gradient(135deg, #10b98115 0%, #05966915 100%) !important;
    color: #10b981 !important;
}

.ai-dashboard .ai-stat-success .ai-stat-number {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.ai-dashboard .ai-stat-warning::before {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

.ai-dashboard .ai-stat-warning .ai-stat-icon {
    background: linear-gradient(135deg, #f59e0b15 0%, #d9770615 100%) !important;
    color: #f59e0b !important;
}

.ai-dashboard .ai-stat-warning .ai-stat-number {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.ai-dashboard .ai-stat-urgent::before {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
}

.ai-dashboard .ai-stat-urgent .ai-stat-icon {
    background: linear-gradient(135deg, #ef444415 0%, #dc262615 100%) !important;
    color: #ef4444 !important;
}

.ai-dashboard .ai-stat-urgent .ai-stat-number {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.ai-dashboard .ai-stat-danger::before {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
}

.ai-dashboard .ai-stat-danger .ai-stat-icon {
    background: linear-gradient(135deg, #ef444415 0%, #dc262615 100%) !important;
    color: #ef4444 !important;
}

.ai-dashboard .ai-stat-danger .ai-stat-number {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ai-dashboard-stats {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
        gap: 12px !important;
    }
    
    .ai-dashboard .ai-stat-card {
        padding: 16px !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .ai-dashboard .ai-stat-icon {
        width: 40px !important;
        height: 40px !important;
    }
    
    .ai-dashboard .ai-stat-number {
        font-size: 28px !important;
    }
}

/* Dashboard Sections - Clean & Spacious */
.ai-dashboard-content {
    display: grid;
    gap: 12px;
}

.ai-dashboard-section {
    background: white;
    border: none;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.06);
}

.ai-dashboard-section h2 {
    margin: 0 0 16px 0;
    font-size: 18px !important;
    font-weight: 700;
    color: #1f2937;
    padding-bottom: 10px;
}

.ai-dashboard-section h3 {
    margin: 12px 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #374151;
}

.ai-dashboard-section h4 {
    margin: 10px 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #4b5563;
}

/* ========================================
   Buttons - Modern & Professional
   ======================================== */

.ai-dashboard .ai-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-family: inherit;
    line-height: 1.4;
    letter-spacing: 0;
    height: 40px;
}

.ai-dashboard .ai-btn:active {
    transform: scale(0.98);
}

.ai-dashboard .ai-btn-primary {
    background: #2563eb;
    color: white;
    border: 1px solid #2563eb;
}

.ai-dashboard .ai-btn-primary:hover {
    background: #1d4ed8;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.ai-dashboard .ai-btn-success {
    background: #059669;
    color: white;
    border: 1px solid #059669;
}

.ai-dashboard .ai-btn-success:hover {
    background: #047857;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

.ai-dashboard .ai-btn-danger {
    background: #ffffff;
    color: #dc2626;
    border: 1px solid #fecaca;
    font-weight: 600;
}

.ai-dashboard .ai-btn-danger:hover {
    background: #fef2f2;
    border-color: #dc2626;
    color: #b91c1c;
}

.ai-dashboard .ai-btn-secondary {
    background: #f3f4f6;
    color: #1a1a1a;
    border: 1px solid #e5e7eb;
}

.ai-dashboard .ai-btn-secondary:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.ai-dashboard .ai-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    height: 32px;
}

.ai-dashboard .ai-btn-lg {
    padding: 12px 24px;
    font-size: 15px;
    height: 48px;
}

/* ========================================
   Forms - Clean & Modern
   ======================================== */

.ai-dashboard .ai-form-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
    margin: 24px 0;
}

.ai-dashboard .ai-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.ai-dashboard .ai-form-group {
    display: flex;
    flex-direction: column;
}

.ai-dashboard .ai-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    display: block;
}

.ai-dashboard .ai-input,
.ai-dashboard select,
.ai-dashboard textarea {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
    background: white;
    color: #1f2937;
}

.ai-dashboard .ai-input:focus,
.ai-dashboard select:focus,
.ai-dashboard textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ai-dashboard textarea {
    min-height: 120px;
    resize: vertical;
}

.ai-dashboard .ai-form-group small {
    font-size: 13px;
    color: #6b7280;
    margin-top: 6px;
}

.ai-dashboard .ai-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.ai-dashboard .ai-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.ai-dashboard .ai-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
}

.ai-dashboard .ai-checkbox-label:hover {
    background: white;
}

.ai-dashboard .ai-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ========================================
   AGENT SEARCH INTERFACE - Modern & Clean
   ======================================== */

.ai-dashboard .ai-agent-search-container {
    margin-bottom: 20px;
}

.ai-dashboard .ai-search-input-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.ai-dashboard .ai-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.ai-dashboard .ai-search-input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    background: #ffffff;
}

.ai-dashboard .ai-search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: #ffffff;
}

.ai-dashboard .ai-search-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.ai-dashboard .ai-search-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}

.ai-dashboard .ai-stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border: 1px solid #667eea30;
    border-radius: 8px;
    font-size: 13px;
    color: #374151;
}

.ai-dashboard .ai-stat-badge svg {
    color: #667eea;
    flex-shrink: 0;
}

.ai-dashboard .ai-stat-badge strong {
    color: #667eea;
    font-weight: 700;
}

.ai-dashboard .ai-search-status {
    font-size: 13px;
    font-style: italic;
    color: #6b7280;
    font-weight: 500;
}

.ai-dashboard .ai-agent-selection-box {
    max-height: 450px;
    overflow-y: auto;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    background: #fafbfc;
}

.ai-dashboard .ai-selection-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.ai-dashboard .ai-selection-controls .ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ai-dashboard .ai-selected-badge {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #10b98115 0%, #05966915 100%);
    border: 1px solid #10b98130;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #059669;
}

.ai-dashboard .ai-selected-badge svg {
    flex-shrink: 0;
    color: #10b981;
}

.ai-dashboard .ai-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ai-dashboard .ai-checkbox-list .ai-checkbox-label {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px !important;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;

}

.ai-dashboard .ai-checkbox-list .ai-checkbox-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom;
}

.ai-dashboard .ai-checkbox-list .ai-checkbox-label:hover {
    border-color: #a5b4fc;
    background: linear-gradient(135deg, #f8f9ff 0%, #faf5ff 100%);
    transform: translateX(6px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.12);
}

.ai-dashboard .ai-checkbox-list .ai-checkbox-label:hover::before {
    transform: scaleY(1);
}

/* Enhanced styles for agent checkbox items */
.ai-dashboard .agent-checkbox-item {
    margin-bottom: 4px;
}

.ai-dashboard .agent-checkbox-item:hover .agent-name {
    color: #667eea;
}

.ai-dashboard .ai-checkbox-list .ai-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ai-dashboard .ai-checkbox-custom {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 2.5px solid #d1d5db;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ai-dashboard .ai-checkbox-label:hover .ai-checkbox-custom {
    border-color: #a5b4fc;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.15);
}

.ai-dashboard .ai-checkbox-label input[type="checkbox"]:checked ~ .ai-checkbox-custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transform: scale(1.05);
}

.ai-dashboard .ai-checkbox-label input[type="checkbox"]:checked ~ .ai-checkbox-custom::after {
    content: '';
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
    margin-top: -2px;
    animation: ai-checkmark-pop 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes ai-checkmark-pop {
    0% {
        transform: rotate(45deg) scale(0);
        opacity: 0;
    }
    50% {
        transform: rotate(45deg) scale(1.2);
    }
    100% {
        transform: rotate(45deg) scale(1);
        opacity: 1;
    }
}

.ai-dashboard .agent-label-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0; /* Allows text truncation */
}

.ai-dashboard .agent-name {
    font-size: 14.5px;
    font-weight: 600;
    color: #111827;
    transition: color 0.2s ease;
    letter-spacing: -0.01em;
}

.ai-dashboard .agent-email {
    font-size: 13px;
    color: #6b7280;
    transition: color 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-dashboard .ai-checkbox-label:hover .agent-email {
    color: #8b5cf6;
}

.ai-dashboard .ai-checkbox-label input[type="checkbox"]:checked ~ .agent-label-content .agent-name {
    color: #667eea;
    font-weight: 700;
}

.ai-dashboard .ai-checkbox-label input[type="checkbox"]:checked ~ .agent-label-content .agent-email {
    color: #7c3aed;
}

.ai-dashboard .ai-help-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    font-size: 13px;
    color: #1e40af;
    margin-top: 12px;
}

.ai-dashboard .ai-help-tip svg {
    flex-shrink: 0;
    color: #3b82f6;
}

/* ========================================
   Alerts - Beautiful Notifications
   ======================================== */

.ai-dashboard .ai-alert {
    padding: 20px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    border-left: 5px solid;
    display: flex;
    align-items: start;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ai-dashboard .ai-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.4) 100%);
    pointer-events: none;
}

.ai-dashboard .ai-alert:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.ai-dashboard .ai-alert h2 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.ai-dashboard .ai-alert p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.ai-dashboard .ai-alert-success {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #10b981;
    color: #065f46;
}

.ai-dashboard .ai-alert-success h2 {
    color: #047857;
}

.ai-dashboard .ai-alert-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #f59e0b;
    color: #92400e;
}

.ai-dashboard .ai-alert-warning h2 {
    color: #b45309;
}

.ai-dashboard .ai-alert-danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #ef4444;
    color: #991b1b;
}

.ai-dashboard .ai-alert-danger h2 {
    color: #dc2626;
}

.ai-dashboard .ai-alert-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #3b82f6;
    color: #1e40af;
}

.ai-dashboard .ai-alert-info h2 {
    color: #1d4ed8;
}

/* ========================================
   AGENT DASHBOARD - Professional Design
   ======================================== */

/* Agent Dashboard Header */
/* Agent Dashboard Header - Clean Professional Style with Light Background */
.ai-dashboard.ai-agent-dashboard .ai-dashboard-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-bottom: 3px solid #3b82f6;
}

.ai-dashboard.ai-agent-dashboard .ai-dashboard-header h1 {
    color: #1e293b;
    font-weight: 700;
}

.ai-dashboard.ai-agent-dashboard .ai-dashboard-header::before {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
}

.ai-dashboard .ai-header-left h1 {
    display: flex;
    align-items: center;
    margin: 0 0 8px 0;
}

.ai-dashboard .ai-header-left h1 svg {
    flex-shrink: 0;
}

.ai-dashboard .ai-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.ai-dashboard .ai-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ai-dashboard .ai-user-profile-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ai-dashboard .ai-user-avatar-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ai-dashboard .ai-user-profile-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ai-dashboard .ai-user-profile-info strong {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
}

.ai-dashboard .ai-user-profile-info small {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
}

.ai-dashboard .ai-btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ai-dashboard .ai-btn-logout:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.ai-dashboard .ai-btn-logout svg {
    flex-shrink: 0;
}

/* Agent Tabs */
.ai-dashboard.ai-agent-dashboard .ai-dashboard-tabs {
    margin-bottom: 32px;
}

.ai-dashboard.ai-agent-dashboard .ai-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ai-dashboard.ai-agent-dashboard .ai-tab-btn svg {
    flex-shrink: 0;
}

/* Agent Stats Section */
.ai-dashboard.ai-agent-dashboard .ai-dashboard-stats {
    margin-bottom: 32px;
}

.ai-dashboard.ai-agent-dashboard .ai-stat-card {
    cursor: default;
}

.ai-dashboard.ai-agent-dashboard .ai-stat-card:hover {
    transform: translateY(-2px);
}

/* Validation Container */
.ai-dashboard .ai-validation-container {
    max-width: 800px;
    margin: 0 auto;
}

.ai-dashboard .ai-validation-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 24px 0;
}

.ai-dashboard .ai-validation-header h2 svg {
    flex-shrink: 0;
    color: #3b82f6;
}

/* Camera Card */
.ai-dashboard .ai-camera-card {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Photo Status Badge */
.ai-dashboard .ai-photo-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    animation: ai-slideInDown 0.4s ease-out;
}

.ai-dashboard .ai-photo-status-badge svg {
    flex-shrink: 0;
}

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

.ai-dashboard .ai-camera-preview-wrapper {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 28px;
    position: relative;
    padding-top: 75%; /* 4:3 aspect ratio */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.ai-dashboard .ai-camera-preview-wrapper video,
.ai-dashboard .ai-camera-preview-wrapper canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from cover to contain to show full video */
    border-radius: 16px;
}

.ai-dashboard .ai-camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.ai-dashboard .ai-camera-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

.ai-dashboard .ai-camera-preview-wrapper video {
    z-index: 2;
    transform: scaleX(-1); /* Mirror the video preview horizontally */
}



/* Upper Body Silhouette Guide Overlay */
.ai-dashboard .ai-camera-guide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; /* Hidden by default, shown via JavaScript */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
    animation: ai-guide-fade-in 0.5s ease-out;
}

@keyframes ai-guide-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.ai-dashboard .ai-body-silhouette {
    width: 60%;
    max-width: 480px;
    height: auto;
    opacity: 0.95;
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.4));
    animation: ai-silhouette-pulse 2s ease-in-out infinite;
}

@keyframes ai-silhouette-pulse {
    0%, 100% {
        opacity: 0.85;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

.ai-dashboard .ai-guide-text {
    margin-top: 20px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.ai-dashboard .ai-camera-placeholder {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.ai-dashboard .ai-camera-placeholder svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.ai-dashboard .ai-camera-placeholder p {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
}

.ai-dashboard .ai-camera-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 28px;
}

.ai-dashboard .ai-camera-controls .ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ai-dashboard .ai-camera-controls .ai-btn svg {
    flex-shrink: 0;
}

/* Consent Box */
.ai-dashboard .ai-consent-box {
    background: linear-gradient(135deg, #eff6ff 0%, #f3f4f6 100%);
    padding: 20px 24px;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
}

.ai-dashboard .ai-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.ai-dashboard .ai-consent-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ai-dashboard .ai-consent-checkbox {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: #ffffff;
    margin-top: 2px;
}

.ai-dashboard .ai-consent-label input[type="checkbox"]:checked ~ .ai-consent-checkbox {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #3b82f6;
}

.ai-dashboard .ai-consent-label input[type="checkbox"]:checked ~ .ai-consent-checkbox::after {
    content: '';
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.ai-dashboard .ai-consent-text {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
}

.ai-dashboard .ai-consent-text svg {
    flex-shrink: 0;
    color: #3b82f6;
    margin-top: 2px;
}

/* Validation Results */
.ai-dashboard .ai-validation-result {
    max-width: 700px;
    margin: 0 auto;
}

.ai-dashboard .ai-validation-result .ai-alert {
    padding: 32px;
    border-radius: 16px;
}

.ai-dashboard .ai-validation-result .ai-alert h2 {
    margin: 0 0 12px 0;
    font-size: 24px;
    font-weight: 700;
}

.ai-dashboard .ai-validation-result .ai-alert p {
    margin: 8px 0;
    font-size: 15px;
    line-height: 1.6;
}

/* Alert Enhancements for Agent Dashboard */
.ai-dashboard .ai-alert {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.ai-dashboard .ai-alert svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.ai-dashboard .ai-alert > div {
    flex: 1;
}

.ai-dashboard .ai-alert strong {
    display: block;
    font-size: 16px;
    margin-bottom: 6px;
}

/* ========================================
   DRESS CODE GUIDE - Interactive Reference
   ======================================== */

.ai-dashboard .ai-dress-code-guide {
    margin-bottom: 32px;
}

.ai-dashboard .ai-guide-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #bae6fd;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #0c4a6e;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ai-dashboard .ai-guide-toggle:hover {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-color: #7dd3fc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

.ai-dashboard .ai-guide-toggle svg:first-child {
    flex-shrink: 0;
    color: #0284c7;
}

.ai-dashboard .ai-guide-toggle span {
    flex: 1;
    text-align: left;
}

.ai-dashboard .ai-guide-arrow {
    flex-shrink: 0;
    color: #0284c7;
    transition: transform 0.3s ease;
}

.ai-dashboard .ai-guide-toggle.active .ai-guide-arrow {
    transform: rotate(180deg);
}

.ai-dashboard .ai-guide-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.ai-dashboard .ai-guide-content.active {
    max-height: 2000px;
}

.ai-dashboard .ai-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
    padding: 24px;
    background: #ffffff;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
}

.ai-dashboard .ai-guide-card {
    background: #fafbfc;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.ai-dashboard .ai-guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.ai-dashboard .ai-guide-required {
    border-color: #d1fae5;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.ai-dashboard .ai-guide-required:hover {
    border-color: #10b981;
}

.ai-dashboard .ai-guide-prohibited {
    border-color: #fecaca;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.ai-dashboard .ai-guide-prohibited:hover {
    border-color: #ef4444;
}

.ai-dashboard .ai-guide-tips {
    border-color: #dbeafe;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.ai-dashboard .ai-guide-tips:hover {
    border-color: #3b82f6;
}

.ai-dashboard .ai-guide-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid;
}

.ai-dashboard .ai-guide-required .ai-guide-card-header {
    border-bottom-color: #10b981;
    color: #059669;
}

.ai-dashboard .ai-guide-prohibited .ai-guide-card-header {
    border-bottom-color: #ef4444;
    color: #dc2626;
}

.ai-dashboard .ai-guide-tips .ai-guide-card-header {
    border-bottom-color: #3b82f6;
    color: #2563eb;
}

.ai-dashboard .ai-guide-card-header svg {
    flex-shrink: 0;
}

.ai-dashboard .ai-guide-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.ai-dashboard .ai-guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-dashboard .ai-guide-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}

.ai-dashboard .ai-guide-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.7;
}

.ai-dashboard .ai-guide-required .ai-guide-list li svg {
    color: #10b981;
}

.ai-dashboard .ai-guide-prohibited .ai-guide-list li svg {
    color: #ef4444;
}

.ai-dashboard .ai-guide-tips .ai-guide-list li svg {
    color: #3b82f6;
}

.ai-dashboard .ai-guide-footer {
    margin-top: 20px;
    padding: 18px 24px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #fbbf24;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ai-dashboard .ai-guide-footer svg {
    flex-shrink: 0;
    color: #d97706;
    margin-top: 2px;
}

.ai-dashboard .ai-guide-footer p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #78350f;
    line-height: 1.6;
}

/* Responsive Design for Dress Code Guide */
@media (max-width: 768px) {
    .ai-dashboard .ai-guide-grid {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 16px;
    }
    
    .ai-dashboard .ai-guide-toggle {
        font-size: 15px;
        padding: 16px 20px;
    }
}

/* ========================================
   Camera & Upload - Modern Interface
   ======================================== */

.ai-dashboard .ai-camera-preview {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    position: relative;
    padding-top: 75%; /* 4:3 aspect ratio */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.ai-dashboard .ai-camera-preview video,
.ai-dashboard .ai-camera-preview canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ai-dashboard .ai-upload-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 24px;
}

.ai-dashboard .ai-consent-section {
    background: linear-gradient(135deg, #eff6ff 0%, #f3f4f6 100%);
    padding: 24px;
    border-radius: 12px;
    margin-top: 24px;
    border-left: 4px solid #3b82f6;
}

.ai-dashboard .ai-consent-section label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    color: #374151;
    line-height: 1.6;
}

.ai-dashboard .ai-consent-section input[type="checkbox"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* ========================================
   Filters - Clean Design
   ======================================== */

.ai-dashboard-filters {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

/* ========================================
   Client Cards - Elevated Design
   ======================================== */

.ai-dashboard .ai-client-card {
    background: white;
    border-radius: 10px;
    padding: 0;
    margin-bottom: 15px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ai-dashboard .ai-client-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.ai-dashboard .ai-client-card:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.12);
    transform: translateY(-2px);
    border-color: #d1d5db;
}

.ai-dashboard .ai-client-card:hover::before {
    opacity: 1;
}

.ai-dashboard .ai-client-card-header {
    padding: 15px 20px;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border-bottom: 1px solid #f3f4f6;
}

.ai-dashboard .ai-client-card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}

.ai-dashboard .ai-client-card-body {
    padding: 15px 20px;
}

.ai-dashboard .ai-client-card-actions {
    padding: 12px 20px;
    background: #f9fafb;
    border-top: 1px solid #f3f4f6;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ========================================
   User Status Styles - Scoped
   ======================================== */
.ai-dashboard .wc-user-status {
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 8px;
    background: #f9f9f9;
    margin: 20px 0;
    display: inline-block;
    min-width: 300px;
}
.ai-dashboard .wc-user-status p {
    margin: 8px 0;
}
.ai-dashboard .wc-user-avatar {
    border-radius: 50%;
    margin-bottom: 10px;
    display: block;
}
.ai-dashboard .wc-user-greeting {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
}
.ai-dashboard .wc-user-links a {
    color: #2271b1;
    text-decoration: none;
}
.ai-dashboard .wc-user-links a:hover {
    text-decoration: underline;
}
.ai-dashboard .wc-user-guest .button {
    background: #2271b1;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
}
.ai-dashboard .wc-user-guest .button:hover {
    background: #135e96;
}

/* ========================================
   LOGIN/AUTH SCREEN - Premium Modern Design
   Override Elementor/Theme containers
   ======================================== */

/* Remove Elementor container constraints */
.elementor-section:has(.ai-dashboard.login-page),
.elementor-container:has(.ai-dashboard.login-page),
.elementor-widget-container:has(.ai-dashboard.login-page) {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Force full-width when inside Elementor or other containers */
.elementor-section .ai-dashboard.login-page,
.elementor-widget-container .ai-dashboard.login-page,
.elementor .ai-dashboard.login-page,
body .ai-dashboard.login-page {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 40px 20px !important;
}

/* Main Auth Container - Centered with Background */
.ai-dashboard .wc-auth-tabs {
    max-width: 480px;
    margin: 60px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

/* Tab Buttons - Modern Pill Style */
.ai-dashboard .wc-auth-tab-buttons {
    display: flex;
    gap: 8px;
    padding: 24px 24px 0 24px;
    background: linear-gradient(to bottom, #fafafa 0%, #ffffff 100%);
}

.ai-dashboard .wc-auth-tab-btn {
    flex: 1;
    padding: 14px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #6b7280;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 10px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ai-dashboard .wc-auth-tab-btn:hover {
    background: #f3f4f6;
    color: #374151;
    transform: translateY(-1px);
}

.ai-dashboard .wc-auth-tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Tab Content Area */
.ai-dashboard .wc-auth-tab-content {
    padding: 32px 32px 40px 32px;
    background: #ffffff;
}

.ai-dashboard .wc-auth-tab-panel {
    display: none;
}

.ai-dashboard .wc-auth-tab-panel.active {
    display: block;
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(15px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}
.ai-dashboard.login-page {
  background: none;
}
/* Login Page Background - Elegant Pattern */
.ai-dashboard.login-page {
    min-height: 100vh;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.ai-dashboard.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Login Branding/Logo Area */
.ai-dashboard .wc-auth-branding {
    text-align: center;
    margin-bottom: 32px;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.ai-dashboard .wc-auth-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #ffffff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.ai-dashboard .wc-auth-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ai-dashboard .wc-auth-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 500;
}

/* ========================================
   FORM FIELDS - Modern Input Design
   ======================================== */

.ai-dashboard .woocommerce-form-login-wrapper,
.ai-dashboard .woocommerce form.login,
.ai-dashboard .woocommerce form.register,
.ai-dashboard .woocommerce form.lost_reset_password {
    margin: 0;
}

/* Form Row Spacing */
.ai-dashboard .woocommerce form .form-row {
    margin-bottom: 20px;
}

/* Labels - Modern Typography */
.ai-dashboard .woocommerce form .form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
    letter-spacing: -0.01em;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ai-dashboard .woocommerce form .form-row label .required {
    color: #ef4444;
    margin-left: 2px;
}

/* Input Fields - Premium Style */
.ai-dashboard .woocommerce form .form-row input.input-text {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    color: #1f2937;
}

.ai-dashboard .woocommerce form .form-row input.input-text::placeholder {
    color: #9ca3af;
}

.ai-dashboard .woocommerce form .form-row input.input-text:hover {
    border-color: #d1d5db;
}

.ai-dashboard .woocommerce form .form-row input.input-text:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: #ffffff;
}

/* Remember Me Checkbox - Modern Style */
.ai-dashboard .woocommerce-form__label-for-checkbox {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin: 16px 0 !important;
    cursor: pointer;
    user-select: none;
}

.ai-dashboard .woocommerce-form__input-checkbox {
    width: 18px !important;
    height: 18px !important;
    border: 2px solid #d1d5db !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    margin: 0 !important;
    accent-color: #667eea;
}

.ai-dashboard .woocommerce-form__label-for-checkbox span {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

/* Buttons - Gradient Premium Style */
.ai-dashboard .woocommerce form .button,
.ai-dashboard .woocommerce button.button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    letter-spacing: 0.01em;
    margin-top: 8px;
}

.ai-dashboard .woocommerce form .button:hover,
.ai-dashboard .woocommerce button.button:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

.ai-dashboard .woocommerce form .button:active,
.ai-dashboard .woocommerce button.button:active {
    transform: translateY(0);
}

/* Lost Password Link */
.ai-dashboard .woocommerce-LostPassword {
    margin-top: 16px;
    text-align: center;
}

.ai-dashboard .woocommerce-LostPassword a {
    color: #667eea;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.ai-dashboard .woocommerce-LostPassword a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Messages - Modern Alert Style */
.ai-dashboard .woocommerce-info {
    background: linear-gradient(to right, #dbeafe 0%, #e0e7ff 100%);
    border-left: 4px solid #3b82f6;
    padding: 16px 20px;
    margin: 0 0 24px 0;
    border-radius: 10px;
    color: #1e40af;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.ai-dashboard .woocommerce-info a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.ai-dashboard .woocommerce-info a:hover {
    text-decoration: underline;
}

.ai-dashboard .woocommerce-error {
    background: linear-gradient(to right, #fee2e2 0%, #fecaca 100%);
    border-left: 4px solid #ef4444;
    padding: 16px 20px;
    margin: 0 0 24px 0;
    border-radius: 10px;
    color: #991b1b;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1);
}

.ai-dashboard .woocommerce-message {
    background: linear-gradient(to right, #d1fae5 0%, #a7f3d0 100%);
    border-left: 4px solid #10b981;
    padding: 16px 20px;
    margin: 0 0 24px 0;
    border-radius: 10px;
    color: #065f46;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

/* Password Field with Eye Icon Support */
.ai-dashboard .woocommerce .password-input {
    position: relative;
}

.ai-dashboard .woocommerce .show-password-input {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.2s;
}

.ai-dashboard .woocommerce .show-password-input:hover {
    color: #667eea;
}

/* Forgot Password Text Below Form */
.ai-dashboard .woocommerce form .lost_password {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.ai-dashboard .woocommerce form .lost_password a {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.ai-dashboard .woocommerce form .lost_password a:hover {
    color: #667eea;
}

/* Login Footer - Copyright/Links */
.ai-dashboard .wc-auth-footer {
    text-align: center;
    margin-top: 32px;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.ai-dashboard .wc-auth-footer-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin: 0 0 12px 0;
}

.ai-dashboard .wc-auth-footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.ai-dashboard .wc-auth-footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border-bottom: 1px solid transparent;
}

.ai-dashboard .wc-auth-footer-links a:hover {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design for Login */
@media (max-width: 768px) {
    .ai-dashboard.login-page {
        padding: 20px 16px;
    }
    
    .ai-dashboard .wc-auth-tabs {
        margin: 40px auto;
        border-radius: 12px;
    }
    
    .ai-dashboard .wc-auth-tab-buttons {
        flex-direction: column;
        gap: 6px;
        padding: 16px 16px 0 16px;
    }
    
    .ai-dashboard .wc-auth-tab-btn {
        width: 100%;
        border-radius: 8px;
    }
    
    .ai-dashboard .wc-auth-tab-content {
        padding: 24px 20px 32px 20px;
    }
    
    .ai-dashboard .wc-auth-logo {
        width: 64px;
        height: 64px;
        font-size: 28px;
        border-radius: 16px;
    }
    
    .ai-dashboard .wc-auth-title {
        font-size: 20px;
    }
    
    .ai-dashboard .wc-auth-subtitle {
        font-size: 13px;
    }
}

/* Small Devices */
@media (max-width: 480px) {
    .ai-dashboard .wc-auth-tabs {
        max-width: 100%;
        margin: 20px 0;
    }
    
    .ai-dashboard .woocommerce form .form-row input.input-text {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* ========================================
   Client Configuration Interface
   ======================================== */

.ai-dashboard .ai-client-configuration {
    max-width: 1200px !important;
    margin: 20px auto !important;
    background: #ffffff !important;
    padding: 24px !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    border: 1px solid #e5e7eb !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Force override Elementor typography globally */
.ai-dashboard .ai-client-configuration *,
.ai-dashboard .ai-client-configuration *::before,
.ai-dashboard .ai-client-configuration *::after {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.ai-dashboard .ai-client-configuration h1,
.ai-dashboard .ai-client-configuration h2,
.ai-dashboard .ai-client-configuration h3,
.ai-dashboard .ai-client-configuration h4,
.ai-dashboard .ai-client-configuration h5,
.ai-dashboard .ai-client-configuration h6 {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

.ai-dashboard .ai-client-configuration p {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.6 !important;
}

.ai-dashboard .ai-config-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 20px !important;
    padding: 14px 20px !important;

    border-radius: 8px !important;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.15) !important;
}

.ai-dashboard .ai-config-header-content h1 {
    margin: 0 !important;
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.3 !important;
    padding: 0 !important;
}

.ai-dashboard .ai-config-header p {
    margin: 4px 0 0 0 !important;
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    padding: 0 !important;
}

.ai-dashboard .ai-config-section {
    background: #fafbfc !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 16px 20px !important;
    margin-bottom: 14px !important;
    transition: all 0.2s ease !important;
}

.ai-dashboard .ai-config-section:hover {
    background: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06) !important;
    border-color: #d1d5db !important;
}

.ai-dashboard .ai-config-section h2 {
    margin: 0 0 4px 0 !important;
    color: #1f2937 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    line-height: 1.4 !important;
    padding: 0 !important;
}

.ai-dashboard .ai-section-desc {
    margin: 0 0 16px 0 !important;
    color: #6b7280 !important;
    font-size: 13px !important;
    padding-left: 24px !important;
    line-height: 1.5 !important;
    font-style: normal !important;
}

.ai-dashboard .ai-config-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
    margin-bottom: 12px !important;
    align-items: start !important;
}

.ai-dashboard .ai-form-group {
    margin-bottom: 0 !important;
}

.ai-dashboard .ai-form-group label {
    display: block !important;
    margin-bottom: 6px !important;
    color: #374151 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    padding: 0 !important;
}

.ai-dashboard .ai-form-group input[type="text"],
.ai-dashboard .ai-form-group select {
    width: 100% !important;
    padding: 9px 12px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    background: #ffffff !important;
    color: #1f2937 !important;
    transition: all 0.2s ease !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.ai-dashboard .ai-form-group input[type="text"]:hover,
.ai-dashboard .ai-form-group select:hover {
    border-color: #9ca3af !important;
}

.ai-dashboard .ai-form-group input[type="text"]:focus,
.ai-dashboard .ai-form-group select:focus {
    outline: none !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

.ai-dashboard .ai-form-group input[type="text"]::placeholder {
    color: #9ca3af !important;
    font-size: 13px !important;
}

.ai-dashboard .ai-checkbox-group {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 8px 0 !important;
}

.ai-dashboard .ai-checkbox-group label:first-child {
    margin-bottom: 0 !important;
    flex: 0 0 auto !important;
    font-size: 13px !important;
    padding: 0 !important;
    min-width: 140px !important;
}


/* Toggle Switch */
.ai-dashboard .ai-switch {
    position: relative !important;
    display: inline-block !important;
    width: 44px !important;
    height: 24px !important;
}

.ai-dashboard .ai-switch input {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

.ai-dashboard .ai-slider {
    position: absolute !important;
    cursor: pointer !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: #e5e7eb !important;
    transition: .3s ease !important;
    border-radius: 24px !important;
}

.ai-dashboard .ai-slider:before {
    position: absolute !important;
    content: "" !important;
    height: 18px !important;
    width: 18px !important;
    left: 3px !important;
    bottom: 3px !important;
    background-color: white !important;
    transition: .3s ease !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15) !important;
}

.ai-dashboard .ai-switch input:checked + .ai-slider {
    background: #2563eb !important;
}

.ai-dashboard .ai-switch input:checked + .ai-slider:before {
    transform: translateX(20px) !important;
}

.ai-dashboard .ai-slider-input {
    width: 100% !important;
    height: 6px !important;
    border-radius: 6px !important;
    background: #e5e7eb !important;
    outline: none !important;
    margin: 8px 0 !important;
}

.ai-dashboard .ai-slider-input::-webkit-slider-thumb {
    appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    background: #2563eb !important;
    cursor: pointer !important;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3) !important;
}

.ai-dashboard .ai-slider-input::-moz-range-thumb {
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    background: #2563eb !important;
    cursor: pointer !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3) !important;
}

.ai-dashboard .ai-help-text {
    font-size: 12px !important;
    color: #6b7280 !important;
    margin-top: 5px !important;
    margin-bottom: 0 !important;
    font-style: italic !important;
    line-height: 1.5 !important;
    padding: 0 !important;
}

.ai-dashboard #confidence-value {
    font-weight: 600 !important;
    color: #2563eb !important;
    font-size: 13px !important;
    padding: 2px 8px !important;
    background: #eff6ff !important;
    border-radius: 4px !important;
    display: inline-block !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

.ai-dashboard .ai-config-actions {
    display: flex !important;
    gap: 12px !important;
    justify-content: flex-end !important;
    padding-top: 20px !important;
    margin-top: 20px !important;
    border-top: 2px solid #e5e7eb !important;
}

.ai-dashboard .ai-config-actions .ai-btn {
    padding: 10px 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

.ai-dashboard .ai-btn-primary {
    background: #2563eb !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.25) !important;
}

.ai-dashboard .ai-btn-primary:hover {
    background: #1d4ed8 !important;
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.35) !important;
    transform: translateY(-1px) !important;
}

.ai-dashboard .ai-btn-primary:active {
    transform: translateY(0) !important;
}

.ai-dashboard .ai-btn-secondary {
    background: #ffffff !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06) !important;
}

.ai-dashboard .ai-btn-secondary:hover {
    background: #f9fafb !important;
    border-color: #9ca3af !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
    transform: translateY(-1px) !important;
}

.ai-dashboard #ai-export-config {
    background: #059669 !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(5, 150, 105, 0.25) !important;
    padding: 10px 18px !important;
    font-size: 13px !important;
}

.ai-dashboard #ai-export-config:hover {
    background: #047857 !important;
    box-shadow: 0 4px 8px rgba(5, 150, 105, 0.35) !important;
    transform: translateY(-1px) !important;
}

.ai-dashboard .ai-config-live-policy {
    background: #eff6ff !important;
    border-left: 3px solid #2563eb !important;
    padding: 16px 18px !important;
    border-radius: 6px !important;
    margin-top: 20px !important;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.08) !important;
}

.ai-dashboard .ai-config-live-policy h3 {
    margin: 0 0 10px 0 !important;
    color: #1f2937 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    line-height: 1.4 !important;
    padding: 0 !important;
}

.ai-dashboard #policy-summary {
    color: #374151 !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Additional Form Enhancements */
.ai-dashboard .ai-config-section:first-of-type {
    border-top: 3px solid #3b82f6 !important;
}

.ai-dashboard .ai-form-group select option {
    padding: 10px !important;
    font-size: 13px !important;
}

/* Focus states for accessibility */
.ai-dashboard .ai-form-group input[type="text"]:focus-visible,
.ai-dashboard .ai-form-group select:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Loading state for form */
.ai-dashboard .ai-config-form-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success indicator */
.ai-dashboard .ai-field-success {
    border-color: #10b981 !important;
    background: #f0fdf4 !important;
}

/* Error indicator */
.ai-dashboard .ai-field-error {
    border-color: #dc2626 !important;
    background: #fef2f2 !important;
}

/* Disabled state */
.ai-dashboard .ai-form-group input[type="text"]:disabled,
.ai-dashboard .ai-form-group select:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

/* Better checkbox styling */
.ai-dashboard input[type="checkbox"] {
    accent-color: #2563eb;
}

/* Enhanced section icons */
.ai-dashboard .ai-config-section h2::before {
    font-size: 16px;
    margin-right: -2px;
}

/* ========================================
   User Hierarchy - Simple Card View
   ======================================== */

.ai-dashboard .ai-user-hierarchy {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
}

/* OLD SUPERVISOR/AGENT CARD STYLES REMOVED - NOW USING .ai-supervisors-section SCOPED STYLES */

/* Summary Stats */
.ai-dashboard .ai-summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
}

.ai-dashboard .ai-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    text-align: center;
}

.ai-dashboard .ai-stat-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.ai-dashboard .ai-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.ai-dashboard .ai-stat-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    margin-top: 4px;
}

/* Responsive Design for Client Configuration */
@media (max-width: 768px) {
    .ai-dashboard .ai-client-configuration {
        padding: 16px;
        margin: 10px;
    }
    
    .ai-dashboard .ai-config-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }
    
    .ai-dashboard .ai-config-header-content h1 {
        font-size: 16px;
    }
    
    .ai-dashboard .ai-config-header p {
        font-size: 11px;
    }
    
    .ai-dashboard .ai-config-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .ai-dashboard .ai-config-section {
        padding: 14px 16px;
    }
    
    .ai-dashboard .ai-config-section h2 {
        font-size: 13px;
    }
    
    .ai-dashboard .ai-section-desc {
        font-size: 11px;
        padding-left: 22px;
    }
    
    .ai-dashboard .ai-form-group label {
        font-size: 11px;
    }
    
    .ai-dashboard .ai-form-group input[type="text"],
    .ai-dashboard .ai-form-group select {
        font-size: 12px;
        padding: 8px 10px;
    }
    
    .ai-dashboard .ai-config-actions {
        flex-direction: column-reverse;
        gap: 10px;
    }
    
    .ai-dashboard .ai-config-actions .ai-btn {
        width: 100%;
        padding: 12px;
        justify-content: center;
        font-size: 11px;
    }
    
    #ai-export-config {
        width: 100%;
        margin-top: 0;
    }
    
    /* User Hierarchy Responsive */
    .ai-dashboard .ai-user-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ai-dashboard .ai-user-details {
        flex-direction: column;
        gap: 8px;
    }
    
    .ai-dashboard .ai-team-members {
        padding-left: 10px;
    }
    
    .ai-dashboard .ai-summary-stats {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Activity Log & Session Monitoring
   ======================================== */

/* ========================================
   Tables - Modern Design
   ======================================== */

.ai-dashboard .ai-activity-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 24px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ai-dashboard .ai-activity-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.ai-dashboard .ai-activity-table th,
.ai-dashboard .ai-activity-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
}

.ai-dashboard .ai-activity-table th {
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ai-dashboard .ai-activity-table td {
    font-size: 14px;
    color: #374151;
}

.ai-dashboard .ai-activity-table tbody tr {
    transition: all 0.2s;
}

.ai-dashboard .ai-activity-table tbody tr:hover {
    background: linear-gradient(to right, #f9fafb 0%, #ffffff 100%);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.08);
}

.ai-dashboard .ai-activity-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.ai-dashboard .ai-activity-table tbody tr:nth-child(even):hover {
    background: linear-gradient(to right, #f9fafb 0%, #ffffff 100%);
}

.ai-dashboard .ai-activity-table tbody tr:last-child td {
    border-bottom: none;
}

/* Activity Table - Enhanced Cells */
.ai-dashboard .ai-activity-date {
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
}

.ai-dashboard .ai-activity-date small {
    display: block;
    font-size: 12px;
    color: #64748b;
    font-weight: 400;
    margin-top: 4px;
}

.ai-dashboard .ai-activity-agent {
    font-weight: 600;
    color: #334155;
}

.ai-dashboard .ai-activity-action {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-dashboard .ai-activity-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 14px;
}

.ai-dashboard .ai-activity-status.status-approved {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
}

.ai-dashboard .ai-activity-status.status-rejected {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

.ai-dashboard .ai-activity-status.status-pending {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.ai-dashboard .ai-activity-status.status-retry {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.ai-dashboard .ai-activity-status.status-login {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.ai-dashboard .ai-activity-status.status-logout {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

.ai-dashboard .ai-activity-description {
    color: #475569;
    line-height: 1.6;
    max-width: 500px;
}

/* No Activity Message */
.ai-dashboard .ai-no-activity {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    margin-top: 24px;
}

/* ========================================
   Timeline - Activity Feed
   ======================================== */

.ai-dashboard #activity-timeline {
    padding: 24px 0;
}

.ai-dashboard .ai-timeline-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-left: 3px solid #667eea;
    margin-left: 12px;
    margin-bottom: 16px;
    background: white;
    border-radius: 0 12px 12px 0;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.ai-dashboard .ai-timeline-item:hover {
    border-left-width: 4px;
    margin-left: 11px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateX(4px);
}

.ai-dashboard .ai-timeline-time {
    font-weight: 600;
    color: #667eea;
    min-width: 110px;
    font-size: 14px;
}

.ai-dashboard .ai-timeline-content {
    flex: 1;
}

.ai-dashboard .ai-timeline-user {
    font-weight: 500;
    margin-bottom: 5px;
}

.ai-dashboard .ai-timeline-action {
    color: #666;
    font-size: 14px;
}

/* ========================================
   Tab Navigation - Modern & Sleek
   ======================================== */

.ai-dashboard-tabs {
    display: flex;
    gap: 8px;
    margin: 0 0 32px 0;
    padding: 8px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    flex-wrap: wrap;
}

.ai-dashboard .ai-tab-btn {
    background: transparent;
    border: none;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
}

.ai-dashboard .ai-tab-btn:hover {
    color: #667eea;
    background: #f3f4f6;
}

.ai-dashboard .ai-tab-btn.active {
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.ai-dashboard .ai-tab-panel {
    display: none;
    animation: slideIn 0.4s ease-out;
}

.ai-dashboard .ai-tab-panel.active {
    display: block;
}

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

/* Subtabs - Clean Nested Navigation */
.ai-dashboard .ai-subtabs {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 12px;
    margin: 0 0 32px 0;
    border: 1px solid #e5e7eb;
}

.ai-dashboard .ai-subtabs .ai-tab-btn {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 20px;
    margin: 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
}

.ai-dashboard .ai-subtabs .ai-tab-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #374151;
}

.ai-dashboard .ai-subtabs .ai-tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.ai-dashboard .ai-subtab-panel {
    display: none;
    animation: fadeInUp 0.3s ease;
    padding: 24px 0;
}

.ai-dashboard .ai-subtab-panel.active {
    display: block;
}

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

/* Team Grid */
.ai-dashboard .ai-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.ai-dashboard .ai-team-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 0;
}

.ai-dashboard .ai-team-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
    border-color: #667eea;
}

/* Avatar Section */
.ai-dashboard .ai-team-card-avatar {
    flex-shrink: 0;
    width: 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
}

.ai-dashboard .ai-avatar-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Content Section */
.ai-dashboard .ai-team-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ai-dashboard .ai-team-card-header {
    padding: 20px 20px 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.ai-dashboard .ai-team-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
}

.ai-dashboard .ai-team-card-body {
    padding: 16px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Info Rows with Icons */
.ai-dashboard .ai-team-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

.ai-dashboard .ai-team-info-row svg {
    flex-shrink: 0;
    color: #9ca3af;
}

.ai-dashboard .ai-team-info-row span {
    color: #374151;
}

.ai-dashboard .ai-team-info-row.ai-photo-link {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.ai-dashboard .ai-link-primary {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ai-dashboard .ai-link-primary:hover {
    color: #764ba2;
    text-decoration: underline;
}

.ai-dashboard .ai-team-card-actions {
    padding: 16px 20px;
    background: #f9fafb;
    display: flex;
    gap: 8px;
    border-top: 1px solid #f3f4f6;
}

.ai-dashboard .ai-team-card-actions button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
}

.ai-dashboard .ai-team-card-actions svg {
    flex-shrink: 0;
}

/* ========================================
   Badges - Modern Pills
   ======================================== */

.ai-dashboard .ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.ai-dashboard .ai-badge-success {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.ai-dashboard .ai-badge-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.ai-dashboard .ai-badge-danger {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.2);
}

.ai-dashboard .ai-badge-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.ai-dashboard .ai-badge-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.2);
}

.ai-dashboard .ai-badge-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

/* Assignment Request Cards */
.ai-dashboard .ai-requests-cards {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.ai-dashboard .ai-request-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.ai-dashboard .ai-request-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.ai-dashboard .ai-request-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-dashboard .ai-request-header h3 {
    margin: 0;
    font-size: 18px;
}

.ai-dashboard .ai-request-body {
    padding: 20px;
}

.ai-dashboard .ai-request-body blockquote {
    background: #f3f4f6;
    border-left: 4px solid #667eea;
    padding: 15px;
    margin: 10px 0;
    border-radius: 4px;
    font-style: italic;
}

.ai-dashboard .ai-request-actions {
    padding: 15px 20px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 10px;
}

.ai-dashboard .ai-requests-table .ai-note {
    background: #fef3c7;
    padding: 10px;
    font-style: italic;
    color: #92400e;
}

/* Add Agent Form */
.ai-dashboard .ai-add-agent-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.ai-dashboard .ai-add-agent-form .ai-form-group {
    margin-bottom: 20px;
}

.ai-dashboard .ai-add-agent-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.ai-dashboard .ai-select {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
}

.ai-dashboard .ai-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ai-dashboard .ai-select option {
    padding: 10px;
}

/* Validation Cards */
.ai-dashboard .ai-validations-list {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.ai-dashboard .ai-validation-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ai-dashboard .ai-validation-header {
    background: #f9f9f9;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

.ai-dashboard .ai-validation-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.ai-dashboard .ai-validation-body {
    padding: 20px;
}

.ai-dashboard .ai-validation-body p {
    margin: 10px 0;
    font-size: 14px;
    color: #666;
}

.ai-dashboard .ai-validation-actions {
    padding: 15px 20px;
    background: #f9f9f9;
    display: flex;
    gap: 10px;
    border-top: 1px solid #e0e0e0;
}

/* Stat Cards Enhancement */
.ai-dashboard .ai-stat-card.ai-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ai-dashboard .ai-stat-card small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    opacity: 0.9;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .ai-dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .ai-dashboard .ai-stat-number {
        font-size: 32px;
    }
    
    .ai-dashboard .ai-upload-controls {
        flex-direction: column;
    }
    
    .ai-dashboard .ai-btn {
        width: 100%;
    }

    .ai-dashboard .ai-config-row {
        grid-template-columns: 1fr;
    }
    
    .ai-dashboard .ai-config-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .ai-dashboard .ai-activity-table {
        font-size: 12px;
    }
    
    .ai-dashboard .ai-activity-table th,
    .ai-dashboard .ai-activity-table td {
        padding: 8px 10px;
    }
    
    .ai-dashboard-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .ai-dashboard .ai-tab-btn {
        white-space: nowrap;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .ai-dashboard .ai-team-grid {
        grid-template-columns: 1fr;
    }
    
    .ai-dashboard .ai-validation-actions,
    .ai-dashboard .ai-team-card-actions {
        flex-direction: column;
    }
}

/* ========================================
   ENHANCED DATA TABLE STYLES
   ======================================== */

.ai-dashboard .ai-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.ai-dashboard .ai-section-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

.ai-dashboard .ai-table-wrapper {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.ai-dashboard .ai-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ai-dashboard .ai-data-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ai-dashboard .ai-data-table thead th {
    padding: 14px 16px;
    text-align: left;
    color: white;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.ai-dashboard .ai-data-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.ai-dashboard .ai-data-table tbody tr:hover {
    background: #f9fafb;
}

.ai-dashboard .ai-data-table tbody tr:last-child {
    border-bottom: none;
}

.ai-dashboard .ai-data-table tbody td {
    padding: 12px 16px;
    color: #374151;
    vertical-align: middle;
}

.ai-dashboard .ai-data-table tbody td:first-child {
    font-weight: 600;
    color: #1f2937;
}

.ai-dashboard .ai-data-table .text-center {
    text-align: center;
}

.ai-dashboard .ai-data-table .ai-table-actions {
    text-align: right;
    white-space: nowrap;
}

.ai-dashboard .ai-data-table .ai-table-actions .ai-btn {
    margin-left: 4px;
}

/* Badge Styles for Tables */
.ai-dashboard .ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.ai-dashboard .ai-badge-success {
    background: #e0e7ff;
    color: #3730a3;
}

.ai-dashboard .ai-badge-secondary {
    background: #e5e7eb;
    color: #6b7280;
}

.ai-dashboard .ai-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.ai-dashboard .ai-badge-danger {
    background: #fce7f3;
    color: #831843;
}

.ai-dashboard .ai-badge-info {
    background: #dbeafe;
    color: #1e40af;
}

/* Tab Navigation Enhancement */
.ai-dashboard-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    padding-bottom: 0;
    border-bottom: 2px solid #e5e7eb;
    overflow-x: auto;
}

.ai-dashboard .ai-tab-btn {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #6b7280;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
    letter-spacing: 0;
}

.ai-dashboard .ai-tab-btn:hover {
    color: #1a1a1a;
    background: #f9fafb;
    border-radius: 6px 6px 0 0;
}

.ai-dashboard .ai-tab-btn.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    background: transparent;
}

.ai-dashboard .ai-tab-panel {
    display: none;
}

.ai-dashboard .ai-tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Stats Grid - Improved Compact Layout */
.ai-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

/* Form Card */
.ai-dashboard .ai-form-card {
    background: white;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ai-dashboard .ai-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.ai-dashboard .ai-form-group {
    margin-bottom: 16px;
}

.ai-dashboard .ai-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
    color: #374151;
}

.ai-dashboard .ai-form-group .ai-input,
.ai-dashboard .ai-form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.ai-dashboard .ai-form-group .ai-input:focus,
.ai-dashboard .ai-form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ai-dashboard .ai-form-group small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
}

/* Alert Styles - Modern Enhanced Design */
.ai-dashboard .ai-alert {
    padding: 18px 22px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 5px solid;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ai-dashboard .ai-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.5) 100%);
    pointer-events: none;
}

.ai-dashboard .ai-alert:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.ai-dashboard .ai-alert p {
    position: relative;
    z-index: 1;
    margin: 0;
    line-height: 1.6;
}

.ai-dashboard .ai-alert-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left-color: #3b82f6;
    color: #1e40af;
}

.ai-dashboard .ai-alert-success {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-left-color: #10b981;
    color: #065f46;
}

.ai-dashboard .ai-alert-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-left-color: #f59e0b;
    color: #92400e;
}

.ai-dashboard .ai-alert-danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-left-color: #ef4444;
    color: #991b1b;
}

/* Responsive Enhancements for DataTable */
@media (max-width: 768px) {
    .ai-dashboard .ai-data-table {
        font-size: 12px;
    }
    
    .ai-dashboard .ai-data-table thead th,
    .ai-dashboard .ai-data-table tbody td {
        padding: 10px 12px;
    }
    
    .ai-dashboard .ai-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .ai-dashboard .ai-section-header .ai-btn {
        width: 100%;
    }
    
    .ai-dashboard .ai-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ========================================
   ENHANCED SUPER ADMIN HEADER - macOS Sierra Style
   ======================================== */
.ai-dashboard .ai-super-header {
    background: #ffffff;
    padding: 16px 28px;
    border-radius: 0;
    margin-bottom: 24px;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: none;
}

.ai-dashboard .ai-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.ai-dashboard .ai-header-title h1 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

.ai-dashboard .ai-header-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0;
}

.ai-dashboard .ai-header-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ai-dashboard .ai-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f9fafb;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.ai-dashboard .ai-user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: white;
    box-shadow: none;
}

.ai-dashboard .ai-user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ai-dashboard .ai-user-details strong {
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
}

.ai-dashboard .ai-user-details small {
    color: #6b7280;
    font-size: 12px;
}

.ai-dashboard .ai-btn-outline {
    background: transparent;
    color: #1a1a1a;
    border: 1px solid #e5e7eb;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.ai-dashboard .ai-btn-outline:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.ai-dashboard .ai-btn-outline-danger {
    background: transparent;
    color: #ef4444;
    border: 1px solid #fecaca;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ai-dashboard .ai-btn-outline-danger:hover {
    background: #fef2f2;
    border-color: #ef4444;
    color: #dc2626;
    transform: translateY(-1px);
}

/* ========================================
   ENHANCED STATS CARDS - Sierra Theme
   ======================================== */
.ai-dashboard .ai-gradient-blue {
    background: #ffffff;
    border-left: 3px solid #2563eb;
    border: 1px solid #e5e7eb;
    border-left: 3px solid #2563eb;
}

.ai-dashboard .ai-gradient-green {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 3px solid #059669;
}

.ai-dashboard .ai-gradient-purple {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 3px solid #7c3aed;
}

.ai-dashboard .ai-gradient-orange {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 3px solid #ea580c;
}

.ai-dashboard .ai-stat-card {
    position: relative;
    overflow: visible;
    border-radius: 8px;
    padding: 20px;
}

.ai-dashboard .ai-stat-icon {
    font-size: 28px;
    margin-bottom: 12px;
    opacity: 0.9;
}

.ai-dashboard .ai-stat-content h3 {
    margin: 0 0 8px 0;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    text-transform: none;
    letter-spacing: 0;
}

.ai-dashboard .ai-stat-content .ai-stat-number {
    font-size: 32px;
    font-weight: 700;
    margin: 8px 0;
    line-height: 1;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.ai-dashboard .ai-stat-content small {
    font-size: 12px;
    color: #6b7280;
    display: block;
    margin-top: 4px;
    font-weight: 400;
}

.ai-dashboard .ai-stat-trend {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.ai-dashboard .ai-stat-trend span {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0;
    padding: 4px 10px;
    border-radius: 6px;
    background: #f3f4f6;
    display: inline-block;
    color: #6b7280;
}

.ai-dashboard .ai-trend-up {
    background: #f3f4f6 !important;
    color: #6b7280 !important;
}

.ai-dashboard .ai-trend-down {
    background: #f3f4f6 !important;
    color: #6b7280 !important;
}

.ai-dashboard .ai-trend-neutral {
    background: #f3f4f6 !important;
    color: #6b7280 !important;
}

/* Hover effects for stat cards */
.ai-dashboard .ai-gradient-blue:hover,
.ai-dashboard .ai-gradient-green:hover,
.ai-dashboard .ai-gradient-purple:hover,
.ai-dashboard .ai-gradient-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ai-dashboard .ai-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .ai-dashboard .ai-header-user {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    
    .ai-dashboard .ai-user-info {
        width: 100%;
    }
    
    .ai-dashboard .ai-btn-outline {
        width: 100%;
        text-align: center;
    }
    
    .ai-dashboard .ai-header-title h1 {
        font-size: 22px;
    }
    
    .ai-dashboard .ai-stat-content .ai-stat-number {
        font-size: 28px;
    }
}

/* ========================================
   AGENT ACTIVITY CARDS
   ======================================== */
.ai-dashboard .ai-activity-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.ai-dashboard .ai-activity-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
}

.ai-dashboard .ai-activity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

.ai-dashboard .ai-activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.ai-dashboard .ai-activity-header small {
    color: #6b7280;
    font-size: 13px;
}

.ai-dashboard .ai-activity-body p {
    margin: 8px 0;
    font-size: 14px;
    color: #1a1a1a;
    line-height: 1.5;
}

.ai-dashboard .ai-activity-body strong {
    font-weight: 600;
    color: #1a1a1a;
}

.ai-dashboard .ai-no-data {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    font-size: 14px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px dashed #d1d5db;
}

.ai-dashboard .ai-error {
    text-align: center;
    padding: 40px 20px;
    color: #dc2626;
    font-size: 14px;
    background: #fef2f2;
    border-radius: 8px;
    border: 1px solid #fecaca;
}

/* Badge styles for activity status */
.ai-dashboard .ai-badge-success {
    background: #d1fae5;
    color: #047857;
    border: 1px solid #6ee7b7;
}

.ai-dashboard .ai-badge-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.ai-dashboard .ai-badge-danger {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}


.ai-dashboard .ai-alert.ai-alert-info {
  background: none;
  color: #6B7280 !important;
  border: none !important;
}

/* ============================================
   AGENT ACTIVITY TIMELINE - Enhanced Styles
   ============================================ */

.ai-dashboard .ai-activities-timeline {
    position: relative;
}

.ai-dashboard .ai-activity-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.ai-dashboard .ai-activity-card {
    position: relative;
    transition: all 0.3s ease;
}

.ai-dashboard .ai-activity-card:hover {
    transform: translateX(5px);
}

/* Loading Spinner */
.ai-dashboard .ai-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Button Styles */
.ai-dashboard .ai-btn-sm {
    display: inline-block;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.ai-dashboard .ai-btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive Design for Activity Cards */
@media (max-width: 768px) {
    .ai-dashboard .ai-activity-card {
        margin-bottom: 12px;
    }
    
    .ai-dashboard .ai-activity-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .ai-dashboard .ai-activity-card > div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .ai-dashboard .ai-activity-card > div[style*="display: grid"] {
        grid-template-columns: 1fr !important;
    }
}

/* Filter Section Styling */
.ai-dashboard .ai-filters {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.ai-dashboard .ai-form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.ai-dashboard .ai-form-group {
    flex: 1;
    min-width: 200px;
}

.ai-dashboard .ai-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.ai-dashboard .ai-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.ai-dashboard .ai-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Status Badge Enhancement */
.ai-dashboard .ai-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Timeline specific enhancements */
.ai-dashboard .ai-activities-timeline .ai-activity-card:last-child {
    margin-bottom: 0;
}

/* Photo link styling */
.ai-dashboard .ai-activity-card a[href*="uploads"] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.ai-dashboard .ai-activity-card a[href*="uploads"]:hover {
    transform: scale(1.05);
}

/* Feedback sections styling enhancement */
.ai-dashboard .ai-activity-card [style*="border-left"] {
    transition: all 0.2s ease;
}

.ai-dashboard .ai-activity-card [style*="border-left"]:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Empty state styling */
.ai-dashboard .ai-alert {
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.ai-dashboard .ai-alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.ai-dashboard .ai-alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.ai-dashboard .ai-alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.ai-dashboard .ai-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.ai-dashboard .ai-alert p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}
/* ========================================
   USER TABLE STYLES (View All Users Tab)
   ======================================== */

/* Table Container */
.ai-dashboard .ai-users-table-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Main Users Table */
.ai-dashboard .ai-users-table {
    width: 100% !important;
    border-collapse: collapse;
    margin-top: 10px;
    table-layout: auto;
}

.ai-dashboard .ai-users-table-container {
    width: 100%;
    overflow-x: auto;
}

/* DataTables Wrapper Full Width - Scoped */
.ai-dashboard .dataTables_wrapper {
    width: 100% !important;
}

.ai-dashboard .dataTables_wrapper .dataTables_length,
.ai-dashboard .dataTables_wrapper .dataTables_filter,
.ai-dashboard .dataTables_wrapper .dataTables_info,
.ai-dashboard .dataTables_wrapper .dataTables_paginate {
    padding: 10px 0;
}

.ai-dashboard .ai-users-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e5e7eb;
}

.ai-dashboard .ai-users-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ai-dashboard .ai-users-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
}


.ai-dashboard .ai-users-table td {
    padding: 16px 18px;
    font-size: 14px;
    color: #1f2937;
    vertical-align: middle;
}

.ai-dashboard .ai-users-table code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: #6b7280;
    font-family: 'Courier New', monospace;
}

/* Expand/Collapse Button */
.ai-dashboard .ai-expand-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 12px;
    color: #6b7280;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.ai-dashboard .ai-expand-btn:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.ai-dashboard .ai-expand-icon {
    display: inline-block;
    transition: transform 0.2s ease;
}

/* Team Count Badge (clickable) */
.ai-dashboard .ai-team-count-badge {
    display: inline-block;
    background: #3b82f6;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.ai-dashboard .ai-team-count-badge:hover {
    background: #2563eb;
    transform: scale(1.05);
}

/* Team Members Expandable Row */
.ai-dashboard .ai-team-row {
    background: #f8f9fa;
}

.ai-dashboard .ai-team-row td {
    padding: 0 !important;
}

 #swal2-title {
  font-size: 26px;
}

/* User Badge Styles */
.ai-dashboard .ai-user-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-left: 8px;
}

.ai-dashboard .ai-badge-supervisor {
    background: #dbeafe;
    color: #1e40af;
}

.ai-dashboard .ai-badge-agent {
    background: #d1fae5;
    color: #065f46;
}

.ai-dashboard .ai-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

/* Button Styles for Tables */
.ai-dashboard .ai-users-table .ai-btn,
.ai-dashboard .ai-agents-table .ai-btn {
    margin-left: 5px;
}

.ai-dashboard .ai-users-table .ai-btn:first-child,
.ai-dashboard .ai-agents-table .ai-btn:first-child {
    margin-left: 0;
}

/* Responsive Table */
@media (max-width: 1024px) {
    .ai-dashboard .ai-users-table,
    .ai-dashboard .ai-agents-table {
        font-size: 13px;
    }

    .ai-dashboard .ai-users-table th,
    .ai-dashboard .ai-users-table td,
    .ai-dashboard .ai-agents-table th,
    .ai-dashboard .ai-agents-table td {
        padding: 10px 12px;
    }
}

@media (max-width: 768px) {
    .ai-dashboard .ai-users-table-container {
        padding: 15px;
        overflow-x: auto;
    }

    .ai-dashboard .ai-users-table,
    .ai-dashboard .ai-agents-table {
        min-width: 600px;
    }
}

/* ========================================
   SUPERVISORS & THEIR TEAMS - PREMIUM DESIGN
   Enhanced Expand Button & Team Display
   ======================================== */

/* Actions Column Container */
.ai-dashboard .ai-table-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

/* View Members Button - Professional Design */
.ai-dashboard .ai-expand-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 10px 10px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3),
                0 2px 4px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-size: 14px;
    font-weight: 600;
    color: white;
    text-transform: none;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
    user-select: none;
}

.ai-dashboard .ai-expand-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.ai-dashboard .ai-expand-btn:hover::before {
    left: 100%;
}

.ai-dashboard .ai-expand-btn:hover {
   
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4),
                0 4px 8px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.ai-dashboard .ai-expand-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* View Members Icon */
.ai-dashboard .ai-expand-icon {
    font-size: 18px;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: inline-block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Expanded State - Keep Consistent Indigo Theme */
.ai-dashboard .ai-supervisor-row.expanded .ai-expand-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35),
                0 2px 4px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.ai-dashboard .ai-supervisor-row.expanded .ai-expand-btn:hover {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.45),
                0 4px 8px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) scale(1.02);
}

.ai-dashboard .ai-supervisor-row.expanded .ai-expand-icon {
    transform: rotate(90deg);
}

/* Empty State for No Team */
.ai-dashboard .ai-no-team-placeholder {
    display: inline-block;
    padding: 8px 16px;
    background: #f3f4f6;
    border-radius: 8px;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 500;
    font-style: italic;
}

.ai-dashboard .expand-cell {
    text-align: center !important;
    padding: 8px !important;
}

/* Team Container Styling - Clean Professional Design */
.ai-dashboard .ai-team-container {
    padding: 24px 32px 28px 32px;
    background: #fafbfc;
    margin: 0;
    position: relative;
    animation: slideDown 0.4s ease-out;
    border-top: 1px solid #e5e7eb;
}

.ai-dashboard .ai-team-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
}

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

.ai-dashboard .ai-team-header {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25),
                0 1px 3px rgba(0, 0, 0, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.3px;
}

.ai-dashboard .ai-team-header::before {
    content: '👥';
    font-size: 20px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
    display: inline-block;
    margin-right: 4px;
}

.ai-dashboard .ai-team-row.child-row {
    background: #ffffff !important;
}

.ai-dashboard .ai-team-row.child-row td {
    border-top: none !important;
    padding: 0 !important;
    box-shadow: inset 0 8px 12px -8px rgba(99, 102, 241, 0.15);
}

.ai-dashboard .ai-agents-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

.ai-dashboard .ai-agents-table thead {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    position: relative;
}

.ai-dashboard .ai-agents-table thead::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
}

.ai-dashboard .ai-agents-table thead th {
    color: white;
    font-weight: 700;
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: none;
}

.ai-dashboard .ai-agents-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
    background: white;
}

.ai-dashboard .ai-agents-table tbody tr:last-child {
    border-bottom: none;
}


.ai-dashboard .ai-agents-table tbody tr:hover::before {
    opacity: 1;
}

.ai-dashboard .ai-agents-table tbody tr:last-child {
    border-bottom: none;
}

.ai-dashboard .ai-agents-table tbody td {
    padding: 16px 18px;
    vertical-align: middle;
}

/* Team Count Badge Styling - Professional Design */
.ai-dashboard .ai-team-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
   
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.3px;
}

.ai-dashboard .ai-team-count-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
}

.ai-dashboard .ai-team-count-badge:hover::before {
    left: 100%;
}

/* Team count badge hover removed for simplicity */

.ai-dashboard .ai-team-count-badge:active {
    transform: translateY(-1px) scale(1.05);
}

/* DataTable Search Box Enhancement - Premium Design */
.ai-dashboard #client-supervisors-datatable_filter label,
.ai-dashboard #client-unassigned-agents-datatable_filter label {
    font-weight: 700;
    color: #1f2937;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-dashboard #client-supervisors-datatable_filter input,
.ai-dashboard #client-unassigned-agents-datatable_filter input {
    border: 2px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 16px;
    transition: all 0.3s ease;
    font-size: 14px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ai-dashboard #client-supervisors-datatable_filter input:hover,
.ai-dashboard #client-unassigned-agents-datatable_filter input:hover {
    border-color: #9ca3af;
}

.ai-dashboard #client-supervisors-datatable_filter input:focus,
.ai-dashboard #client-unassigned-agents-datatable_filter input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), 0 2px 8px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

/* Enhanced supervisor row highlighting - Professional Clean Design */
.ai-dashboard .ai-supervisor-row {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background-color: #ffffff !important;
}

.ai-dashboard .ai-supervisor-row:hover {
    background-color: #fafbfc !important;
}

.ai-dashboard .ai-supervisor-row:hover::before {
    width: 4px;
    opacity: 0.8;
}

.ai-dashboard .ai-supervisor-row.expanded {
    background: #f8fafe !important;
    box-shadow: inset 4px 0 0 #6366f1, inset 0 1px 0 rgba(99, 102, 241, 0.1);
}

.ai-dashboard .ai-supervisor-row.expanded::before {
    width: 0;
    opacity: 0;
}

/* User Icon Styling */
.ai-dashboard .ai-user-icon {
    display: inline-block;
    vertical-align: middle;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Action Buttons Container */
.ai-dashboard .ai-table-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Enhanced Button Styles in Table */
.ai-dashboard .ai-users-table .ai-btn,
.ai-dashboard .ai-agents-table .ai-btn {
    white-space: nowrap;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
}

.ai-dashboard .ai-users-table .ai-btn-sm,
.ai-dashboard .ai-agents-table .ai-btn-sm {
    padding: 6px 12px;
    min-width: auto;
}

/* Responsive adjustments - Premium Mobile Experience */
@media (max-width: 768px) {
    .ai-dashboard .ai-table-actions {
        gap: 6px;
        flex-direction: column;
        align-items: stretch;
    }
    
    .ai-dashboard .ai-expand-btn {
        padding: 6px 12px;
        font-size: 11px;
        gap: 6px;
        width: 100%;
        justify-content: center;
    }
    
    .ai-dashboard .ai-btn-danger {
        width: 100%;
    }

    .ai-dashboard .ai-team-container {
        padding: 16px;
    }
    
    .ai-dashboard .ai-team-container::before {
        height: 3px;
    }
    
    .ai-dashboard .ai-team-header {
        padding: 12px 16px;
        font-size: 14px;
    }

    .ai-dashboard .ai-agents-table thead th,
    .ai-dashboard .ai-agents-table tbody td {
        padding: 12px 14px;
        font-size: 12px;
    }
    
    .ai-dashboard .ai-team-count-badge {
        padding: 6px 12px;
        font-size: 12px;
        gap: 4px;
    }
    
    #client-supervisors-datatable_filter input,
    #client-unassigned-agents-datatable_filter input {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Ultra-responsive for small screens */
@media (max-width: 480px) {
    .ai-dashboard .ai-expand-btn {
        padding: 6px 10px;
        font-size: 10px;
    }
    
    .ai-dashboard .ai-team-container {
        padding: 12px;
    }
    
    .ai-dashboard .ai-team-header {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .ai-dashboard .ai-agents-table thead th,
    .ai-dashboard .ai-agents-table tbody td {
        padding: 10px 12px;
        font-size: 11px;
    }
}

/* ============================================
   SUPERVISORS CARD LAYOUT - Professional Design
   ============================================ */

.ai-dashboard .ai-supervisors-section {
    margin-bottom: 30px;
}

.ai-dashboard .ai-search-box {
    position: relative;
}

.ai-dashboard .ai-search-box input {
    width: 320px;
    padding: 10px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.ai-dashboard .ai-search-box input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.ai-dashboard .ai-supervisors-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Supervisor Card - Reduced Spacing */
.ai-dashboard .ai-supervisors-section .ai-supervisor-card {
    background: linear-gradient(to bottom, #ffffff 0%, #fafbfc 100%);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.ai-dashboard .ai-supervisors-section .ai-supervisor-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #c7d2fe;
    transform: translateY(-2px);
}

/* Supervisor Header - Reduced Spacing */
.ai-dashboard .ai-supervisors-section .ai-supervisor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: white;
    position: relative;
}

.ai-dashboard .ai-supervisors-section .ai-supervisor-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(to right, transparent, #e5e7eb 20%, #e5e7eb 80%, transparent);
}

.ai-dashboard .ai-supervisors-section .ai-supervisor-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.ai-dashboard .ai-supervisors-section .ai-supervisor-avatar {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    position: relative;
}

.ai-dashboard .ai-supervisors-section .ai-supervisor-avatar::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    border-radius: 12px;
    opacity: 0.5;
}

.ai-dashboard .ai-supervisors-section .ai-avatar-icon {
    font-size: 28px;
    position: relative;
    z-index: 1;
}

.ai-dashboard .ai-supervisors-section .ai-supervisor-details h4 {
    margin: 0 0 4px 0;
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.ai-dashboard .ai-supervisors-section .ai-supervisor-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.ai-dashboard .ai-supervisors-section .ai-supervisor-meta span {
    font-size: 13px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    position: relative;
    padding-left: 12px;
}

.ai-dashboard .ai-supervisors-section .ai-supervisor-meta span::before {
    content: '';
    position: absolute;
    left: 0;
    width: 4px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
}

.ai-dashboard .ai-supervisors-section .ai-supervisor-meta span:first-child::before {
    display: none;
}

.ai-dashboard .ai-supervisors-section .ai-supervisor-meta span:first-child {
    padding-left: 0;
}

.ai-dashboard .ai-supervisors-section .ai-supervisor-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ai-dashboard .ai-supervisors-section .ai-team-badge {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    color: #6366f1;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid #c7d2fe;
    box-shadow: 0 1px 3px rgba(99, 102, 241, 0.1);
}

/* Toggle Button - Reduced Spacing */
.ai-dashboard .ai-supervisors-section .ai-team-toggle-wrapper {
    padding: 0 20px 16px;
    background: white;
}

.ai-dashboard .ai-supervisors-section .ai-team-toggle-btn {
    width: 100%;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.ai-dashboard .ai-supervisors-section .ai-team-toggle-btn:hover {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-color: #d1d5db;
    color: #1f2937;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.ai-dashboard .ai-supervisors-section .ai-team-toggle-btn.active {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-color: #c7d2fe;
    color: #6366f1;
    box-shadow: 0 3px 8px rgba(99, 102, 241, 0.15);
}

.ai-dashboard .ai-supervisors-section .ai-toggle-icon {
    font-size: 12px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: bold;
}

.ai-dashboard .ai-supervisors-section .ai-team-toggle-btn.active .ai-toggle-icon {
    transform: rotate(90deg);
}

.ai-dashboard .ai-supervisors-section .ai-toggle-text {
    flex: 1;
    text-align: left;
    letter-spacing: 0.01em;
}

/* Team Members Section - Reduced Spacing */
.ai-dashboard .ai-supervisors-section .ai-team-members {
    background: linear-gradient(to bottom, #fafbfc 0%, #f3f4f6 100%);
    padding: 16px 20px 20px;
    border-radius: 0 0 12px 12px;
    border-top: 1px solid #e5e7eb;
}

.ai-dashboard .ai-supervisors-section .ai-team-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.ai-dashboard .ai-supervisors-section .ai-team-title {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.ai-dashboard .ai-supervisors-section .ai-agents-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Agent Item - Reduced Spacing */
.ai-dashboard .ai-supervisors-section .ai-agent-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.ai-dashboard .ai-supervisors-section .ai-agent-item:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateX(6px);
}

.ai-dashboard .ai-supervisors-section .ai-agent-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.ai-dashboard .ai-supervisors-section .ai-agent-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.25);
    position: relative;
}

.ai-dashboard .ai-supervisors-section .ai-agent-avatar::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.3), transparent);
    border-radius: 10px;
    opacity: 0.6;
}

.ai-dashboard .ai-supervisors-section .ai-agent-icon {
    font-size: 20px;
    position: relative;
    z-index: 1;
}

.ai-dashboard .ai-supervisors-section .ai-agent-details strong {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    display: block;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.ai-dashboard .ai-supervisors-section .ai-agent-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.ai-dashboard .ai-supervisors-section .ai-agent-meta span {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    position: relative;
    padding-left: 10px;
}

.ai-dashboard .ai-supervisors-section .ai-agent-meta span::before {
    content: '';
    position: absolute;
    left: 0;
    width: 3px;
    height: 3px;
    background: #10b981;
    border-radius: 50%;
}

.ai-dashboard .ai-supervisors-section .ai-agent-meta span:first-child::before {
    display: none;
}

.ai-dashboard .ai-supervisors-section .ai-agent-meta span:first-child {
    padding-left: 0;
}

.ai-dashboard .ai-supervisors-section .ai-agent-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* Empty Team State */
.ai-dashboard .ai-supervisors-section .ai-empty-team {
    padding: 16px;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
    font-style: italic;
}

/* User Badges */
.ai-dashboard .ai-supervisors-section .ai-user-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Badge Colors for Table Layout */
.ai-dashboard .ai-badge-supervisor {
    background: #eef2ff;
    color: #4f46e5;
    border: 1px solid #c7d2fe;
    font-weight: 600;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 16px;
    letter-spacing: 0.3px;
}

.ai-dashboard .ai-badge-agent {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    font-weight: 600;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 16px;
    letter-spacing: 0.3px;
}

.ai-dashboard .ai-badge-warning {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fcd34d;
    font-weight: 600;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 16px;
    letter-spacing: 0.3px;
}

/* Legacy card-based badge styles (kept for backward compatibility) */
.ai-dashboard .ai-supervisors-section .ai-badge-supervisor {
    background: #eef2ff;
    color: #4f46e5;
    border: 1px solid #c7d2fe;
}

.ai-dashboard .ai-supervisors-section .ai-badge-agent {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

/* Responsive Design for Cards - Reduced Spacing */
@media (max-width: 768px) {
    .ai-dashboard .ai-supervisors-section .ai-supervisor-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .ai-dashboard .ai-supervisors-section .ai-supervisor-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .ai-dashboard .ai-supervisors-section .ai-agent-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .ai-dashboard .ai-supervisors-section .ai-agent-actions {
        width: 100%;
    }
    
    .ai-dashboard .ai-search-box input {
        width: 100%;
    }
}

/* Hide/Show animations for search */
.ai-dashboard .ai-supervisors-section .ai-supervisor-card.ai-filtered {
    display: none;
}

.ai-dashboard .ai-supervisors-section .ai-supervisor-card.ai-visible {
    animation: fadeInCard 0.3s ease;
}

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

/* Smooth transitions */
.ai-dashboard .ai-supervisors-section .ai-supervisor-card,
.ai-dashboard .ai-supervisors-section .ai-agent-item,
.ai-dashboard .ai-supervisors-section .ai-btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-dashboard .ai-supervisors-section .ai-supervisor-actions .ai-btn:hover,
.ai-dashboard .ai-supervisors-section .ai-agent-actions .ai-btn:hover {
    transform: translateY(-1px);
}

/* Pagination Styles - Reduced Spacing & Properly Scoped */
.ai-dashboard .ai-supervisors-section .ai-pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    margin-top: 12px;
    border-top: 1px solid #e5e7eb;
    gap: 16px;
    flex-wrap: wrap;
}

.ai-dashboard .ai-supervisors-section .ai-pagination-info {
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
}

.ai-dashboard .ai-supervisors-section .ai-pagination-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
    justify-content: center;
}

.ai-dashboard .ai-supervisors-section .ai-pagination-btn,
.ai-dashboard .ai-supervisors-section .ai-pagination-number {
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #e5e7eb;
    background: white;
    color: #374151;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ai-dashboard .ai-supervisors-section .ai-pagination-btn:hover:not(:disabled),
.ai-dashboard .ai-supervisors-section .ai-pagination-number:hover:not(.active) {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ai-dashboard .ai-supervisors-section .ai-pagination-btn:active:not(:disabled),
.ai-dashboard .ai-supervisors-section .ai-pagination-number:active:not(.active) {
    transform: translateY(0);
}

.ai-dashboard .ai-supervisors-section .ai-pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f9fafb;
}

.ai-dashboard .ai-supervisors-section .ai-pagination-number.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    cursor: default;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.ai-dashboard .ai-supervisors-section .ai-pagination-numbers {
    display: flex;
    gap: 4px;
}

.ai-dashboard .ai-supervisors-section .ai-pagination-size-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-dashboard .ai-supervisors-section .ai-pagination-size-wrapper label {
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.ai-dashboard .ai-supervisors-section #pagination-size {
    padding: 6px 28px 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.ai-dashboard .ai-supervisors-section #pagination-size:hover {
    border-color: #d1d5db;
    background-color: #f9fafb;
}

.ai-dashboard .ai-supervisors-section #pagination-size:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Responsive Pagination */
@media (max-width: 768px) {
    .ai-dashboard .ai-supervisors-section .ai-pagination-wrapper {
        flex-direction: column;
        gap: 12px;
        padding: 16px 0;
    }
    
    .ai-dashboard .ai-supervisors-section .ai-pagination-info {
        width: 100%;
        text-align: center;
        order: 1;
    }
    
    .ai-dashboard .ai-supervisors-section .ai-pagination-controls {
        width: 100%;
        order: 3;
        justify-content: center;
    }
    
    .ai-dashboard .ai-supervisors-section .ai-pagination-btn,
    .ai-dashboard .ai-supervisors-section .ai-pagination-number {
        min-width: 30px;
        height: 30px;
        padding: 0 8px;
        font-size: 12px;
    }
    
    .ai-dashboard .ai-supervisors-section .ai-pagination-size-wrapper {
        width: 100%;
        justify-content: center;
        order: 2;
    }
    
    .ai-dashboard .ai-supervisors-section .ai-pagination-numbers {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ========================================
   SUPER ADMIN - Team Assignments Grid
   ======================================== */
.ai-dashboard .ai-assignments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.ai-dashboard .ai-assignment-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
    border: 1px solid #e1e8ff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.ai-dashboard .ai-assignment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
}

.ai-dashboard .ai-assignment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #667eea;
}

.ai-dashboard .ai-assignment-header h4 {
    margin: 0;
    font-size: 18px;
    color: #2d3748;
}

.ai-dashboard .ai-assignment-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
}

.ai-dashboard .ai-stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ai-dashboard .ai-stat-label {
    font-size: 12px;
    color: #718096;
    font-weight: 500;
}

.ai-dashboard .ai-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
}

.ai-dashboard .ai-team-members {
    margin-top: 12px;
}

.ai-dashboard .ai-team-label {
    font-size: 13px;
    color: #4a5568;
    margin-bottom: 8px;
}

.ai-dashboard .ai-member-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ai-dashboard .ai-member-list li {
    padding: 6px 0;
    font-size: 14px;
    color: #2d3748;
    border-bottom: 1px solid #e2e8f0;
}

.ai-dashboard .ai-member-list li:last-child {
    border-bottom: none;
}

.ai-dashboard .ai-member-list li small {
    color: #718096;
}

/* ========================================
   SUPER ADMIN - Live Activity Monitor
   ======================================== */
.ai-dashboard .ai-validations-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.ai-dashboard .ai-validation-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.2s;
}

.ai-dashboard .ai-validation-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.ai-dashboard .ai-validation-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ai-dashboard .ai-validation-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ai-dashboard .ai-validation-info strong {
    font-size: 15px;
    color: #2d3748;
}

.ai-dashboard .ai-validation-info small {
    font-size: 12px;
    color: #718096;
}

.ai-dashboard .ai-validation-status {
    flex-shrink: 0;
}

.ai-dashboard .ai-validation-time {
    flex-shrink: 0;
    min-width: 120px;
    text-align: right;
}

.ai-dashboard .ai-validation-time small {
    font-size: 12px;
    color: #a0aec0;
}

/* ========================================
   SUPER ADMIN - System Analytics
   ======================================== */
.ai-dashboard .ai-analytics-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.ai-dashboard .ai-stat-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    transition: transform 0.2s;
}

.ai-dashboard .ai-stat-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.ai-dashboard .ai-stat-box.ai-stat-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.ai-dashboard .ai-stat-box.ai-stat-warning {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
}

.ai-dashboard .ai-stat-box.ai-stat-danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
}

.ai-dashboard .ai-stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ai-dashboard .ai-stat-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.95;
}

/* ========================================
   NEW ANALYTICS DASHBOARD STYLES
   ======================================== */

/* Analytics Section Header */
.ai-dashboard #analytics-panel .ai-section-header-modern {
    margin-bottom: 24px;
}

/* Quick Stats Grid */
.ai-dashboard #quick-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

/* New Analytics Stat Cards */
.ai-dashboard .ai-stat-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Individual stat card gradients */
.ai-dashboard .ai-stat-card:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ai-dashboard .ai-stat-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.ai-dashboard .ai-stat-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.ai-dashboard .ai-stat-card:nth-child(4) {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.ai-dashboard .ai-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

/* Stat Card Header */
.ai-dashboard .ai-stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #1e293b;
}

.ai-dashboard .ai-stat-card-header span {
    font-size: 14px;
    opacity: 0.9;
    color:#1e293b;
}

.ai-dashboard .ai-stat-card-header svg {
    opacity: 0.7;
}

/* Stat Card Value */
.ai-dashboard .ai-stat-card-value {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
}

/* Stat Card Label */
.ai-dashboard .ai-stat-card-label {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 8px;
    color: #1e293b;
}

/* Analytics Comparison Grid (Today vs Week) */
.ai-dashboard .ai-analytics-comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

/* Analytics Cards */
.ai-dashboard .ai-analytic-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 24px;
    transition: all 0.3s ease;
}

.ai-dashboard .ai-analytic-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12) !important;
}

/* Analytic Card Header */
.ai-dashboard .ai-analytic-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.ai-dashboard .ai-analytic-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.ai-dashboard .ai-analytic-card-badge {
    font-size: 12px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 4px 12px;
    border-radius: 12px;
}

/* Analytics Loading State */
.ai-dashboard .ai-analytics-loading {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
}

.ai-dashboard .ai-analytics-loading div {
    font-size: 14px;
}

/* Additional Insights Grid */
.ai-dashboard .ai-analytics-insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.ai-dashboard .ai-analytics-insights-grid h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.ai-dashboard .ai-analytics-insights-grid .ai-analytics-loading {
    padding: 20px;
    font-size: 13px;
}

/* Alert Boxes */
.ai-dashboard .ai-alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.ai-dashboard .ai-alert-info {
    background: #ebf8ff;
    border: 1px solid #bee3f8;
    color: #2c5282;
}

.ai-dashboard .ai-alert p {
    margin: 0;
    font-size: 14px;
}

/* ========================================
   All System Users by Client - Modern Design
   ======================================== */

/* Section Header with Actions */
.ai-dashboard .ai-section-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.ai-dashboard .ai-section-title-group h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.ai-dashboard .ai-section-description {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.ai-dashboard .ai-section-actions {
    display: flex;
    gap: 10px;
}

.ai-dashboard .ai-btn-outline {
    background: white;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 8px 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-dashboard .ai-btn-outline:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* Empty State */
.ai-dashboard .ai-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    margin: 20px 0;
}

.ai-dashboard .ai-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.ai-dashboard .ai-empty-state h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #1f2937;
}

.ai-dashboard .ai-empty-state p {
    margin: 0 0 20px 0;
    color: #6b7280;
    font-size: 14px;
}

/* Search and Filter Bar */
.ai-dashboard .ai-search-filter-bar {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ai-dashboard .ai-search-input-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.ai-dashboard .ai-search-input-wrapper svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.ai-dashboard .ai-search-input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.ai-dashboard .ai-search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ai-dashboard .ai-filter-select {
    flex: 1;
    min-width: 180px;
    padding: 10px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.ai-dashboard .ai-filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Mini Status Badges */
.ai-dashboard .ai-status-badge-mini {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.ai-dashboard .ai-status-active-mini {
    background: #dcfce7;
    color: #166534;
}

.ai-dashboard .ai-status-inactive-mini {
    background: #fee2e2;
    color: #991b1b;
}

.ai-dashboard .ai-status-dot-mini {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse-mini 2s infinite;
}

@keyframes pulse-mini {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Action Buttons Group */
.ai-dashboard .ai-action-buttons-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ai-dashboard .ai-btn-warning {
    background: #ffffff;
    border: 1px solid #f59e0b;
    color: #d97706;
    font-weight: 600;
}

.ai-dashboard .ai-btn-warning:hover {
    background: #fffbeb;
    border-color: #d97706;
    color: #b45309;
}

.ai-dashboard .ai-btn-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-color: #22c55e;
    color: white;
}

.ai-dashboard .ai-btn-success:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

/* Empty State */
.ai-dashboard .ai-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    margin: 20px 0;
}

.ai-dashboard .ai-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.ai-dashboard .ai-empty-state h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #1f2937;
}

.ai-dashboard .ai-empty-state p {
    margin: 0 0 20px 0;
    color: #6b7280;
    font-size: 14px;
}

/* Clients Grid */
.ai-dashboard .ai-clients-grid {
    display: grid;
    gap: 24px;
    margin-top: 20px;
}

/* Client Card - Enhanced Modern Design */
.ai-dashboard .ai-client-users-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.08),
        0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.ai-dashboard .ai-client-users-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ai-dashboard .ai-client-users-card:hover {
    box-shadow: 
        0 10px 25px -5px rgba(102, 126, 234, 0.25),
        0 8px 10px -6px rgba(118, 75, 162, 0.15),
        0 0 0 1px rgba(102, 126, 234, 0.1);
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(102, 126, 234, 0.3);
}

.ai-dashboard .ai-client-users-card:hover::before {
    opacity: 1;
}

/* Client Header - Simple & Clean */
.ai-dashboard .ai-client-header {
    background: #ffffff;
    border-bottom: 2px solid #e5e7eb;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.ai-dashboard .ai-client-info-section {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.ai-dashboard .ai-client-icon {
    font-size: 42px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.ai-dashboard .ai-client-users-card:hover .ai-client-icon {
    transform: scale(1.08);
}

.ai-dashboard .ai-client-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ai-dashboard .ai-client-name {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    letter-spacing: -0.3px;
}

.ai-dashboard .ai-client-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.ai-dashboard .ai-client-id {
    color: #9ca3af;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 12px;
}

.ai-dashboard .ai-meta-separator {
    color: #d1d5db;
}

.ai-dashboard .ai-company-name {
    color: #6b7280;
}

.ai-dashboard .ai-client-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Status Badge - Clean Design */
.ai-dashboard .ai-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #6b7280;
}

.ai-dashboard .ai-status-active {
    background: #ecfdf5;
    border-color: #86efac;
    color: #059669;
}

.ai-dashboard .ai-status-inactive {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #9ca3af;
}

.ai-dashboard .ai-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.ai-dashboard .ai-status-active .ai-status-dot {
    background: #22c55e;
    animation: pulse-dot 2s ease-in-out infinite;
}

.ai-dashboard .ai-status-inactive .ai-status-dot {
    background: #9ca3af;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Stats Row - Enhanced */
.ai-dashboard .ai-client-stats-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
}

.ai-dashboard .ai-stat-mini {
    background: linear-gradient(to bottom, #ffffff, #fafafa);
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.ai-dashboard .ai-stat-mini:hover {
    background: linear-gradient(to bottom, #ffffff, #f9fafb);
    transform: translateY(-2px);
}

.ai-dashboard .ai-stat-mini-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ai-dashboard .ai-stat-mini:hover .ai-stat-mini-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ai-dashboard .ai-stat-mini-content {
    flex: 1;
}

.ai-dashboard .ai-stat-mini-value {
    font-size: 28px;
    font-weight: 800;
    color: #1f2937;
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.ai-dashboard .ai-stat-mini-label {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
}

/* Action Buttons */
.ai-dashboard .ai-client-actions {
    display: flex;
    gap: 12px;
    padding: 20px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.ai-dashboard .ai-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: white;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.ai-dashboard .ai-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ai-dashboard .ai-action-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

.ai-dashboard .ai-action-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #63398b 100%);
}

.ai-dashboard .ai-action-secondary {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-color: #22c55e;
    color: white;
}

.ai-dashboard .ai-action-secondary:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.ai-dashboard .ai-action-success {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #3b82f6;
    color: white;
}

.ai-dashboard .ai-action-success:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

/* Section Content */
.ai-dashboard .ai-client-section-content {
    padding: 24px;
    background: #fafafa;
    border-top: 1px solid #e5e7eb;
}

.ai-dashboard .ai-section-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ai-dashboard .ai-section-header-inline h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-dashboard .ai-count-badge {
    background: #e5e7eb;
    color: #374151;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* User Table Enhancements */
.ai-dashboard .ai-user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-dashboard .ai-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.ai-dashboard .ai-email-link {
    color: #3b82f6;
    text-decoration: none;
}

.ai-dashboard .ai-email-link:hover {
    text-decoration: underline;
}

.ai-dashboard .ai-username-code {
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #1f2937;
    font-family: 'Monaco', 'Courier New', monospace;
}

/* Badge Styles */
.ai-dashboard .ai-badge-primary {
    background: #dbeafe;
    color: #1e40af;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ai-dashboard .ai-badge-success {
    background: #dcfce7;
    color: #166534;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Alert with Icon */
.ai-dashboard .ai-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
}

.ai-dashboard .ai-alert svg {
    flex-shrink: 0;
}

/* Tablet Responsive - 2 columns for stats */
@media (max-width: 1200px) {
    .ai-dashboard .ai-client-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive Design for All System Users */
@media (max-width: 768px) {
    .ai-dashboard .ai-section-header-modern {
        flex-direction: column;
        gap: 16px;
    }
    
    .ai-dashboard .ai-section-actions {
        width: 100%;
    }
    
    .ai-dashboard .ai-section-actions button {
        flex: 1;
    }
    
    .ai-dashboard .ai-client-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }
    
    .ai-dashboard .ai-client-info-section {
        width: 100%;
    }
    
    .ai-dashboard .ai-client-header-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .ai-dashboard .ai-client-stats-row {
        grid-template-columns: 1fr;
    }
    
    .ai-dashboard .ai-client-actions {
        flex-direction: column;
    }
    
    .ai-dashboard .ai-action-btn {
        width: 100%;
    }
    
    .ai-dashboard .ai-section-header-inline {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Responsive Design for Super Admin Sections */
@media (max-width: 768px) {
    .ai-dashboard .ai-assignments-grid {
        grid-template-columns: 1fr;
    }
    
    .ai-dashboard .ai-validation-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .ai-dashboard .ai-validation-time {
        text-align: left;
        min-width: auto;
    }
    
    .ai-dashboard .ai-analytics-stats {
        grid-template-columns: 1fr;
    }
    
    /* Analytics stat cards responsive */
    .ai-dashboard .ai-stat-card {
        min-width: 100% !important;
    }
    
    .ai-dashboard #quick-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .ai-dashboard .ai-analytics-comparison-grid {
        grid-template-columns: 1fr !important;
    }
    
    .ai-dashboard .ai-analytics-insights-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Extra small devices (phones, less than 576px) */
@media (max-width: 576px) {
    .ai-dashboard #quick-stats-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ========================================
   PAGINATION STYLES
   ======================================== */

.ai-dashboard .ai-pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding: 20px 24px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ai-dashboard .ai-pagination-info {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.ai-dashboard .ai-pagination-info span {
    font-weight: 700;
    color: #1f2937;
}

.ai-dashboard .ai-pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-dashboard .ai-pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.ai-dashboard .ai-pagination-btn:hover:not(:disabled) {
    background: #667eea;
    border-color: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.ai-dashboard .ai-pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f9fafb;
}

.ai-dashboard .ai-pagination-numbers {
    display: flex;
    gap: 6px;
}

.ai-dashboard .ai-pagination-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.ai-dashboard .ai-pagination-number:hover {
    background: #f3f4f6;
    border-color: #667eea;
    color: #667eea;
}

.ai-dashboard .ai-pagination-number.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ========================================
   USER ACTIVITY STYLES
   ======================================== */

.ai-dashboard .ai-activity-filters {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ai-dashboard .ai-activity-table-wrapper {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.ai-dashboard #user-activity-table {
    width: 100%;
    border-collapse: collapse;
}

.ai-dashboard #user-activity-table thead {
    background: linear-gradient(to bottom, #f9fafb, #f3f4f6);
    border-bottom: 2px solid #e5e7eb;
}

.ai-dashboard #user-activity-table th {
    padding: 16px 12px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ai-dashboard #user-activity-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: #1f2937;
}

.ai-dashboard #user-activity-table tbody tr {
    transition: all 0.2s ease;
}

.ai-dashboard #user-activity-table tbody tr:hover {
    background: #f9fafb;
}

.ai-dashboard .ai-activity-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.ai-dashboard .ai-summary-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.ai-dashboard .ai-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ai-dashboard .ai-summary-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.ai-dashboard .ai-summary-content {
    flex: 1;
}

.ai-dashboard .ai-summary-value {
    font-size: 28px;
    font-weight: 800;
    color: #1f2937;
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.ai-dashboard .ai-summary-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Responsive Pagination */
@media (max-width: 768px) {
    .ai-dashboard .ai-pagination-wrapper {
        flex-direction: column;
        gap: 16px;
    }
    
    .ai-dashboard .ai-pagination-info {
        text-align: center;
    }
    
    .ai-dashboard .ai-pagination-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .ai-dashboard .ai-activity-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ai-dashboard .ai-activity-summary {
        grid-template-columns: 1fr;
    }
    
    .ai-dashboard .ai-pagination-btn {
        font-size: 13px;
        padding: 8px 14px;
    }
    
    
    .ai-dashboard .ai-pagination-number {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

/* ========================================
   VALIDATIONS GRID & CARDS
   ======================================== */

/* ========================================
   TEAM VALIDATION MANAGEMENT - Premium Professional Design
   ======================================== */

.ai-dashboard .ai-validation-filters {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.ai-dashboard .ai-validation-filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.ai-dashboard .ai-filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f3f4f6;
}

.ai-dashboard .ai-filters-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.ai-dashboard .ai-filters-header svg {
    color: #667eea;
    flex-shrink: 0;
}

.ai-dashboard .ai-filters-reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-dashboard .ai-filters-reset:hover {
    background: #e5e7eb;
    color: #374151;
    border-color: #d1d5db;
}

.ai-dashboard .ai-filters-reset svg {
    color: #9ca3af;
}

.ai-dashboard .ai-filters-body {
    display: grid;
    gap: 20px;
}

/* Search Bar - Modern Glass Effect */
.ai-dashboard .ai-validation-search-wrapper {
    position: relative;
    margin-bottom: 24px;
}

.ai-dashboard .ai-validation-search-wrapper::before {
    content: '🔍';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    z-index: 1;
    pointer-events: none;
}

.ai-dashboard .ai-validation-search,
.ai-dashboard .ai-validation-search-input {
    width: 100%;
    padding: 18px 24px 18px 56px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 500;
    background: #ffffff;
    color: #1e293b;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.ai-dashboard .ai-validation-search:focus,
.ai-dashboard .ai-validation-search-input:focus {
    outline: none;
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1), 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.ai-dashboard .ai-validation-search::placeholder,
.ai-dashboard .ai-validation-search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* Status Filter Tabs - Premium Design */
.ai-dashboard .ai-status-filter-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.ai-dashboard .ai-status-tab {
    padding: 18px 24px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ai-dashboard .ai-status-tab::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ai-dashboard .ai-status-tab:hover {
    border-color: #cbd5e1;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.ai-dashboard .ai-status-tab:hover::before {
    opacity: 1;
}

.ai-dashboard .ai-status-tab .ai-tab-icon {
    font-size: 28px;
    filter: grayscale(60%);
    transition: all 0.3s ease;
}

.ai-dashboard .ai-status-tab .ai-tab-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.ai-dashboard .ai-status-tab .ai-tab-count,
.ai-dashboard .ai-status-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 28px;
    padding: 0 12px;
    background: #f1f5f9;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    color: #64748b;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Active Tab States */
.ai-dashboard .ai-status-tab.active {
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.ai-dashboard .ai-status-tab.active .ai-tab-icon {
    filter: grayscale(0%) brightness(1.2);
    transform: scale(1.1);
}

.ai-dashboard .ai-status-tab.active .ai-tab-count,
.ai-dashboard .ai-status-tab.active .ai-status-tab-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* All Tab - Purple Gradient */
.ai-dashboard .ai-status-tab[data-status="all"].active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.35);
}

/* Pending Tab - Orange Gradient */
.ai-dashboard .ai-status-tab[data-status="pending"].active {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.35);
}

/* Approved Tab - Green Gradient */
.ai-dashboard .ai-status-tab[data-status="approved"].active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.35);
}

/* Rejected Tab - Red Gradient */
.ai-dashboard .ai-status-tab[data-status="rejected"].active {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 12px 32px rgba(239, 68, 68, 0.35);
}

/* Enhanced Badge Styling */
.ai-dashboard .ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.ai-dashboard .ai-badge-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
}

.ai-dashboard .ai-badge-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.3);
}

.ai-dashboard .ai-badge-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.3);
}

.ai-dashboard .ai-badge-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.3);
}

.ai-dashboard .ai-badge-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(107, 114, 128, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .ai-dashboard .ai-validations-list {
        grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .ai-dashboard .ai-validation-filters {
        padding: 24px 20px;
    }
    
    .ai-dashboard .ai-status-filter-tabs {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .ai-dashboard .ai-status-tab {
        padding: 16px 18px;
    }
    
    .ai-dashboard .ai-status-tab .ai-tab-icon {
        font-size: 24px;
    }
    
    .ai-dashboard .ai-status-tab .ai-tab-label {
        font-size: 12px;
    }
    
    .ai-dashboard .ai-validations-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ai-dashboard .ai-validation-header,
    .ai-dashboard .ai-validation-body,
    .ai-dashboard .ai-validation-actions {
        padding: 20px;
    }
    
    .ai-dashboard .ai-validation-actions {
        flex-direction: column;
    }
    
    .ai-dashboard .ai-validation-actions .ai-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .ai-dashboard .ai-status-filter-tabs {
        grid-template-columns: 1fr;
    }
    
    .ai-dashboard .ai-validation-header h3 {
        font-size: 16px;
    }
    
    .ai-dashboard .ai-validation-body p strong {
        min-width: 120px;
        font-size: 13px;
    }
}

/* ========================================
   LOADING & EMPTY STATES - Professional Messages
   ======================================== */

.ai-dashboard #ai-pending-validations > p {
    text-align: center;
    padding: 60px 32px;
    margin: 40px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 2px dashed #cbd5e1;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    line-height: 1.8;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.ai-dashboard #ai-pending-validations > p::before {
    content: '';
    display: block;
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    opacity: 0.1;
}

/* Loading Animation */
@keyframes validationPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.ai-dashboard #ai-pending-validations > p:contains('Loading') {
    animation: validationPulse 2s ease-in-out infinite;
}

/* Section Title Enhancement */
.ai-dashboard .ai-dashboard-section h2 {
    font-size: 28px;
    font-weight: 900;
    color: #1e293b;
    margin: 0 0 28px 0;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 3px solid #e2e8f0;
}

.ai-dashboard .ai-dashboard-section h2::before {
    content: '';
    width: 6px;
    height: 42px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
@media (max-width: 768px) {
    .ai-dashboard .ai-validation-filters {
        padding: 20px;
    }
    
    .ai-dashboard .ai-filters-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .ai-dashboard .ai-status-filter-tabs {
        flex-direction: column;
    }
    
    .ai-dashboard .ai-status-tab {
        width: 100%;
        min-width: auto;
    }
    
    .ai-dashboard .ai-filters-results {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .ai-dashboard .ai-results-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .ai-dashboard .ai-results-actions .ai-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   VALIDATION CARDS - Premium Professional Design
   ======================================== */

.ai-dashboard .ai-validations-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 28px;
    margin-top: 32px;
    margin-bottom: 32px;
}

.ai-dashboard .ai-validation-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.ai-dashboard .ai-validation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #f59e0b 0%, #f97316 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ai-dashboard .ai-validation-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
    border-color: #cbd5e1;
}

.ai-dashboard .ai-validation-card:hover::before {
    opacity: 1;
}

/* Status-specific border colors on hover */
.ai-dashboard .ai-validation-card[data-status="approved"]::before {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.ai-dashboard .ai-validation-card[data-status="rejected"]::before {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

.ai-dashboard .ai-validation-card[data-status="pending"]::before {
    background: linear-gradient(90deg, #f59e0b 0%, #f97316 100%);
}

/* Card Header */
.ai-dashboard .ai-validation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 2px solid #f1f5f9;
    gap: 16px;
}

.ai-dashboard .ai-validation-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.ai-dashboard .ai-validation-header h3::before {
    content: '👤';
    font-size: 22px;
}

/* Card Body */
.ai-dashboard .ai-validation-body {
    padding: 24px 28px;
    flex: 1;
    background: #ffffff;
}

.ai-dashboard .ai-validation-body p {
    margin: 0 0 14px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.ai-dashboard .ai-validation-body p:last-child {
    margin-bottom: 0;
}

.ai-dashboard .ai-validation-body p strong {
    font-weight: 700;
    color: #334155;
    min-width: 140px;
    flex-shrink: 0;
}

.ai-dashboard .ai-validation-body p strong::after {
    content: ':';
    margin-left: 2px;
}

/* Feedback sections with special styling */
.ai-dashboard .ai-validation-body p:has(strong:contains('Feedback')),
.ai-dashboard .ai-validation-body p:has(strong:contains('AI Feedback')),
.ai-dashboard .ai-validation-body p:has(strong:contains('Supervisor Feedback')) {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 14px 16px;
    border-radius: 12px;
    border-left: 4px solid #f59e0b;
    margin: 16px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.ai-dashboard .ai-validation-body p:has(strong:contains('Feedback')) strong {
    min-width: auto;
    color: #92400e;
}

/* Photo Link Styling */
.ai-dashboard .ai-validation-body .ai-btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.ai-dashboard .ai-validation-body .ai-btn-sm::before {
    content: '📷';
    font-size: 16px;
}

.ai-dashboard .ai-validation-body .ai-btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* Action Buttons */
.ai-dashboard .ai-validation-actions {
    display: flex;
    gap: 12px;
    padding: 20px 28px 24px;
    background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
    border-top: 2px solid #f1f5f9;
}

.ai-dashboard .ai-validation-actions .ai-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.ai-dashboard .ai-validation-actions .ai-btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.ai-dashboard .ai-validation-actions .ai-btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.ai-dashboard .ai-validation-actions .ai-btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.ai-dashboard .ai-validation-actions .ai-btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.ai-dashboard .ai-validation-actions .ai-btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.ai-dashboard .ai-validation-actions .ai-btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.ai-dashboard .ai-validation-actions .ai-btn:active {
    transform: translateY(-1px);
}

.ai-dashboard .ai-badge-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: fadeInDown 0.5s ease-out;
}

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

.ai-dashboard .ai-status-pending {
    background: rgba(245, 158, 11, 0.98);
    color: #78350f;
    box-shadow: 0 8px 16px rgba(245, 158, 11, 0.4);
}

.ai-dashboard .ai-status-approved {
    background: rgba(34, 197, 94, 0.98);
    color: #14532d;
    box-shadow: 0 8px 16px rgba(34, 197, 94, 0.4);
}

.ai-dashboard .ai-status-rejected {
    background: rgba(239, 68, 68, 0.98);
    color: #7f1d1d;
    box-shadow: 0 8px 16px rgba(239, 68, 68, 0.4);
}

.ai-dashboard .ai-validation-details {
    padding: 24px;
    background: linear-gradient(to bottom, #ffffff 0%, #fafbfc 100%);
}

.ai-dashboard .ai-validation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f3f4f6;
}

.ai-dashboard .ai-validation-agent {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.ai-dashboard .ai-agent-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 3px solid white;
}

.ai-dashboard .ai-agent-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ai-dashboard .ai-agent-info strong {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}

.ai-dashboard .ai-agent-info span {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.ai-dashboard .ai-validation-time {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

.ai-dashboard .ai-validation-time strong {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.ai-dashboard .ai-validation-time small {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

.ai-dashboard .ai-validation-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.ai-dashboard .ai-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #f8f9fa 0%, #f3f4f6 100%);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    transition: all 0.2s ease;
}

.ai-dashboard .ai-meta-item:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #bfdbfe;
    transform: translateY(-1px);
}

.ai-dashboard .ai-meta-item svg {
    color: #667eea;
    flex-shrink: 0;
}

.ai-dashboard .ai-validation-feedback {
    padding: 16px 18px;
    background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
    border-left: 4px solid #3b82f6;
    border-radius: 10px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

.ai-dashboard .ai-validation-feedback strong {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #1e40af;
    font-size: 14px;
    font-weight: 700;
}

.ai-dashboard .ai-validation-feedback p {
    margin: 0;
    font-size: 14px;
    color: #1f2937;
    line-height: 1.6;
    font-weight: 500;
}

.ai-dashboard .ai-validation-approver {
    padding: 14px 16px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    margin-bottom: 16px;
}

.ai-dashboard .ai-validation-approver small {
    color: #166534;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-dashboard .ai-validation-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f3f4f6;
}

.ai-dashboard .ai-validation-actions .ai-btn {
    flex: 1;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 20px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.ai-dashboard .ai-validation-actions .ai-btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.ai-dashboard .ai-validation-actions .ai-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.ai-dashboard .ai-validation-actions .ai-btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.ai-dashboard .ai-validation-actions .ai-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.ai-dashboard .ai-validation-actions .ai-btn svg {
    margin-right: 4px;
}

/* Image Modal */
/* Image Modal - Scoped to AI Dashboard */
.ai-dashboard .validation-image-modal,
.ai-validation-image-modal {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Empty State for Validations */
.ai-dashboard .ai-validations-empty {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 2px dashed #bbf7d0;
    border-radius: 20px;
    margin: 40px 0;
}

.ai-dashboard .ai-validations-empty svg {
    width: 80px;
    height: 80px;
    color: #10b981;
    margin-bottom: 24px;
    opacity: 0.6;
}

.ai-dashboard .ai-validations-empty h3 {
    font-size: 24px;
    font-weight: 700;
    color: #065f46;
    margin: 0 0 12px 0;
}

.ai-dashboard .ai-validations-empty p {
    font-size: 16px;
    color: #047857;
    margin: 0;
    line-height: 1.6;
}

/* Loading State */
.ai-dashboard .ai-validations-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.ai-dashboard .ai-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Responsive Validations Grid */
@media (max-width: 1024px) {
    .ai-dashboard .ai-validations-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .ai-dashboard .ai-validations-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ai-dashboard .ai-validation-card {
        border-radius: 16px;
    }
    
    .ai-dashboard .ai-validation-image {
        height: 280px;
    }
    
    .ai-dashboard .ai-validation-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .ai-dashboard .ai-validation-time {
        text-align: left;
        align-items: flex-start;
    }
    
    .ai-dashboard .ai-validation-actions {
        flex-direction: column;
    }
    
    .ai-dashboard .ai-validation-actions .ai-btn {
        width: 100%;
    }
}

/* ========================================
   VALIDATION TABLE ENHANCEMENTS
   ======================================== */

/* Validation Thumbnail Styles */
.ai-dashboard .ai-validation-thumbnail {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.ai-dashboard .ai-validation-thumbnail:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2) !important;
    border-color: #667eea;
    z-index: 10;
}

/* Validation Detail Modal Styles */
.ai-validation-detail-modal {
    border-radius: 16px !important;
}

.ai-validation-detail-modal h4 {
    font-size: 16px;
    font-weight: 600;
}

.ai-validation-detail-modal table {
    font-size: 14px;
}

.ai-validation-detail-modal table td {
    vertical-align: top;
}

/* Agent Avatar in Table */
.ai-dashboard #validations-table .ai-agent-avatar {
    flex-shrink: 0;
}

/* Make sure table cells don't wrap unnecessarily */
.ai-dashboard #validations-table td {
    white-space: normal;
}

.ai-dashboard #validations-table td:first-child {
    white-space: nowrap;
}

/* Admin Comment Column Styling */
.ai-dashboard #validations-table td:nth-child(8) {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

.ai-dashboard #validations-table td:nth-child(8) small {
    display: block;
    max-width: 200px;
    word-wrap: break-word;
}

/* Responsive adjustments for validation table */
@media (max-width: 1200px) {
    .ai-dashboard #validations-table {
        font-size: 13px;
    }
    
    .ai-dashboard #validations-table .ai-validation-thumbnail {
        width: 50px !important;
        height: 50px !important;
    }
}

@media (max-width: 768px) {
    .ai-dashboard #validations-table {
        font-size: 12px;
    }
    
    .ai-dashboard #validations-table .ai-validation-thumbnail {
        width: 40px !important;
        height: 40px !important;
    }
    
    .ai-dashboard #validations-table .ai-agent-avatar {
        width: 28px !important;
        height: 28px !important;
        font-size: 11px !important;
    }
}

/******Element Styles ignore for dashboard*******/

.elementor-21175 .elementor-element.elementor-element-7a71a895 {
  --display:flex;
  border-style:none;
  --border-style:none;
  --border-radius:0% 0% 0% 0%;
  --padding-top:0px;
  --padding-bottom:0px;
  --padding-left:0px;
  --padding-right:0px;
  overflow:visible;
}
.elementor-21175 .elementor-element.elementor-element-7a71a895:not(.elementor-motion-effects-element-type-background),
.elementor-21175 .elementor-element.elementor-element-7a71a895 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
  background-color:var( --e-global-color-text );
}
.elementor-21175 .elementor-element.elementor-element-a38f52b {
  --display:flex;
  --flex-direction:row;
  --container-widget-width:calc( ( 1 - var( --container-widget-flex-grow ) ) * 100% );
  --container-widget-height:100%;
  --container-widget-flex-grow:1;
  --container-widget-align-self:stretch;
  --flex-wrap-mobile:wrap;
  --justify-content:space-between;
  --align-items:center;
  --gap:0px 0px;
  --row-gap:0px;
  --column-gap:0px;
  --padding-top:0px;
  --padding-bottom:0px;
  --padding-left:10px;
  --padding-right:10px;
  overflow:visible;
}
.elementor-21175 .elementor-element.elementor-element-7a15c633 {
  --display:flex;
  overflow:visible;
}
.elementor-21175 .elementor-element.elementor-element-7a15c633.e-con {
  --flex-grow:0;
  --flex-shrink:0;
}
.elementor-widget-image .widget-image-caption {
  color:var( --e-global-color-text );
  font-family:var( --e-global-typography-text-font-family ), Sans-serif;
  font-weight:var( --e-global-typography-text-font-weight );
}
.elementor-21175 .elementor-element.elementor-element-0d3cd3a {
  width:var( --container-widget-width, 15% );
  max-width:15%;
  --container-widget-width:15%;
  --container-widget-flex-grow:0;
  text-align:left;
}
.elementor-21175 .elementor-element.elementor-element-0d3cd3a img {
  pointer-events:all;
}
@media(max-width:1024px) {
  .elementor-21175 .elementor-element.elementor-element-a38f52b {
    --min-height:70px;
  }
}
@media(max-width:767px) {
  .elementor-21175 .elementor-element.elementor-element-7a15c633 {
    --width:auto;
  }
}
.elementor-21176 .elementor-element.elementor-element-4b575ba0 {
  --display:flex;
  --flex-direction:column;
  --container-widget-width:100%;
  --container-widget-height:initial;
  --container-widget-flex-grow:0;
  --container-widget-align-self:initial;
  --flex-wrap-mobile:wrap;
  border-style:solid;
  --border-style:solid;
  border-width:0px 0px 1px 0px;
  --border-top-width:0px;
  --border-right-width:0px;
  --border-bottom-width:1px;
  --border-left-width:0px;
  border-color:#E7E7E7;
  --border-color:#E7E7E7;
  overflow:visible;
}
.elementor-21176 .elementor-element.elementor-element-4b575ba0:not(.elementor-motion-effects-element-type-background),
.elementor-21176 .elementor-element.elementor-element-4b575ba0 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
  background-color:#FFFFFF;
}
.elementor-21176 .elementor-element.elementor-element-70c699eb {
  --display:flex;
  --flex-direction:row;
  --container-widget-width:initial;
  --container-widget-height:100%;
  --container-widget-flex-grow:1;
  --container-widget-align-self:stretch;
  --flex-wrap-mobile:wrap;
  overflow:visible;
}
.elementor-21176 .elementor-element.elementor-element-361466bd {
  --display:flex;
  --justify-content:center;
  --gap:0px 0px;
  --row-gap:0px;
  --column-gap:0px;
  overflow:visible;
}
.elementor-widget-icon-list .elementor-icon-list-item:not(:last-child):after {
  border-color:var( --e-global-color-text );
}
.elementor-widget-icon-list .elementor-icon-list-icon i {
  color:var( --e-global-color-primary );
}
.elementor-widget-icon-list .elementor-icon-list-icon svg {
  fill:var( --e-global-color-primary );
}
.elementor-widget-icon-list .elementor-icon-list-item > .elementor-icon-list-text,
.elementor-widget-icon-list .elementor-icon-list-item > a {
  font-family:var( --e-global-typography-text-font-family ), Sans-serif;
  font-weight:var( --e-global-typography-text-font-weight );
}
.elementor-widget-icon-list .elementor-icon-list-text {
  color:var( --e-global-color-secondary );
}
.elementor-21176 .elementor-element.elementor-element-6b4b7509 {
  padding:10px 10px 10px 10px;
}
.elementor-21176 .elementor-element.elementor-element-6b4b7509 .elementor-icon-list-items:not(.elementor-inline-items) .elementor-icon-list-item:not(:last-child) {
  padding-block-end:calc(20px/2);
}
.elementor-21176 .elementor-element.elementor-element-6b4b7509 .elementor-icon-list-items:not(.elementor-inline-items) .elementor-icon-list-item:not(:first-child) {
  margin-block-start:calc(20px/2);
}
.elementor-21176 .elementor-element.elementor-element-6b4b7509 .elementor-icon-list-items.elementor-inline-items .elementor-icon-list-item {
  margin-inline:calc(20px/2);
}
.elementor-21176 .elementor-element.elementor-element-6b4b7509 .elementor-icon-list-items.elementor-inline-items {
  margin-inline:calc(-20px/2);
}
.elementor-21176 .elementor-element.elementor-element-6b4b7509 .elementor-icon-list-items.elementor-inline-items .elementor-icon-list-item:after {
  inset-inline-end:calc(-20px/2);
}
.elementor-21176 .elementor-element.elementor-element-6b4b7509 .elementor-icon-list-icon i {
  color:var( --e-global-color-primary );
}
.elementor-21176 .elementor-element.elementor-element-6b4b7509 .elementor-icon-list-icon svg {
  fill:var( --e-global-color-primary );
}
.elementor-21176 .elementor-element.elementor-element-6b4b7509 .elementor-icon-list-item > .elementor-icon-list-text,
.elementor-21176 .elementor-element.elementor-element-6b4b7509 .elementor-icon-list-item > a {
  font-family:"Plus Jakarta Sans", Sans-serif;
  font-size:16px;
  font-weight:600;
}
.elementor-21176 .elementor-element.elementor-element-6b4b7509 .elementor-icon-list-text {
  color:#7F7F7F;
}
.elementor-21176 .elementor-element.elementor-element-6b4b7509 .elementor-icon-list-item:hover .elementor-icon-list-text {
  color:var( --e-global-color-primary );
}
.underline-link-effect .elementor-21176 .elementor-element.elementor-element-6b4b7509 .elementor-icon-list-item:hover .elementor-icon-list-text:after {
  background-color:var( --e-global-color-primary );
}
.elementor-21176 .elementor-element.elementor-element-55f44207 {
  --display:flex;
  --justify-content:center;
  --gap:0px 0px;
  --row-gap:0px;
  --column-gap:0px;
  overflow:visible;
}
.elementor-21176 .elementor-element.elementor-element-3c6ec62d .elementor-repeater-item-172011e > a :is(i,
svg) {
  color:var( --e-global-color-text );
  fill:var( --e-global-color-text );
}
.elementor-21176 .elementor-element.elementor-element-3c6ec62d .elementor-repeater-item-172011e > a {
  background-color:var( --e-global-color-primary );
}
.elementor-21176 .elementor-element.elementor-element-3c6ec62d .elementor-repeater-item-172011e > a:hover {
  color:#ffffff;
  background-color:var( --e-global-color-secondary );
}
.elementor-21176 .elementor-element.elementor-element-3c6ec62d .elementor-repeater-item-172011e > a:hover svg path {
  stroke:#ffffff;
  fill:#ffffff;
}
.elementor-21176 .elementor-element.elementor-element-3c6ec62d .elementor-repeater-item-0825b5a > a :is(i,
svg) {
  color:var( --e-global-color-text );
  fill:var( --e-global-color-text );
}
.elementor-21176 .elementor-element.elementor-element-3c6ec62d .elementor-repeater-item-0825b5a > a {
  background-color:var( --e-global-color-primary );
}
.elementor-21176 .elementor-element.elementor-element-3c6ec62d .elementor-repeater-item-0825b5a > a:hover {
  color:#ffffff;
  background-color:var( --e-global-color-secondary );
}
.elementor-21176 .elementor-element.elementor-element-3c6ec62d .elementor-repeater-item-0825b5a > a:hover svg path {
  stroke:#ffffff;
  fill:#ffffff;
}
.elementor-21176 .elementor-element.elementor-element-3c6ec62d .elementor-repeater-item-fa40825 > a :is(i,
svg) {
  color:var( --e-global-color-text );
  fill:var( --e-global-color-text );
}
.elementor-21176 .elementor-element.elementor-element-3c6ec62d .elementor-repeater-item-fa40825 > a {
  background-color:var( --e-global-color-primary );
}
.elementor-21176 .elementor-element.elementor-element-3c6ec62d .elementor-repeater-item-fa40825 > a:hover {
  color:#ffffff;
  background-color:var( --e-global-color-secondary );
}
.elementor-21176 .elementor-element.elementor-element-3c6ec62d .elementor-repeater-item-fa40825 > a:hover svg path {
  stroke:#ffffff;
  fill:#ffffff;
}
.elementor-21176 .elementor-element.elementor-element-3c6ec62d a > i {
  padding-right:5px;
}
.elementor-21176 .elementor-element.elementor-element-3c6ec62d .ekit_social_media {
  text-align:right;
}
.elementor-21176 .elementor-element.elementor-element-3c6ec62d .ekit_social_media > li > a {
  text-align:center;
  text-decoration:none;
  padding:0px 12px 0px 12px;
  line-height:36px;
}
.elementor-21176 .elementor-element.elementor-element-3c6ec62d .ekit_social_media > li {
  display:inline-block;
  margin:0px 6px 0px 0px;
}
.elementor-21176 .elementor-element.elementor-element-46391da4 {
  --display:flex;
  --flex-direction:row;
  --container-widget-width:calc( ( 1 - var( --container-widget-flex-grow ) ) * 100% );
  --container-widget-height:100%;
  --container-widget-flex-grow:1;
  --container-widget-align-self:stretch;
  --flex-wrap-mobile:wrap;
  --align-items:stretch;
  --gap:0px 0px;
  --row-gap:0px;
  --column-gap:0px;
  overflow:visible;
}
.elementor-21176 .elementor-element.elementor-element-46391da4:not(.elementor-motion-effects-element-type-background),
.elementor-21176 .elementor-element.elementor-element-46391da4 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
  background-color:#FFFFFF;
}
.elementor-21176 .elementor-element.elementor-element-5fbe84a3 {
  --display:flex;
  overflow:visible;
}
.elementor-21176 .elementor-element.elementor-element-3704d06d {
  --display:flex;
  --flex-direction:row;
  --container-widget-width:calc( ( 1 - var( --container-widget-flex-grow ) ) * 100% );
  --container-widget-height:100%;
  --container-widget-flex-grow:1;
  --container-widget-align-self:stretch;
  --flex-wrap-mobile:wrap;
  --align-items:stretch;
  --gap:10px 10px;
  --row-gap:10px;
  --column-gap:10px;
  --padding-top:60px;
  --padding-bottom:60px;
  --padding-left:0px;
  --padding-right:0px;
  overflow:visible;
}
.elementor-21176 .elementor-element.elementor-element-290e22cd {
  --display:flex;
  overflow:visible;
}
.elementor-widget-image .widget-image-caption {
  color:var( --e-global-color-text );
  font-family:var( --e-global-typography-text-font-family ), Sans-serif;
  font-weight:var( --e-global-typography-text-font-weight );
}
.elementor-21176 .elementor-element.elementor-element-9d4beb3 img {
  pointer-events:all;
  width:110px;
  border-radius:0px 0px 0px 0px;
}
.elementor-21176 .elementor-element.elementor-element-9d4beb3 {
  text-align:left;
}
.elementor-widget-text-editor {
  font-family:var( --e-global-typography-text-font-family ), Sans-serif;
  font-weight:var( --e-global-typography-text-font-weight );
  color:var( --e-global-color-text );
}
.elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap {
  background-color:var( --e-global-color-primary );
}
.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap,
.elementor-widget-text-editor.elementor-drop-cap-view-default .elementor-drop-cap {
  color:var( --e-global-color-primary );
  border-color:var( --e-global-color-primary );
}
.elementor-21176 .elementor-element.elementor-element-c984995 {
  width:var( --container-widget-width, 70% );
  max-width:70%;
  --container-widget-width:70%;
  --container-widget-flex-grow:0;
  text-align:left;
  font-family:"Plus Jakarta Sans", Sans-serif;
  font-size:13px;
  font-weight:500;
  color:#7F7F7F;
}
.elementor-21176 .elementor-element.elementor-element-189c6b43 {
  --display:flex;
  overflow:visible;
}
.elementor-widget-heading .elementor-heading-title {
  font-family:var( --e-global-typography-primary-font-family ), Sans-serif;
  font-weight:var( --e-global-typography-primary-font-weight );
  color:var( --e-global-color-primary );
}
.elementor-21176 .elementor-element.elementor-element-ba3fbf5 .elementor-heading-title {
  color:var( --e-global-color-text );
}
.elementor-21176 .elementor-element.elementor-element-5cfa74c5 .elementor-icon-list-items:not(.elementor-inline-items) .elementor-icon-list-item:not(:last-child) {
  padding-block-end:calc(10px/2);
}
.elementor-21176 .elementor-element.elementor-element-5cfa74c5 .elementor-icon-list-items:not(.elementor-inline-items) .elementor-icon-list-item:not(:first-child) {
  margin-block-start:calc(10px/2);
}
.elementor-21176 .elementor-element.elementor-element-5cfa74c5 .elementor-icon-list-items.elementor-inline-items .elementor-icon-list-item {
  margin-inline:calc(10px/2);
}
.elementor-21176 .elementor-element.elementor-element-5cfa74c5 .elementor-icon-list-items.elementor-inline-items {
  margin-inline:calc(-10px/2);
}
.elementor-21176 .elementor-element.elementor-element-5cfa74c5 .elementor-icon-list-items.elementor-inline-items .elementor-icon-list-item:after {
  inset-inline-end:calc(-10px/2);
}
.elementor-21176 .elementor-element.elementor-element-5cfa74c5 .elementor-icon-list-icon i {
  transition:color 0.3s;
}
.elementor-21176 .elementor-element.elementor-element-5cfa74c5 .elementor-icon-list-icon svg {
  transition:fill 0.3s;
}
.elementor-21176 .elementor-element.elementor-element-5cfa74c5 {
  --e-icon-list-icon-size:14px;
  --icon-vertical-offset:0px;
}
.elementor-21176 .elementor-element.elementor-element-5cfa74c5 .elementor-icon-list-item > .elementor-icon-list-text,
.elementor-21176 .elementor-element.elementor-element-5cfa74c5 .elementor-icon-list-item > a {
  font-family:"Plus Jakarta Sans", Sans-serif;
  font-weight:600;
}
.elementor-21176 .elementor-element.elementor-element-5cfa74c5 .elementor-icon-list-text {
  color:#7F7F7F;
}
.elementor-21176 .elementor-element.elementor-element-5cfa74c5 .elementor-icon-list-item:hover .elementor-icon-list-text {
  color:var( --e-global-color-primary );
}
.underline-link-effect .elementor-21176 .elementor-element.elementor-element-5cfa74c5 .elementor-icon-list-item:hover .elementor-icon-list-text:after {
  background-color:var( --e-global-color-primary );
}
.elementor-21176 .elementor-element.elementor-element-4a042f97 {
  --display:flex;
  --flex-direction:column;
  --container-widget-width:100%;
  --container-widget-height:initial;
  --container-widget-flex-grow:0;
  --container-widget-align-self:initial;
  --flex-wrap-mobile:wrap;
  border-style:solid;
  --border-style:solid;
  border-width:1px 0px 0px 0px;
  --border-top-width:1px;
  --border-right-width:0px;
  --border-bottom-width:0px;
  --border-left-width:0px;
  border-color:#E7E7E7;
  --border-color:#E7E7E7;
  overflow:visible;
}
.elementor-21176 .elementor-element.elementor-element-4a042f97:not(.elementor-motion-effects-element-type-background),
.elementor-21176 .elementor-element.elementor-element-4a042f97 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
  background-color:#FFFFFF;
}
.elementor-21176 .elementor-element.elementor-element-1026afc2 {
  --display:flex;
  --flex-direction:row;
  --container-widget-width:initial;
  --container-widget-height:100%;
  --container-widget-flex-grow:1;
  --container-widget-align-self:stretch;
  --flex-wrap-mobile:wrap;
  overflow:visible;
}
.elementor-21176 .elementor-element.elementor-element-1f499a1b {
  --display:flex;
  --justify-content:center;
  --gap:0px 0px;
  --row-gap:0px;
  --column-gap:0px;
  overflow:visible;
}
.elementor-21176 .elementor-element.elementor-element-452fd6d {
  text-align:center;
  color:#7F7F7F;
}
.elementor-21176 .elementor-element.elementor-element-8bff9b9 {
  text-align:center;
}
.elementor-21176 .elementor-element.elementor-element-8bff9b9 .elementor-heading-title {
  font-family:"Roboto", Sans-serif;
  font-size:14px;
  font-weight:700;
  color:var( --e-global-color-text );
}
@media(max-width:1024px) {
  .elementor-21176 .elementor-element.elementor-element-4b575ba0 {
    --padding-top:0px;
    --padding-bottom:0px;
    --padding-left:0px;
    --padding-right:0px;
  }
  .elementor-21176 .elementor-element.elementor-element-361466bd {
    --padding-top:0px;
    --padding-bottom:0px;
    --padding-left:0px;
    --padding-right:0px;
  }
  .elementor-21176 .elementor-element.elementor-element-6b4b7509 .elementor-icon-list-item > .elementor-icon-list-text,
  .elementor-21176 .elementor-element.elementor-element-6b4b7509 .elementor-icon-list-item > a {
    font-size:15px;
  }
  .elementor-21176 .elementor-element.elementor-element-55f44207 {
    --padding-top:0px;
    --padding-bottom:0px;
    --padding-left:0px;
    --padding-right:0px;
  }
  .elementor-21176 .elementor-element.elementor-element-3c6ec62d .ekit_social_media > li > a {
    text-align:right;
  }
  .elementor-21176 .elementor-element.elementor-element-46391da4 {
    --padding-top:0px;
    --padding-bottom:0px;
    --padding-left:0px;
    --padding-right:0px;
  }
  .elementor-21176 .elementor-element.elementor-element-189c6b43 {
    --gap:20px 20px;
    --row-gap:20px;
    --column-gap:20px;
  }
  .elementor-21176 .elementor-element.elementor-element-4a042f97 {
    --padding-top:0px;
    --padding-bottom:0px;
    --padding-left:0px;
    --padding-right:0px;
  }
}
@media(max-width:767px) {
  .elementor-21176 .elementor-element.elementor-element-70c699eb {
    --gap:0px 0px;
    --row-gap:0px;
    --column-gap:0px;
  }
  .elementor-21176 .elementor-element.elementor-element-361466bd {
    --padding-top:10px;
    --padding-bottom:10px;
    --padding-left:10px;
    --padding-right:10px;
  }
  .elementor-21176 .elementor-element.elementor-element-6b4b7509 {
    padding:10px 0px 10px 0px;
  }
  .elementor-21176 .elementor-element.elementor-element-6b4b7509 .elementor-icon-list-items:not(.elementor-inline-items) .elementor-icon-list-item:not(:last-child) {
    padding-block-end:calc(32px/2);
  }
  .elementor-21176 .elementor-element.elementor-element-6b4b7509 .elementor-icon-list-items:not(.elementor-inline-items) .elementor-icon-list-item:not(:first-child) {
    margin-block-start:calc(32px/2);
  }
  .elementor-21176 .elementor-element.elementor-element-6b4b7509 .elementor-icon-list-items.elementor-inline-items .elementor-icon-list-item {
    margin-inline:calc(32px/2);
  }
  .elementor-21176 .elementor-element.elementor-element-6b4b7509 .elementor-icon-list-items.elementor-inline-items {
    margin-inline:calc(-32px/2);
  }
  .elementor-21176 .elementor-element.elementor-element-6b4b7509 .elementor-icon-list-items.elementor-inline-items .elementor-icon-list-item:after {
    inset-inline-end:calc(-32px/2);
  }
  .elementor-21176 .elementor-element.elementor-element-6b4b7509 .elementor-icon-list-item > .elementor-icon-list-text,
  .elementor-21176 .elementor-element.elementor-element-6b4b7509 .elementor-icon-list-item > a {
    font-size:14px;
  }
  .elementor-21176 .elementor-element.elementor-element-55f44207 {
    --padding-top:10px;
    --padding-bottom:10px;
    --padding-left:10px;
    --padding-right:10px;
  }
  .elementor-21176 .elementor-element.elementor-element-3c6ec62d > .elementor-widget-container {
    padding:0px 0px 10px 0px;
  }
  .elementor-21176 .elementor-element.elementor-element-3c6ec62d a > i {
    padding-right:0px;
  }
  .elementor-21176 .elementor-element.elementor-element-3c6ec62d .ekit_social_media {
    text-align:left;
  }
  .elementor-21176 .elementor-element.elementor-element-3c6ec62d .ekit_social_media > li > a {
    text-align:left;
    line-height:30px;
  }
  .elementor-21176 .elementor-element.elementor-element-3c6ec62d .ekit_social_media > li > a i {
    font-size:0px;
  }
  .elementor-21176 .elementor-element.elementor-element-3c6ec62d .ekit_social_media > li > a svg {
    max-width:0px;
  }
  .elementor-21176 .elementor-element.elementor-element-3704d06d {
    --padding-top:30px;
    --padding-bottom:20px;
    --padding-left:0px;
    --padding-right:0px;
  }
  .elementor-21176 .elementor-element.elementor-element-c984995 {
    text-align:left;
  }
  .elementor-21176 .elementor-element.elementor-element-189c6b43 {
    --width:100%;
  }
  .elementor-21176 .elementor-element.elementor-element-452fd6d {
    text-align:left;
  }
}
@media(min-width:768px) {
  .elementor-21176 .elementor-element.elementor-element-361466bd {
    --width:50%;
  }
  .elementor-21176 .elementor-element.elementor-element-55f44207 {
    --width:50%;
  }
  .elementor-21176 .elementor-element.elementor-element-290e22cd {
    --width:48%;
  }
  .elementor-21176 .elementor-element.elementor-element-189c6b43 {
    --width:13%;
  }
}
@media(max-width:1024px) and (min-width:768px) {
  .elementor-21176 .elementor-element.elementor-element-361466bd {
    --width:45%;
  }
  .elementor-21176 .elementor-element.elementor-element-55f44207 {
    --width:55%;
  }
  .elementor-21176 .elementor-element.elementor-element-290e22cd {
    --width:32%;
  }
  .elementor-21176 .elementor-element.elementor-element-189c6b43 {
    --width:17%;
  }
  .elementor-21176 .elementor-element.elementor-element-1f499a1b {
    --width:100%;
  }
}

/***********************/

/* ========================================
   TEAM ASSIGNMENT & CSV IMPORT - Enhanced UI
   ======================================== */

/* Team Column Layout */
.ai-dashboard .team-column {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ai-dashboard .team-column:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ai-dashboard .team-column h4 {
    margin: 0 0 15px 0 !important;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
    font-size: 15px !important;
    font-weight: 600 !important;
}

/* Client Dashboard Assignment Tables */
.ai-dashboard #client-supervisors-assign-table,
.ai-dashboard #client-agents-assign-table {
    font-size: 13px !important;
    width: 100% !important;
}

.ai-dashboard #client-supervisors-assign-table thead th,
.ai-dashboard #client-agents-assign-table thead th {
    background: #f8fafc !important;
    color: #475569 !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    padding: 12px 10px !important;
    border-bottom: 2px solid #e2e8f0 !important;
    text-align: left !important;
}

.ai-dashboard #client-supervisors-assign-table tbody td,
.ai-dashboard #client-agents-assign-table tbody td {
    padding: 12px 10px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.ai-dashboard #client-supervisors-assign-table tbody tr:hover,
.ai-dashboard #client-agents-assign-table tbody tr:hover {
    background: #f9fafb !important;
}

/* First column (Select) - centered and narrow */
.ai-dashboard #client-supervisors-assign-table tbody td:first-child,
.ai-dashboard #client-agents-assign-table tbody td:first-child {
    text-align: center !important;
    width: 50px !important;
}

/* Second column (Information) - full width */
.ai-dashboard #client-supervisors-assign-table tbody td:last-child,
.ai-dashboard #client-agents-assign-table tbody td:last-child {
    padding: 10px 15px !important;
}

/* Information display styling */
.ai-dashboard #client-supervisors-assign-table tbody td div,
.ai-dashboard #client-agents-assign-table tbody td div {
    line-height: 1.4;
}

/* Radio buttons and checkboxes in Client tables */
.ai-dashboard .client-supervisor-radio,
.ai-dashboard .client-agent-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

.ai-dashboard .client-supervisor-radio {
    accent-color: #1e40af;
}

.ai-dashboard .client-agent-checkbox {
    accent-color: #059669;
}

.ai-dashboard #client-select-all-agents {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #059669;
}

/* Current Assignments Table */
.ai-dashboard #client-current-assignments-table {
    font-size: 13px !important;
    width: 100% !important;
}

.ai-dashboard #client-current-assignments-table thead th {
    background: #f8fafc !important;
    color: #475569 !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    padding: 12px 10px !important;
    border-bottom: 2px solid #e2e8f0 !important;
    text-align: left !important;
}

.ai-dashboard #client-current-assignments-table tbody td {
    padding: 12px 10px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.ai-dashboard #client-current-assignments-table tbody tr:hover {
    background: #f9fafb !important;
}

.ai-dashboard #client-current-assignments-table tbody td div {
    line-height: 1.4;
}

/* Unassign button styling */
.ai-dashboard .ai-btn-unassign {
    background: #dc2626;
    color: #ffffff;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ai-dashboard .ai-btn-unassign:hover {
    background: #b91c1c;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

.ai-dashboard .ai-btn-unassign:active {
    transform: translateY(1px);
}

.ai-dashboard .ai-btn-unassign:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Activity Log Table */
.ai-dashboard #client-activity-log-table {
    font-size: 13px !important;
    width: 100% !important;
}

.ai-dashboard #client-activity-log-table thead th {
    background: #f8fafc !important;
    color: #475569 !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    padding: 12px 10px !important;
    border-bottom: 2px solid #e2e8f0 !important;
    text-align: left !important;
}

.ai-dashboard #client-activity-log-table tbody td {
    padding: 12px 10px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.ai-dashboard #client-activity-log-table tbody tr:hover {
    background: #f9fafb !important;
}

.ai-dashboard #client-activity-log-table tbody td div {
    line-height: 1.4;
}

/* Client Assignment Actions Container */
.ai-dashboard #assign-panel .ai-form-card > div[style*="margin-top: 25px"] {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
}

.ai-dashboard #client-assign-selected-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.ai-dashboard #client-assign-selected-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.ai-dashboard #client-assign-selected-btn:active {
    transform: translateY(0);
}

.ai-dashboard #client-clear-selection-btn {
    background: white;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-dashboard #client-clear-selection-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

/* Two-column grid layout */
.ai-dashboard #assign-panel .ai-form-card > div[style*="grid-template-columns"] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Responsive layout for smaller screens */
@media (max-width: 1024px) {
    .ai-dashboard #assign-panel .ai-form-card > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* DataTables styling for Client Dashboard */
.ai-dashboard .team-column .dataTables_wrapper {
    padding: 0;
}

.ai-dashboard .team-column .dataTables_filter {
    float: right;
    margin-bottom: 10px;
}

.ai-dashboard .team-column .dataTables_filter input {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 6px 12px;
    margin-left: 8px;
    font-size: 13px;
    width: 200px;
}

.ai-dashboard .team-column .dataTables_filter input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.ai-dashboard .team-column .dataTables_length {
    float: left;
    margin-bottom: 10px;
}

.ai-dashboard .team-column .dataTables_length select {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 6px 30px 6px 12px;
    margin: 0 8px;
    font-size: 13px;
    background: white;
    cursor: pointer;
}

.ai-dashboard .team-column .dataTables_info {
    padding-top: 10px;
    font-size: 13px;
    color: #64748b;
}

.ai-dashboard .team-column .dataTables_paginate {
    float: right;
    padding-top: 10px;
}

.ai-dashboard .team-column .dataTables_paginate .paginate_button {
    padding: 6px 12px;
    margin: 0 2px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    color: #475569;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-dashboard .team-column .dataTables_paginate .paginate_button:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.ai-dashboard .team-column .dataTables_paginate .paginate_button.current {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.ai-dashboard .team-column .dataTables_paginate .paginate_button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Team Assignment Tables */
.ai-dashboard #supervisors-assign-table,
.ai-dashboard #agents-assign-table,
.ai-dashboard #current-assignments-table {
    font-size: 13px !important;
}

.ai-dashboard #supervisors-assign-table thead th,
.ai-dashboard #agents-assign-table thead th,
.ai-dashboard #current-assignments-table thead th {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    color: #475569 !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 14px 12px !important;
    border-bottom: 2px solid #e2e8f0 !important;
}

.ai-dashboard #supervisors-assign-table tbody td,
.ai-dashboard #agents-assign-table tbody td,
.ai-dashboard #current-assignments-table tbody td {
    padding: 12px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.ai-dashboard #supervisors-assign-table tbody tr:hover,
.ai-dashboard #agents-assign-table tbody tr:hover,
.ai-dashboard #current-assignments-table tbody tr:hover {
    background: #fafbfc !important;
}

/* Custom Checkboxes in Tables */
.ai-dashboard .supervisor-checkbox,
.ai-dashboard .agent-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2563eb;
    border-radius: 4px;
}

/* Select All Checkbox */
.ai-dashboard #select-all-supervisors,
.ai-dashboard #select-all-agents {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2563eb;
}

/* Badge Styles in Tables */
.ai-dashboard .ai-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.ai-dashboard .ai-badge-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.ai-dashboard .ai-badge-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.ai-dashboard .ai-badge-secondary {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #475569;
    border: 1px solid #cbd5e1;
}

.ai-dashboard .ai-badge-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fbbf24;
}

/* Assignment Actions Box */
.ai-dashboard .ai-form-card + div[style*="margin-top: 25px"] {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Assignment Button States */
.ai-dashboard button[onclick="assignSelectedTeams()"] {
    position: relative;
    overflow: hidden;
}

.ai-dashboard button[onclick="assignSelectedTeams()"]:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    border-color: #d1d5db;
}

.ai-dashboard button[onclick="assignSelectedTeams()"]:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

/* CSV Import Section Styles */
.ai-dashboard #import-agents-subtab .ai-form-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border: 2px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ai-dashboard #import-agents-subtab h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #111827;
    font-size: 24px !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
}

/* CSV Upload Input Styling */
.ai-dashboard input[type="file"]#csv-file {
    position: relative;
    padding: 20px !important;
    background: #f8fafc !important;
    border: 2px dashed #cbd5e1 !important;
    border-radius: 12px !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
}

.ai-dashboard input[type="file"]#csv-file:hover {
    border-color: #94a3b8 !important;
    background: #f1f5f9 !important;
}

.ai-dashboard input[type="file"]#csv-file:focus {
    outline: none !important;
    border-color: #3b82f6 !important;
    background: #eff6ff !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1) !important;
}

/* CSV Preview Box */
.ai-dashboard #csv-preview {
    margin-top: 20px;
    animation: slideDown 0.3s ease-out;
}

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

.ai-dashboard #csv-preview pre {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.6;
    overflow-x: auto;
    color: #1f2937;
    max-height: 200px;
    overflow-y: auto;
}

/* CSV Format Guide Box */
.ai-dashboard #import-agents-subtab div[style*="background: #fefce8"] {
    border-left: 4px solid #eab308 !important;
    transition: all 0.3s ease;
}

.ai-dashboard #import-agents-subtab div[style*="background: #fefce8"]:hover {
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.15);
}

/* Template Download Box */
.ai-dashboard #import-agents-subtab div[style*="background: #f0fdf4"] {
    border-left: 4px solid #10b981 !important;
    transition: all 0.3s ease;
}

.ai-dashboard #import-agents-subtab div[style*="background: #f0fdf4"]:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

/* Code/Monospace Text Styling */
.ai-dashboard code {
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 13px;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

/* Import Results Styling */
.ai-dashboard #import-results {
    animation: slideDown 0.4s ease-out;
}

.ai-dashboard #import-results .ai-alert {
    border-radius: 12px;
    border-left-width: 5px;
}

.ai-dashboard #import-results ul {
    margin: 12px 0;
    padding-left: 24px;
    line-height: 1.8;
}

.ai-dashboard #import-results li {
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
}

.ai-dashboard #import-results strong {
    color: #111827;
    font-weight: 700;
}

/* Responsive Adjustments for Team Assignment */
@media (max-width: 1200px) {
    .ai-dashboard .team-column h4 {
        font-size: 15px !important;
    }
    
    .ai-dashboard #supervisors-assign-table,
    .ai-dashboard #agents-assign-table {
        font-size: 12px !important;
    }
}

@media (max-width: 968px) {
    .ai-dashboard [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .ai-dashboard .team-column {
        width: 100%;
    }
}

/* DataTables Enhancements for Team Assignment */
.ai-dashboard .dataTables_wrapper .dataTables_filter input {
    border: 2px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
    transition: all 0.2s ease !important;
}

.ai-dashboard .dataTables_wrapper .dataTables_filter input:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    outline: none !important;
}

.ai-dashboard .dataTables_wrapper .dataTables_length select {
    border: 2px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 6px 30px 6px 10px !important;
    font-size: 13px !important;
    background: #ffffff !important;
    cursor: pointer !important;
}

.ai-dashboard .dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 6px !important;
    padding: 6px 12px !important;
    margin: 0 2px !important;
    font-size: 13px !important;
    transition: all 0.2s ease !important;
}

.ai-dashboard .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #eff6ff !important;
    border-color: #3b82f6 !important;
    color: #1e40af !important;
}

.ai-dashboard .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
}

/* Placeholder Styling */
.ai-dashboard #team-assignment-placeholder {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #fafbfc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
}

.ai-dashboard #team-assignment-placeholder svg {
    color: #94a3b8;
    margin-bottom: 20px;
    opacity: 0.4;
}

.ai-dashboard #team-assignment-placeholder p {
    color: #64748b;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

/* Loading States */
.ai-dashboard .ai-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    z-index: 100;
}

.ai-dashboard .ai-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ========================================
   CLIENT DASHBOARD - SUPERVISORS & TEAMS TABLE
   ======================================== */

/* Main Supervisors Table */
.ai-client-users-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ai-client-users-table thead {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.ai-client-users-table thead th {
    padding: 14px 20px;
    text-align: left;
    font-weight: 600;
    color: #475569;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.ai-client-users-table tbody tr.supervisor-row {
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.15s ease;
}

.ai-client-users-table tbody tr.supervisor-row:hover {
    background-color: #fafbfc;
}

.ai-client-users-table tbody tr.supervisor-row td {
    padding: 16px 20px;
    vertical-align: middle;
}

/* Expand/Collapse Button */
.ai-expand-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ai-expand-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.ai-expand-btn .expand-icon {
    transition: transform 0.2s ease;
    color: #64748b;
}

.ai-expand-btn.expanded {
    background: #eef2ff;
    border-color: #c7d2fe;
}

.ai-expand-btn.expanded .expand-icon {
    transform: rotate(90deg);
    color: #4f46e5;
}

/* Team Count Badge */
.ai-team-count-badge {
    display: inline-block;
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Agents Subtable Container */
.agents-container-row {
    background: #fafbfc !important;
}

.agents-table-wrapper {
    animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Agents Subtable */
.ai-agents-subtable {
    width: calc(100% - 80px);
    margin: 0 40px 20px 40px;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
}

.ai-agents-subtable thead {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.ai-agents-subtable thead th {
    padding: 10px 16px;
    text-align: left;
    font-weight: 600;
    color: #64748b;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.ai-agents-subtable tbody tr {
    border-bottom: 1px solid #f8fafc;
    transition: background-color 0.15s ease;
}

.ai-agents-subtable tbody tr:last-child {
    border-bottom: none;
}

.ai-agents-subtable tbody tr:hover {
    background-color: #fafbfc;
}

.ai-agents-subtable tbody td {
    padding: 12px 16px;
    vertical-align: middle;
    color: #334155;
}

/* Button Sizes */
.ai-btn-xs {
    padding: 4px 12px;
    font-size: 11px;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.ai-btn-sm {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* Responsive Table */
@media (max-width: 768px) {
    .ai-client-users-table thead th,
    .ai-client-users-table tbody td {
        padding: 12px 10px;
        font-size: 12px;
    }
    
    .ai-agents-subtable {
        width: calc(100% - 20px);
        margin: 0 10px 15px 10px;
    }
    
    .agents-table-wrapper > div:first-child {
        padding: 15px 10px 10px 30px !important;
    }
}

/* Enhanced Button Group Spacing */
.ai-dashboard .ai-form-actions {
    gap: 12px;
}

.ai-dashboard .ai-form-actions .ai-btn {
    min-width: 140px;
}

/* Smooth Transitions for Dynamic Content */
.ai-dashboard #team-assignment-interface,
.ai-dashboard #team-assignment-placeholder {
    transition: all 0.3s ease;
}

/* Accessibility Improvements */
.ai-dashboard .supervisor-checkbox:focus,
.ai-dashboard .agent-checkbox:focus,
.ai-dashboard #select-all-supervisors:focus,
.ai-dashboard #select-all-agents:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Hover Effects for Interactive Elements */
.ai-dashboard button[onclick="clearTeamSelections()"]:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.ai-dashboard button[onclick="downloadCSVTemplate()"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.3);
}

/* Success/Error Message Styling */
.ai-dashboard .swal2-popup {
    border-radius: 16px !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.ai-dashboard .swal2-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #111827 !important;
}

.ai-dashboard .swal2-html-container {
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #374151 !important;
}

/* CSV Import Progress Indicators */
.ai-dashboard .import-progress {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #93c5fd;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.ai-dashboard .import-progress h4 {
    color: #1e40af;
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 0 0 12px 0 !important;
}

.ai-dashboard .import-progress ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ai-dashboard .import-progress li {
    padding: 8px 0;
    border-bottom: 1px solid #bfdbfe;
    color: #1e40af;
    font-size: 14px;
}

.ai-dashboard .import-progress li:last-child {
    border-bottom: none;
}

/* ========================================
   SWEETALERT2 CUSTOM STYLES
   ======================================== */

/* Custom textarea styling in SweetAlert */
.ai-dashboard .swal2-textarea,
.swal2-textarea {
    border: 2px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 12px !important;
    font-size: 14px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    transition: border-color 0.2s ease !important;
    resize: vertical !important;
}

.ai-dashboard .swal2-textarea:focus,
.swal2-textarea:focus {
    border-color: #3b82f6 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

/* SweetAlert popup customization */
.ai-swal-popup {
    border-radius: 16px !important;
    padding: 24px !important;
}

.ai-swal-confirm {
    border-radius: 8px !important;
    padding: 10px 24px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

.ai-swal-cancel {
    border-radius: 8px !important;
    padding: 10px 24px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

/* ========================================
   AGENT ASSIGNMENT INFORMATION - Simple & Clean
   ======================================== */

/* Info Grid - Simple Layout */
.ai-dashboard .ai-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* Individual Info Items - Clean & Minimal */
.ai-dashboard .ai-info-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
}

/* Info Item Labels - Simple */
.ai-dashboard .ai-info-item label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

/* Info Item Values - Clear */
.ai-dashboard .ai-info-item p {
    margin: 0;
    font-size: 16px;
    color: #1f2937;
    font-weight: 600;
    line-height: 1.4;
}

/* Client Text - Blue */
.ai-dashboard .ai-info-item p[style*="color: #1e40af"],
.ai-dashboard .ai-info-item p[style*="color:#1e40af"] {
    color: #1e40af !important;
}

/* Supervisor Text - Green */
.ai-dashboard .ai-info-item p[style*="color: #059669"],
.ai-dashboard .ai-info-item p[style*="color:#059669"] {
    color: #059669 !important;
}

/* Email Links - Simple */
.ai-dashboard .ai-info-item a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    margin-top: 6px;
}

.ai-dashboard .ai-info-item a:hover {
    text-decoration: underline;
}

/* Assignment Date - Gray */
.ai-dashboard .ai-info-item p[style*="color: #6b7280"],
.ai-dashboard .ai-info-item p[style*="color:#6b7280"] {
    color: #6b7280 !important;
    font-weight: 500;
}

/* Alert Boxes - Simple */
.ai-dashboard .ai-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 6px;
    border: 1px solid;
    font-size: 14px;
    line-height: 1.5;
    margin: 16px 0;
}

.ai-dashboard .ai-alert svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.ai-dashboard .ai-alert-info {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1e40af;
}

.ai-dashboard .ai-alert-info svg {
    color: #3b82f6;
}

.ai-dashboard .ai-alert-warning {
    background: #fef3c7;
    border-color: #fbbf24;
    color: #92400e;
}

.ai-dashboard .ai-alert-warning svg {
    color: #f59e0b;
}

.ai-dashboard .ai-alert p {
    margin: 0;
}

.ai-dashboard .ai-alert strong {
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ai-dashboard .ai-info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Smooth fade-in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
}

.ai-dashboard .ai-form-card {
    animation: fadeInUp 0.5s ease-out;
}

.ai-dashboard .ai-info-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.ai-dashboard .ai-info-item:nth-child(1) { animation-delay: 0.1s; }
.ai-dashboard .ai-info-item:nth-child(2) { animation-delay: 0.2s; }
.ai-dashboard .ai-info-item:nth-child(3) { animation-delay: 0.3s; }
.ai-dashboard .ai-info-item:nth-child(4) { animation-delay: 0.4s; }
.ai-dashboard .ai-info-item:nth-child(5) { animation-delay: 0.5s; }
.ai-dashboard .ai-info-item:nth-child(6) { animation-delay: 0.6s; }

/* ========================================
   MODERN VALIDATION TABLE STYLES
   ======================================== */

/* Modern Table Container */
.ai-dashboard .ai-modern-table {
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
    margin-top: 0 !important;
}

/* Table Header Styles */
.ai-dashboard .ai-modern-table thead th {
    border: none !important;
    border-bottom: 2px solid #e5e7eb !important;
    padding: 14px 12px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    text-transform: uppercase !important;
    font-size: 11px !important;
    letter-spacing: 0.5px !important;
}

/* Table Body Row Styles */
.ai-dashboard .ai-modern-table tbody tr {
    background: #ffffff;
    transition: all 0.2s ease;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ai-dashboard .ai-modern-table tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #fafbfc;
}

/* Table Cell Styles */
.ai-dashboard .ai-modern-table tbody td {
    padding: 16px 12px !important;
    border: none !important;
    border-top: 1px solid #f3f4f6 !important;
    border-bottom: 1px solid #f3f4f6 !important;
    vertical-align: middle !important;
}

.ai-dashboard .ai-modern-table tbody td:first-child {
    border-left: 1px solid #f3f4f6 !important;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.ai-dashboard .ai-modern-table tbody td:last-child {
    border-right: 1px solid #f3f4f6 !important;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* DataTables Wrapper for Modern Table */
.ai-dashboard .ai-modern-table + .dataTables_wrapper .dataTables_filter input {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 14px;
    transition: all 0.2s;
}

.ai-dashboard .ai-modern-table + .dataTables_wrapper .dataTables_filter input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* DataTables Pagination */
.ai-dashboard .dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 6px 12px !important;
    margin: 0 2px !important;
    border-radius: 6px !important;
    border: 1px solid #e5e7eb !important;
    background: white !important;
    color: #4b5563 !important;
    font-weight: 500 !important;
    transition: all 0.2s !important;
}

.ai-dashboard .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #f8fafc !important;
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1) !important;
}

.ai-dashboard .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: white !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3) !important;
}

/* DataTables Info Text */
.ai-dashboard .dataTables_wrapper .dataTables_info {
    color: #6b7280;
    font-size: 13px;
    padding: 12px 0;
    font-weight: 500;
}

/* DataTables Length Select */
.ai-dashboard .dataTables_wrapper .dataTables_length select {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px 32px 6px 12px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.ai-dashboard .dataTables_wrapper .dataTables_length select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Search and Length Container */
.ai-dashboard .dataTables_wrapper .dataTables_filter,
.ai-dashboard .dataTables_wrapper .dataTables_length {
    margin-bottom: 16px;
}

.ai-dashboard .dataTables_wrapper .dataTables_filter label,
.ai-dashboard .dataTables_wrapper .dataTables_length label {
    font-weight: 600;
    color: #374151;
    font-size: 13px;
}

/* Responsive Table Improvements */
@media (max-width: 768px) {
    .ai-dashboard .ai-modern-table tbody td {
        padding: 12px 8px !important;
        font-size: 13px;
    }
    
    .ai-dashboard .ai-modern-table thead th {
        padding: 12px 8px !important;
        font-size: 10px !important;
    }
}

/* ========================================
   CUSTOM LOGIN PAGE STYLES
   ======================================== */

/* Login Page Background */
body .ai-dashboard.login-page,
.elementor .ai-dashboard.login-page,
.elementor-section .ai-dashboard.login-page {
   
    min-height: 100vh !important;
    max-width: 100vw !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 40px 20px !important;
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.ai-dashboard.login-page::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-image: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%) !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

.ai-dashboard.login-page > * {
    position: relative !important;
    z-index: 1 !important;
}

/* Branding Section */
.ai-dashboard .wc-auth-branding {
    text-align: center !important;
    margin-bottom: 32px !important;
    padding: 0 24px !important;
}

.ai-dashboard .wc-auth-logo {
    width: 80px !important;
    height: 80px !important;
    margin: 0 auto 20px !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 36px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.ai-dashboard .wc-auth-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 8px 0 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.ai-dashboard .wc-auth-subtitle {
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0 !important;
}

/* Login Card/Tabs Container */
.ai-dashboard .wc-auth-tabs {
    max-width: 480px !important;
    margin: 20px auto !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12) !important;
    overflow: hidden !important;
}

/* Tab Buttons */
.ai-dashboard .wc-auth-tab-buttons {
    display: flex !important;
    gap: 8px !important;
    padding: 24px 24px 0 24px !important;
    background: linear-gradient(to bottom, #fafafa 0%, #ffffff 100%) !important;
}

.ai-dashboard .wc-auth-tab-btn {
    flex: 1 !important;
    padding: 14px 20px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #6b7280 !important;
    border-radius: 10px !important;
    transition: all 0.3s !important;
}

.ai-dashboard .wc-auth-tab-btn:hover {
    background: #f3f4f6 !important;
    color: #374151 !important;
}

.ai-dashboard .wc-auth-tab-btn.active {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3) !important;
}

/* Tab Content */
.ai-dashboard .wc-auth-tab-content {
    padding: 32px !important;
}

.ai-dashboard .wc-auth-tab-panel {
    display: none !important;
}

.ai-dashboard .wc-auth-tab-panel.active {
    display: block !important;
    animation: fadeInUp 0.4s ease !important;
}

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

/* Login Form Styles */
.ai-dashboard .ai-login-form .form-group {
    margin-bottom: 20px !important;
}

.ai-dashboard .ai-login-form label {
    display: block !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    font-size: 14px !important;
}

.ai-dashboard .ai-login-form input[type="text"],
.ai-dashboard .ai-login-form input[type="email"],
.ai-dashboard .ai-login-form input[type="password"] {
    width: 100% !important;
    padding: 14px 16px !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    transition: all 0.3s !important;
    box-sizing: border-box !important;
}

.ai-dashboard .ai-login-form input:focus {
    border-color: #667eea !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1) !important;
}

/* Remember Me Checkbox */
.ai-dashboard .ai-login-form .remember-me {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 16px 0 !important;
}

.ai-dashboard .ai-login-form .remember-me input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    cursor: pointer !important;
}

.ai-dashboard .ai-login-form .remember-me label {
    margin: 0 !important;
    color: #6b7280 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    font-weight: 500 !important;
}

/* Submit Button - Virefy Brand Colors */
.ai-dashboard .ai-login-form button[type="submit"],
.ai-dashboard .ai-login-form .ai-btn-primary {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%) !important;
    color: #ffffff !important;
    padding: 14px 28px !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    width: 100% !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3) !important;
}

.ai-dashboard .ai-login-form button[type="submit"]:hover {
    background: linear-gradient(135deg, #0e7490 0%, #155e75 100%) !important;
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.4) !important;
    transform: translateY(-2px) !important;
}

/* Login Messages */
.ai-dashboard .ai-login-message {
    padding: 12px 16px !important;
    border-radius: 8px !important;
    margin-bottom: 20px !important;
    font-size: 14px !important;
}

.ai-dashboard .ai-login-message.success {
    background: #d1fae5 !important;
    color: #065f46 !important;
    border-left: 4px solid #10b981 !important;
}

.ai-dashboard .ai-login-message.error {
    background: #fee2e2 !important;
    color: #991b1b !important;
    border-left: 4px solid #ef4444 !important;
}

/* Footer */
.ai-dashboard .wc-auth-footer {
    text-align: center !important;
    margin-top: 32px !important;
    padding: 0 24px !important;
}

.ai-dashboard .wc-auth-footer-text {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 13px !important;
    margin: 0 0 12px 0 !important;
}

.ai-dashboard .wc-auth-footer-links {
    display: flex !important;
    gap: 20px !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

.ai-dashboard .wc-auth-footer-links a {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 13px !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
    border-bottom: 1px solid transparent !important;
}

.ai-dashboard .wc-auth-footer-links a:hover {
    color: #ffffff !important;
    border-bottom-color: rgba(255, 255, 255, 0.5) !important;
}

/* Password Reset Page Styles */
.ai-dashboard.password-reset-page {
    padding: 40px 20px !important;
}

.ai-dashboard .reset-password-container {
    max-width: 480px !important;
    margin: 60px auto !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 40px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12) !important;
}

.ai-dashboard .reset-password-container h2 {
    margin: 0 0 10px 0 !important;
    color: #1f2937 !important;
}

.ai-dashboard .reset-password-container p {
    color: #6b7280 !important;
    margin-bottom: 24px !important;
}

/***********************/




