/* Modern TalkGenAI Apps Page Styles */
        .talkgenai-apps-page {
            background: #f8fafc;
            margin: 0 -20px;
            padding: 0;
        }

        /* Header Styles */
        .talkgenai-apps-header {
            /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
            
            /* 🔥 TRENDING OPTIONS - Uncomment to test different vibes: */
            
            /* Option 1: Electric AI (Purple→Pink→Orange) - Lovable.dev inspired - CURRENT */
            /* background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #f59e0b 100%); */
            
            /* 🌸 SOFTER VARIATIONS - More gentle and muted tones: */
            
            /* Soft Option A: Gentle Electric (Muted Purple→Soft Pink→Peach) */
            /* background: linear-gradient(135deg, #a78bfa 0%, #f472b6 50%, #fbbf24 100%); */
            
            /* Soft Option B: Pastel Dream (Light Purple→Rose→Cream) */
            /* background: linear-gradient(135deg, #c4b5fd 0%, #f9a8d4 50%, #fed7aa 100%); */
            
            /* Soft Option C: Warm Sunset (Lavender→Coral→Peach) */
            background: linear-gradient(135deg, #ddd6fe 0%, #fda4af 50%, #fde68a 100%);
            
            /* Soft Option D: Cool Breeze (Soft Purple→Pink→Sky) */
            /* background: linear-gradient(135deg, #e0e7ff 0%, #fce7f3 50%, #e0f2fe 100%); */
            
            /* Soft Option E: Rose Garden (Mauve→Rose→Apricot) */
            /* background: linear-gradient(135deg, #f3e8ff 0%, #fce7f3 50%, #fef3c7 100%); */
            
            /* Option 2: Cyber Dev (Blue→Purple→Pink) - GitHub/VS Code vibe */
            /* background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%); */
            
            /* Option 3: Fresh Code (Emerald→Teal→Blue) - Modern dev tools */
            /* background: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #3b82f6 100%); */
            
            /* Option 4: Fire Deploy (Orange→Red) - Vercel/Firebase inspired - not good */
            /* background: linear-gradient(135deg, #f59e0b 0%, #ef4444 50%, #dc2626 100%); */
            
            /* Option 5: Ocean Deep (Dark Blue→Sky Blue) - Professional clean - not good  */
            /* background: linear-gradient(135deg: #1e40af 0%, #3b82f6 50%, #06b6d4 100%); */
            
            /* Option 6: Cosmic Creative (Violet→Pink→Orange→Yellow) - Ultra vibrant - not good */
            /* background: linear-gradient(135deg, #7c3aed 0%, #c026d3 25%, #ec4899 50%, #f97316 75%, #fbbf24 100%); */
            
            /* Option 7: Neon Night (Dark Purple→Bright Purple→Cyan) - Gaming/Tech */
            /* background: linear-gradient(135deg, #581c87 0%, #a855f7 50%, #06b6d4 100%); */
            
            /* Option 8: Sunset Code (Pink→Orange→Yellow) - Warm & creative */
            /* background: linear-gradient(135deg, #ec4899 0%, #f97316 50%, #fbbf24 100%); */
            
            color: white;
            padding: 1rem 2rem;
            margin: 0 0 2rem;
            position: relative;
            overflow: hidden;
        }

        .talkgenai-apps-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            /* SOLUTION 1: Dark overlay for better text contrast */
            background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.1) 100%);
            
            /* SOLUTION 2: Alternative - Subtle pattern with dark overlay */
            /* background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(0,0,0,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(0,0,0,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(0,0,0,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>'), linear-gradient(135deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.1) 100%); */
            
            z-index: 1;
        }

        .talkgenai-apps-header-content {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
            z-index: 2;
        }
        
        /* SOLUTION 3: Text background for maximum readability */
        .talkgenai-apps-title-section {
            /* Uncomment below for semi-transparent background behind text */
            /* background: rgba(0, 0, 0, 0.4); */
            /* backdrop-filter: blur(10px); */
            /* padding: 1rem 1.5rem; */
            /* border-radius: 12px; */
            /* border: 1px solid rgba(255, 255, 255, 0.2); */
        }

        .talkgenai-apps-title {
            font-size: 1.75rem;
            font-weight: 700;
            margin: 0;
            display: flex;
            align-items: center;
            gap: 1rem;
            color: rgba(255, 255, 255, 0.98);
            /* SOLUTION 4: Enhanced text shadow for maximum contrast */
            text-shadow: 
                0 1px 2px rgba(0, 0, 0, 0.8),
                0 2px 4px rgba(0, 0, 0, 0.5),
                0 4px 8px rgba(0, 0, 0, 0.3);
        }

        .talkgenai-apps-title .dashicons {
            font-size: 1.75rem;
            width: 1.75rem;
            height: 1.75rem;
        }

        .talkgenai-apps-count {
            background: rgba(255, 255, 255, 0.25);
            backdrop-filter: blur(10px);
            padding: 0.25rem 0.75rem;
            border-radius: 50px;
            font-size: 1rem;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.95);
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        .talkgenai-apps-subtitle {
            font-size: 0.95rem;
            opacity: 1;
            margin: 0;
            color: rgba(255, 255, 255, 0.95);
            /* SOLUTION 4: Enhanced text shadow for subtitle too */
            text-shadow: 
                0 1px 2px rgba(0, 0, 0, 0.8),
                0 2px 4px rgba(0, 0, 0, 0.5);
            font-weight: 500;
        }

        /* Button Styles */
        .talkgenai-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.75rem 1.5rem;
            border: none;
            border-radius: 8px;
            font-size: 0.875rem;
            font-weight: 500;
            text-decoration: none;
            cursor: pointer;
            transition: all 0.2s ease;
            white-space: nowrap;
        }

        .talkgenai-btn-primary {
            background: #3b82f6;
            color: white;
            box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
        }

        .talkgenai-btn-primary:hover {
            background: #2563eb;
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(59, 130, 246, 0.4);
            color: white;
        }

        .talkgenai-btn-secondary {
            background: #6b7280;
            color: white;
        }

        .talkgenai-btn-secondary:hover {
            background: #4b5563;
            color: white;
        }

        .talkgenai-btn-ghost {
            background: transparent;
            color: #6b7280;
            border: 1px solid #d1d5db;
        }

        .talkgenai-btn-ghost:hover {
            background: #f9fafb;
            color: #374151;
        }

        .talkgenai-btn-danger {
            background: #dc2626;
            color: white;
        }

        .talkgenai-btn-danger:hover {
            background: #b91c1c;
            color: white;
        }

        .talkgenai-btn-small {
            padding: 0.5rem 1rem;
            font-size: 0.8rem;
        }

        /* Filters Section */
        .talkgenai-apps-filters {
            background: white;
            border-radius: 12px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            margin: 0 2rem 1rem;
            padding: 1rem;
        }

        .talkgenai-search-container {
            margin-bottom: 1rem;
        }

        .talkgenai-search-box {
            position: relative;
            max-width: 500px;
        }

        .talkgenai-search-box .dashicons {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: #6b7280;
            z-index: 2;
        }

        .talkgenai-search-input {
            width: 100%;
            padding: 0.75rem 1rem 0.75rem 3rem;
            border: 2px solid #e5e7eb;
            border-radius: 8px;
            font-size: 0.95rem;
            transition: all 0.2s ease;
        }

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

        .talkgenai-search-clear {
            position: absolute;
            right: 0.5rem;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            padding: 0.5rem;
            cursor: pointer;
            color: #6b7280;
            border-radius: 4px;
        }

        .talkgenai-search-clear:hover {
            background: #f3f4f6;
            color: #374151;
        }

        .talkgenai-filters-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 1rem;
            align-items: end;
        }

        .talkgenai-filter-group {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .talkgenai-filter-group label {
            font-weight: 500;
            color: #374151;
            font-size: 0.875rem;
        }

        .talkgenai-filter-select {
            padding: 0.625rem;
            border: 1px solid #d1d5db;
            border-radius: 6px;
            font-size: 0.875rem;
            background: white;
        }

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

        .talkgenai-filter-actions {
            display: flex;
            gap: 0.75rem;
            align-items: center;
        }

        /* Controls Section */
        .talkgenai-apps-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 0 2rem 1rem;
            padding: 0.75rem;
            background: white;
            border-radius: 8px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }

        .talkgenai-view-controls {
            display: flex;
            align-items: center;
            gap: 1rem;
        }


        .talkgenai-per-page {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.875rem;
            color: #6b7280;
        }

        .talkgenai-per-page select {
            padding: 0.4rem 2rem 0.4rem 0.6rem; /* More padding on right for dropdown arrow */
            border: 1px solid #d1d5db;
            border-radius: 6px;
            font-size: 0.8rem;
            background: white;
            min-width: 60px; /* Ensure minimum width */
            appearance: none; /* Remove default styling */
            background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
            background-repeat: no-repeat;
            background-position: right 0.5rem center;
            background-size: 0.65rem;
        }

        .talkgenai-bulk-actions {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .talkgenai-selected-count {
            font-size: 0.875rem;
            color: #6b7280;
        }

        /* Apps Container */
        .talkgenai-apps-container {
            margin: 0 2rem;
            display: grid;
            grid-template-columns: 1fr;
            gap: 0;
            background: white;
            border-radius: 8px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            overflow: hidden;
        }

        /* App Card Styles */
        .talkgenai-app-card {
            border-radius: 0;
            box-shadow: none;
            border: none;
            border-bottom: 1px solid #e5e7eb;
            display: flex;
            align-items: center;
            padding: 0.5rem 1rem;
            transition: background-color 0.2s ease;
            direction: ltr; /* Force LTR for table structure */
        }

        /* RTL Support - Reverse Column Order */
        [dir="rtl"] .talkgenai-app-card,
        .rtl .talkgenai-app-card,
        .talkgenai-rtl .talkgenai-app-card {
            flex-direction: row-reverse; /* Reverse column order for RTL */
        }

        [dir="rtl"] .talkgenai-list-header-row,
        .rtl .talkgenai-list-header-row,
        .talkgenai-rtl .talkgenai-list-header-row {
            flex-direction: row-reverse; /* Reverse header order for RTL */
        }

        [dir="rtl"] .talkgenai-app-content,
        .rtl .talkgenai-app-content {
            direction: rtl; /* Allow content to be RTL */
            text-align: center; /* Keep center alignment */
        }

        [dir="rtl"] .talkgenai-app-title,
        .rtl .talkgenai-app-title {
            direction: rtl;
            text-align: center; /* Keep center alignment */
        }

        [dir="rtl"] .talkgenai-app-description,
        .rtl .talkgenai-app-description {
            direction: rtl;
            text-align: center; /* Keep center alignment */
        }

        /* Additional RTL Support with JavaScript-added class */
        .talkgenai-rtl .talkgenai-app-content {
            direction: rtl;
            text-align: center; /* Keep center alignment even in RTL */
        }

        .talkgenai-rtl .talkgenai-app-title {
            direction: rtl;
            text-align: center; /* Keep center alignment even in RTL */
        }

        .talkgenai-rtl .talkgenai-app-description {
            direction: rtl;
            text-align: center; /* Keep center alignment even in RTL */
        }

        .talkgenai-rtl .talkgenai-app-title a {
            direction: rtl;
            text-align: center; /* Keep center alignment even in RTL */
        }

        /* RTL Column Order Reversal */
        .talkgenai-rtl .talkgenai-app-card {
            flex-direction: row-reverse; /* Reverse column order for RTL */
        }

        .talkgenai-rtl .talkgenai-list-header-row {
            flex-direction: row-reverse; /* Reverse header order for RTL */
        }

        /* RTL Padding Adjustments */
        [dir="rtl"] .talkgenai-app-card-body,
        .rtl .talkgenai-app-card-body,
        .talkgenai-rtl .talkgenai-app-card-body {
            padding-left: 0;
            padding-right: 1.5rem;
        }

        [dir="rtl"] .talkgenai-header-app,
        .rtl .talkgenai-header-app,
        .talkgenai-rtl .talkgenai-header-app {
            padding-left: 0;
            padding-right: 1.5rem;
        }

        .talkgenai-app-card:last-child {
            border-bottom: none;
        }

        .talkgenai-app-card:hover {
            transform: none;
            box-shadow: none;
            background-color: #f8fafc;
        }

        .talkgenai-app-card-header {
            padding: 0;
            width: auto;
            flex-shrink: 0;
        }

        .talkgenai-app-card-body {
            padding: 0 1.5rem;
            text-align: left;
            flex: 1;
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .talkgenai-app-card-footer {
            padding: 0;
            background: none;
            border: none;
            width: auto;
            flex-shrink: 0;
        }

        .talkgenai-app-icon {
            display: none; /* Hide app icon in list view */
        }

        .talkgenai-app-content {
            flex: 1;
            min-width: 0;
            direction: inherit; /* Allow content to inherit RTL/LTR from document */
            text-align: center; /* Center align the app content */
        }

        .talkgenai-app-title {
            font-size: 1rem;
            margin: 0 0 0.25rem;
            direction: inherit; /* Allow title to inherit RTL/LTR */
            text-align: center; /* Center align the title */
        }

        .talkgenai-app-description {
            font-size: 0.8rem;
            margin: 0 0 0.5rem 0;
            color: #6b7280;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            overflow: hidden;
            direction: inherit; /* Allow description to inherit RTL/LTR */
            text-align: center; /* Center align the description */
        }

        .talkgenai-app-actions-inline {
            display: flex;
            gap: 0.2rem;
            margin-top: 0.3rem;
            justify-content: center;
        }

        .talkgenai-app-actions-inline .talkgenai-btn {
            font-size: 0.65rem;
            padding: 0.15rem 0.4rem;
            min-width: auto;
        }

.talkgenai-app-meta {
            display: flex;
            gap: 1.5rem;
            margin: 0;
            font-size: 0.8rem;
            min-width: 300px;
            justify-content: flex-start;
        }

.talkgenai-app-meta > div {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            min-width: 80px;
        }

.talkgenai-meta-label {
            font-weight: 500;
            color: #9ca3af;
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 0.25rem;
        }

.talkgenai-meta-value {
            color: #374151;
            font-weight: 500;
        }

.talkgenai-app-date {
            font-size: 0.8rem;
            margin-right: 1rem;
            min-width: 100px;
            text-align: center;
        }

.talkgenai-app-actions {
            gap: 0.5rem;
            flex-shrink: 0;
        }

.talkgenai-app-status {
            margin-right: 1rem;
        }

.talkgenai-app-menu {
            margin-left: 0.5rem;
        }

        /* Table Header for List View */
        .talkgenai-list-header {
            background: #f8fafc;
            border-bottom: 2px solid #e5e7eb;
            font-weight: 600;
            color: #374151;
            font-size: 0.875rem;
        }

.talkgenai-list-header {
            display: block !important;
        }

        .talkgenai-list-header-row {
            display: flex;
            align-items: center;
            padding: 0.5rem 1rem;
            direction: ltr; /* Force LTR for table structure */
        }

        .talkgenai-header-cell {
            display: flex;
            align-items: center;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            font-size: 0.75rem;
            color: #6b7280;
        }

        .talkgenai-header-select {
            width: 40px;
            flex-shrink: 0;
        }

        .talkgenai-header-app {
            flex: 1;
            min-width: 220px;
            padding-left: 1rem;
            justify-content: center; /* Center align the App header */
        }

        .talkgenai-header-type {
            width: 90px;
            flex-shrink: 0;
            text-align: center;
            justify-content: center;
        }

        .talkgenai-header-scope {
            width: 80px;
            flex-shrink: 0;
            text-align: center;
            justify-content: center;
        }

        .talkgenai-header-date {
            width: 100px;
            flex-shrink: 0;
            text-align: center;
            justify-content: center;
        }

        .talkgenai-header-status {
            width: 80px;
            flex-shrink: 0;
            text-align: center;
            justify-content: center;
        }


        /* New Column Layout for List View */
.talkgenai-app-card-select {
            width: 40px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }

.talkgenai-app-card-body {
            flex: 1;
            min-width: 220px;
            padding-left: 1rem;
        }

.talkgenai-app-type-col {
            width: 90px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
        }

.talkgenai-app-scope-col {
            width: 80px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
        }

.talkgenai-app-date-col {
            width: 100px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            font-size: 0.8rem;
            gap: 0.25rem;
        }

.talkgenai-app-status-col {
            width: 80px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }


        .talkgenai-app-card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 1.5rem 0;
        }

        .talkgenai-app-checkbox input {
            transform: scale(1.2);
        }

        .talkgenai-status-badge {
            padding: 0.25rem 0.75rem;
            border-radius: 50px;
            font-size: 0.75rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .talkgenai-status-badge.active {
            background: #dcfce7;
            color: #166534;
        }

        .talkgenai-status-badge.inactive {
            background: #fef2f2;
            color: #dc2626;
        }

        .talkgenai-app-menu {
            position: relative;
        }

        .talkgenai-app-menu-btn {
            background: none;
            border: none;
            padding: 0.5rem;
            cursor: pointer;
            border-radius: 4px;
            color: #6b7280;
        }

        .talkgenai-app-menu-btn:hover {
            background: #f3f4f6;
            color: #374151;
        }

        .talkgenai-app-menu-dropdown {
            position: absolute;
            top: 100%;
            right: 0;
            background: white;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            min-width: 160px;
            z-index: 10;
            display: none;
        }

        .talkgenai-app-menu:hover .talkgenai-app-menu-dropdown {
            display: block;
        }

        .talkgenai-menu-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.75rem 1rem;
            color: #374151;
            text-decoration: none;
            font-size: 0.875rem;
            border: none;
            background: none;
            width: 100%;
            text-align: left;
            cursor: pointer;
        }

        .talkgenai-menu-item:hover {
            background: #f3f4f6;
        }

        .talkgenai-menu-item.danger {
            color: #dc2626;
        }

        .talkgenai-menu-item.danger:hover {
            background: #fef2f2;
        }

        .talkgenai-menu-divider {
            height: 1px;
            background: #e5e7eb;
            margin: 0.25rem 0;
        }

        .talkgenai-app-card-body {
            padding: 1.5rem;
            text-align: center;
        }

        .talkgenai-app-icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1rem;
        }

        .talkgenai-app-icon .dashicons {
            font-size: 2rem;
            color: white;
        }

        .talkgenai-app-title {
            font-size: 1.25rem;
            font-weight: 600;
            margin: 0 0 0.5rem;
            color: #1f2937;
        }

        .talkgenai-app-title a {
            color: inherit;
            text-decoration: none;
        }

        .talkgenai-app-title a:hover {
            color: #3b82f6;
        }

        .talkgenai-app-description {
            color: #6b7280;
            font-size: 0.875rem;
            line-height: 1.5;
            margin: 0 0 1rem;
        }

        .talkgenai-app-meta {
            display: flex;
            justify-content: space-between;
            font-size: 0.75rem;
            color: #9ca3af;
            margin-bottom: 1rem;
        }

        .talkgenai-meta-label {
            font-weight: 500;
        }

        .talkgenai-meta-value {
            color: #6b7280;
        }

        .talkgenai-app-card-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 1.5rem;
            background: #f9fafb;
            border-top: 1px solid #e5e7eb;
        }

        .talkgenai-app-date {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.75rem;
            color: #6b7280;
        }

        .talkgenai-app-actions {
            display: flex;
            gap: 0.5rem;
        }

        /* Empty State */
        .talkgenai-empty-state {
            text-align: center;
            padding: 4rem 2rem;
            margin: 2rem;
            background: white;
            border-radius: 12px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }

        .talkgenai-empty-icon {
            font-size: 4rem;
            color: #d1d5db;
            margin-bottom: 1rem;
        }

        .talkgenai-empty-state h2 {
            font-size: 1.5rem;
            color: #374151;
            margin: 0 0 0.5rem;
        }

        .talkgenai-empty-state p {
            color: #6b7280;
            margin: 0 0 2rem;
            max-width: 400px;
            margin-left: auto;
            margin-right: auto;
        }

        /* Pagination */
        .talkgenai-pagination {
            margin: 2rem;
            padding: 1.5rem;
            background: white;
            border-radius: 8px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }

        .talkgenai-pagination-wrapper {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .talkgenai-pagination-info {
            color: #6b7280;
            font-size: 0.875rem;
        }

        .talkgenai-pagination-links {
            display: flex;
            gap: 0.5rem;
        }

        .talkgenai-pagination-links a,
        .talkgenai-pagination-links span {
            padding: 0.5rem 0.75rem;
            border: 1px solid #d1d5db;
            border-radius: 4px;
            text-decoration: none;
            color: #374151;
            font-size: 0.875rem;
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }

        .talkgenai-pagination-links a:hover {
            background: #f3f4f6;
        }

        .talkgenai-pagination-links .current {
            background: #3b82f6;
            color: white;
            border-color: #3b82f6;
        }

        /* Responsive Design */
        @media (max-width: 1024px) {
            .talkgenai-apps-container[data-view="grid"] {
                grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            }
            
            .talkgenai-filters-row {
                grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            }
        }

        @media (max-width: 768px) {
            .talkgenai-apps-header {
                padding: 1.5rem 1rem 2rem;
            }
            
            .talkgenai-apps-header-content {
                flex-direction: column;
                gap: 1rem;
                text-align: center;
            }
            
            .talkgenai-apps-title {
                font-size: 2rem;
            }
            
            .talkgenai-apps-filters,
            .talkgenai-apps-controls,
            .talkgenai-apps-container,
            .talkgenai-pagination {
                margin: 0 1rem 1rem;
            }
            
            .talkgenai-apps-container[data-view="grid"] {
                grid-template-columns: 1fr;
            }
            
            .talkgenai-filters-row {
                grid-template-columns: 1fr;
            }
            
            .talkgenai-apps-controls {
                flex-direction: column;
                gap: 1rem;
            }
            
            .talkgenai-pagination-wrapper {
                flex-direction: column;
                gap: 1rem;
            }
            
            /* Mobile List View Adjustments */
.talkgenai-list-header {
                display: none !important;
            }
            
.talkgenai-app-card {
                flex-direction: column;
                align-items: stretch;
                padding: 1rem;
            }
            
.talkgenai-app-card-header {
                width: 100%;
                justify-content: space-between;
                margin-bottom: 0.5rem;
            }
            
.talkgenai-app-card-header .talkgenai-app-menu {
                display: block;
            }
            
.talkgenai-app-card-body {
                padding: 0;
                flex-direction: column;
                gap: 0.5rem;
            }
            
.talkgenai-app-content {
                order: 1;
            }
            
.talkgenai-app-icon {
                display: none;
            }
            
.talkgenai-app-meta {
                order: 2;
                min-width: auto;
                justify-content: space-between;
                flex-direction: row;
            }
            
.talkgenai-app-card-footer {
                width: 100%;
                margin-top: 0.5rem;
            }
        }
