/* ============================================
   ADMIN BUSINESS CSS - COMPLETE VERSION
   Fixed: Better legibility for badges and selection counts
   ============================================ */

/* CSS Variables */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --dark: #1f2937;
    --gray: #6b7280;
    --light: #f3f4f6;
}

body.dark-mode {
    --bg-card: #1e293b;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border: #334155;
}

/* ============================================
   STATS CARDS
   ============================================ */
.business-stats-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.business-stat-card {
    background: var(--bg-card, white);
    border-radius: 16px;
    padding:0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border, #e5e7eb);
    transition: all 0.3s ease;
}

.business-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.business-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.business-stat-icon.total { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: white; }
.business-stat-icon.active { background: linear-gradient(135deg, #10b981, #34d399); color: white; }
.business-stat-icon.pending { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: white; }
.business-stat-icon.verified { background: linear-gradient(135deg, #3b82f6, #60a5fa); color: white; }
.business-stat-icon.featured { background: linear-gradient(135deg, #ec4899, #f472b6); color: white; }
.business-stat-icon.engagement { background: linear-gradient(135deg, #8b5cf6, #a78bfa); color: white; }

.business-stat-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary, #111827);
}

.business-stat-info p {
    font-size: 0.7rem;
    margin: 0;
    color: var(--text-muted, #6b7280);
}

.business-stat-info small {
    font-size: 0.6rem;
    color: var(--text-muted, #6b7280);
}

/* ============================================
   FILTERS BAR
   ============================================ */
.business-filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-card, white);
    border-radius: 16px;
    border: 1px solid var(--border, #e5e7eb);
}

.filter-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border, #e5e7eb);
    background: var(--bg-primary, white);
    color: var(--text-primary, #111827);
    font-size: 0.85rem;
    cursor: pointer;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-primary, white);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 40px;
    padding: 0.4rem 1rem;
    gap: 0.5rem;
    min-width: 250px;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    color: var(--text-primary, #111827);
    width: 100%;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.view-toggle-btn {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border, #e5e7eb);
    background: var(--bg-primary, white);
    color: var(--text-secondary, #4b5563);
    cursor: pointer;
    transition: all 0.2s;
}

.view-toggle-btn.active {
    background: var(--primary, #6366f1);
    color: white;
    border-color: var(--primary, #6366f1);
}

.btn-outline {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border, #e5e7eb);
    background: transparent;
    color: var(--primary, #6366f1);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: var(--primary, #6366f1);
    color: white;
    border-color: var(--primary, #6366f1);
}

/* ============================================
   SELECTION TOOLBAR & BULK ACTIONS
   ============================================ */
.selection-toolbar {
    background: var(--bg-card, white);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.selection-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ============================================
   BULK DROPDOWNS - Unified Design
   ============================================ */
.bulk-dropdown {
    position: relative;
    display: inline-block;
}

.bulk-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.bulk-dropdown-btn i:last-child {
    font-size: 0.6rem;
    transition: transform 0.2s;
}

.bulk-dropdown:hover .bulk-dropdown-btn i:last-child {
    transform: rotate(180deg);
}

.bulk-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
}

.bulk-dropdown:hover .bulk-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.bulk-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.bulk-dropdown-menu a:first-child { border-radius: 8px 8px 0 0; }
.bulk-dropdown-menu a:last-child { border-radius: 0 0 8px 8px; }
.bulk-dropdown-menu a i { width: 18px; }

.bulk-dropdown-menu a:hover { background: var(--bg-input); }

/* Bulk action buttons styling */
.bulk-action-btn {
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* Bulk Action Button Colors - Light backgrounds for legibility */
.bulk-action-btn.delete { 
    background: #fee2e2 !important; 
    color: #991b1b !important; 
}
.bulk-action-btn.delete:hover { 
    background: #ef4444 !important; 
    color: white !important; 
}

.bulk-action-btn.clear { 
    background: #f3f4f6 !important; 
    color: #4b5563 !important; 
}
.bulk-action-btn.clear:hover { 
    background: #e5e7eb !important; 
    color: #1f2937 !important; 
}

.bulk-dropdown .bulk-action-btn {
    background: #f3f4f6 !important;
    color: #374151 !important;
}

.bulk-dropdown .bulk-action-btn:hover {
    background: #e5e7eb !important;
}

/* Dark mode for bulk action buttons */
body.dark-mode .bulk-action-btn.delete { 
    background: rgba(239, 68, 68, 0.15) !important; 
    color: #f87171 !important; 
}
body.dark-mode .bulk-action-btn.delete:hover { 
    background: #ef4444 !important; 
    color: white !important; 
}

body.dark-mode .bulk-action-btn.clear { 
    background: #1e293b !important; 
    color: #94a3b8 !important; 
}
body.dark-mode .bulk-action-btn.clear:hover { 
    background: #334155 !important; 
    color: #f1f5f9 !important; 
}

body.dark-mode .bulk-dropdown .bulk-action-btn {
    background: #1e293b !important;
    color: #cbd5e1 !important;
}

body.dark-mode .bulk-dropdown .bulk-action-btn:hover {
    background: #334155 !important;
}

/* Selection Dropdown specific */
.selection-buttons .bulk-dropdown .bulk-dropdown-btn {
    background: #6366f1 !important;
    color: white !important;
}

.selection-buttons .bulk-dropdown .bulk-dropdown-btn:hover {
    background: #4f46e5 !important;
}

/* Dark mode selection dropdown */
body.dark-mode .selection-buttons .bulk-dropdown .bulk-dropdown-btn {
    background: #4f46e5 !important;
    color: white !important;
}

body.dark-mode .selection-buttons .bulk-dropdown .bulk-dropdown-btn:hover {
    background: #4338ca !important;
}

/* Selection Count Styles - Light friendly backgrounds */
.selection-count {
    font-size: 0.75rem;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.selection-count i {
    font-size: 0.7rem;
}

/* When NO businesses selected - light gray background, dark text */
.selection-count.zero {
    background: #e5e7eb !important;
    color: #4b5563 !important;
    border: 1px solid #d1d5db;
}

/* When businesses ARE selected - light green background, dark green text */
.selection-count:not(.zero) {
    background: #d1fae5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0;
}

/* Dark mode selection counts */
body.dark-mode .selection-count.zero {
    background: #334155 !important;
    color: #cbd5e1 !important;
    border: 1px solid #475569;
}

body.dark-mode .selection-count:not(.zero) {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ============================================
   BUSINESS CARDS
   ============================================ */
.business-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
}

.business-card {
    background: var(--bg-card, white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border, #e5e7eb);
    transition: all 0.3s ease;
    position: relative;
}

.business-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

/* Package Badge */
.package-corner-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
}

.package-corner-badge.basic { background: #64748b; }
.package-corner-badge.premium { background: #6366f1; }
.package-corner-badge.elite { background: #8b5cf6; }
.package-corner-badge.featured { background: #f59e0b; }

/* Business Select Checkbox */
.business-select {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
}

.business-select input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Card Header */
.business-card-header {
    padding: 1rem 1rem 1rem 2rem;
    background: var(--bg-primary, #f9fafb);
    border-bottom: 1px solid var(--border, #e5e7eb);
    display: flex;
    gap: 1rem;
}

.business-logo {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-secondary, #f3f4f6);
    border: 1px solid var(--border, #e5e7eb);
    flex-shrink: 0;
}

.business-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-muted, #6b7280);
}

.business-info {
    flex: 1;
}

.business-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: var(--text-primary, #111827);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.business-id {
    font-size: 0.7rem;
    background: var(--bg-secondary, #f3f4f6);
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    color: var(--text-muted, #6b7280);
}

.business-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.7rem;
    color: var(--text-muted, #6b7280);
}

.business-tags i {
    width: 14px;
    color: var(--primary, #6366f1);
}

/* Contact Info inside card header */
.business-contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: var(--text-secondary, #4b5563);
}

.contact-item i {
    width: 16px;
    color: var(--primary, #6366f1);
}

/* Action Dropdowns */
.business-action-dropdowns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.action-dropdown {
    position: relative;
    display: inline-block;
}

.action-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.75rem;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.action-dropdown-btn i:last-child {
    font-size: 0.6rem;
    margin-left: 0.25rem;
    transition: transform 0.2s;
}

.action-dropdown:hover .action-dropdown-btn i:last-child {
    transform: rotate(180deg);
}

.action-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 140px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
}

.action-dropdown:hover .action-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.action-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}

.action-dropdown-menu a:first-child { border-radius: 8px 8px 0 0; }
.action-dropdown-menu a:last-child { border-radius: 0 0 8px 8px; }
.action-dropdown-menu a i { width: 16px; }

/* Action Dropdown Button Status Colors - Light backgrounds */
.action-dropdown-btn.status-active {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #0a5c3e !important;
}
.action-dropdown-btn.status-pending {
    background: rgba(245, 158, 11, 0.12) !important;
    color: #8b5c00 !important;
}
.action-dropdown-btn.status-suspended {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #9b1c1c !important;
}

/* Dark mode for action dropdown buttons */
body.dark-mode .action-dropdown-btn.status-active {
    background: rgba(16, 185, 129, 0.2) !important;
    color: #34d399 !important;
}
body.dark-mode .action-dropdown-btn.status-pending {
    background: rgba(245, 158, 11, 0.2) !important;
    color: #fbbf24 !important;
}
body.dark-mode .action-dropdown-btn.status-suspended {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #f87171 !important;
}

/* Verification button states */
.action-dropdown-btn.verification-verified {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #0a5c3e !important;
}
.action-dropdown-btn.verification-pending {
    background: rgba(245, 158, 11, 0.12) !important;
    color: #8b5c00 !important;
}
.action-dropdown-btn.verification-rejected {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #9b1c1c !important;
}

body.dark-mode .action-dropdown-btn.verification-verified {
    background: rgba(16, 185, 129, 0.2) !important;
    color: #34d399 !important;
}
body.dark-mode .action-dropdown-btn.verification-pending {
    background: rgba(245, 158, 11, 0.2) !important;
    color: #fbbf24 !important;
}
body.dark-mode .action-dropdown-btn.verification-rejected {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #f87171 !important;
}

/* Featured button states */
.featured-active {
    background: rgba(245, 158, 11, 0.12) !important;
    color: #8b5c00 !important;
}
.featured-inactive {
    background: rgba(100, 116, 139, 0.1) !important;
    color: #475569 !important;
}

body.dark-mode .featured-active {
    background: rgba(245, 158, 11, 0.2) !important;
    color: #fbbf24 !important;
}
body.dark-mode .featured-inactive {
    background: rgba(100, 116, 139, 0.2) !important;
    color: #94a3b8 !important;
}

/* Individual action dropdown menu options */
.action-dropdown-menu .activate-option { color: #10b981; }
.action-dropdown-menu .activate-option:hover { background: rgba(16, 185, 129, 0.1); }
.action-dropdown-menu .suspend-option { color: #f59e0b; }
.action-dropdown-menu .suspend-option:hover { background: rgba(245, 158, 11, 0.1); }
.action-dropdown-menu .pending-option { color: #3b82f6; }
.action-dropdown-menu .pending-option:hover { background: rgba(59, 130, 246, 0.1); }

.action-dropdown-menu .verify-option { color: #10b981; }
.action-dropdown-menu .verify-option:hover { background: rgba(16, 185, 129, 0.1); }
.action-dropdown-menu .unverify-option { color: #f59e0b; }
.action-dropdown-menu .unverify-option:hover { background: rgba(245, 158, 11, 0.1); }
.action-dropdown-menu .reject-option { color: #ef4444; }
.action-dropdown-menu .reject-option:hover { background: rgba(239, 68, 68, 0.1); }

.action-dropdown-menu .feature-option { color: #f59e0b; }
.action-dropdown-menu .feature-option:hover { background: rgba(245, 158, 11, 0.1); }
.action-dropdown-menu .unfeature-option { color: #64748b; }
.action-dropdown-menu .unfeature-option:hover { background: rgba(100, 116, 139, 0.1); }

/* ============================================
   BADGE STYLES (Non-clickable)
   ============================================ */
.status-badge, .verification-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    cursor: default;
    pointer-events: none;
}

/* Status badges - Light backgrounds with dark text for better legibility */
.status-active { 
    background: rgba(16, 185, 129, 0.12) !important; 
    color: #0a5c3e !important; 
}
.status-pending { 
    background: rgba(245, 158, 11, 0.12) !important; 
    color: #8b5c00 !important; 
}
.status-suspended { 
    background: rgba(239, 68, 68, 0.12) !important; 
    color: #9b1c1c !important; 
}

/* Verification badges */
.verification-verified { 
    background: rgba(16, 185, 129, 0.12) !important; 
    color: #0a5c3e !important; 
}
.verification-pending { 
    background: rgba(245, 158, 11, 0.12) !important; 
    color: #8b5c00 !important; 
}
.verification-rejected { 
    background: rgba(239, 68, 68, 0.12) !important; 
    color: #9b1c1c !important; 
}

/* Dark mode adjustments */
body.dark-mode .status-active { 
    background: rgba(16, 185, 129, 0.2) !important; 
    color: #34d399 !important; 
}
body.dark-mode .status-pending { 
    background: rgba(245, 158, 11, 0.2) !important; 
    color: #fbbf24 !important; 
}
body.dark-mode .status-suspended { 
    background: rgba(239, 68, 68, 0.2) !important; 
    color: #f87171 !important; 
}
body.dark-mode .verification-verified { 
    background: rgba(16, 185, 129, 0.2) !important; 
    color: #34d399 !important; 
}
body.dark-mode .verification-pending { 
    background: rgba(245, 158, 11, 0.2) !important; 
    color: #fbbf24 !important; 
}
body.dark-mode .verification-rejected { 
    background: rgba(239, 68, 68, 0.2) !important; 
    color: #f87171 !important; 
}

/* Stats Row */
.business-stats-row {
    display: flex;
    justify-content: space-around;
    padding: 0.75rem 1.25rem;
    background: var(--bg-primary, #f9fafb);
    border-bottom: 1px solid var(--border, #e5e7eb);
}

.business-stat-item {
    text-align: center;
}

.business-stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary, #111827);
}

.business-stat-label {
    font-size: 0.6rem;
    color: var(--text-muted, #6b7280);
}

/* Action & Contact Buttons */
.business-actions {
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border, #e5e7eb);
}

.action-group, .contact-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.business-action-btn {
    padding: 0.35rem 0.7rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.business-action-btn.view { background: rgba(99, 102, 241, 0.1); color: #6366f1; }
.business-action-btn.view:hover { background: #6366f1; color: white; }
.business-action-btn.delete { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.business-action-btn.delete:hover { background: #ef4444; color: white; }

.contact-action-btn {
    padding: 0.35rem 0.7rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.contact-action-btn.sms { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.contact-action-btn.sms:hover { background: #3b82f6; color: white; }
.contact-action-btn.email { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.contact-action-btn.email:hover { background: #8b5cf6; color: white; }
.contact-action-btn.whatsapp { background: rgba(37, 211, 102, 0.1); color: #25d366; }
.contact-action-btn.whatsapp:hover { background: #25d366; color: white; }

/* ============================================
   LISTINGS SECTION
   ============================================ */
.business-listings-section {
    border-top: 1px solid var(--border, #e5e7eb);
}

.listings-header {
    padding: 0.75rem 1.25rem;
    background: var(--bg-secondary, #f3f4f6);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary, #111827);
    transition: background 0.2s;
}

.listings-header:hover {
    background: var(--bg-primary, #f9fafb);
}

.listings-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary, #6366f1);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    margin-left: 0.5rem;
    min-width: 24px;
}

.listings-content {
    padding: 1rem 1.25rem;
    background: var(--bg-primary, #f9fafb);
    border-top: 1px solid var(--border, #e5e7eb);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.listings-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
}

.listing-mini-card {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem;
    background: var(--bg-card, white);
    border-radius: 12px;
    border: 1px solid var(--border, #e5e7eb);
}

.listing-mini-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.listing-mini-info {
    flex: 1;
}

.listing-mini-info h5 {
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: var(--text-primary, #111827);
}

.listing-mini-price {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary, #6366f1);
    margin: 0;
}

/* ============================================
   LIST VIEW (TABLE)
   ============================================ */
.business-list-view {
    background: var(--bg-card, white);
    border-radius: 20px;
    border: 1px solid var(--border, #e5e7eb);
    overflow-x: auto;
}

.business-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.business-table th,
.business-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border, #e5e7eb);
}

.business-table th {
    background: var(--bg-primary, #f9fafb);
    font-weight: 600;
    color: var(--text-primary, #111827);
    font-size: 0.85rem;
}

.business-table td {
    color: var(--text-secondary, #4b5563);
    font-size: 0.85rem;
}

.business-table tr:hover td {
    background: var(--bg-primary, #f9fafb);
}

.business-info-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.business-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.business-name-info .name {
    font-weight: 600;
    color: var(--text-primary, #111827);
}

.joined-date {
    font-size: 0.7rem;
    color: var(--text-muted, #6b7280);
    margin-top: 0.25rem;
}

.analytics-cell {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.analytics-item {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.analytics-item i {
    width: 18px;
    color: var(--primary, #6366f1);
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ============================================
   BULK LOADING OVERLAY
   ============================================ */
.bulk-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 20px 35px -10px rgba(0,0,0,0.2);
}

.loading-spinner p {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ============================================
   MODAL STYLES
   ============================================ */
.modal-header.bg-danger,
.modal-header.bg-primary,
.modal-header.bg-info,
.modal-header.bg-warning {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 16px 16px 0 0;
}

.modal-header.bg-danger { background: linear-gradient(135deg, #ef4444, #dc2626); }
.modal-header.bg-warning { background: linear-gradient(135deg, #f59e0b, #d97706); }
.modal-header.bg-info { background: linear-gradient(135deg, #3b82f6, #2563eb); }

.modal-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.modal-subtitle {
    font-size: 0.75rem;
    opacity: 0.9;
    margin: 0.25rem 0 0;
}

.modal-header .btn-close-white {
    filter: brightness(0) invert(1);
}

/* Business Detail Grid */
.business-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.detail-section {
    background: var(--bg-secondary, #f9fafb);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid var(--border, #e5e7eb);
}

.detail-section.full-width {
    grid-column: span 2;
}

.detail-section h5 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary, #111827);
    border-bottom: 1px solid var(--border, #e5e7eb);
    padding-bottom: 0.5rem;
}

.detail-section h5 i {
    color: var(--primary, #6366f1);
    margin-right: 0.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border, #e5e7eb);
}

.detail-row:last-child { border-bottom: none; }
.detail-label { font-weight: 500; color: var(--text-secondary, #4b5563); font-size: 0.8rem; }

/* Contact & Hours Grid */
.contact-grid, .hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.contact-card, .hours-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-card, white);
    border-radius: 10px;
    border: 1px solid var(--border, #e5e7eb);
}

.contact-card i, .hours-card i {
    width: 32px;
    height: 32px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary, #6366f1);
}

.contact-card strong, .hours-card strong {
    font-size: 0.7rem;
    color: var(--text-muted, #6b7280);
    display: block;
}

.contact-card p, .hours-card p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-primary, #111827);
}

.description-text {
    line-height: 1.6;
    color: var(--text-secondary, #4b5563);
    font-size: 0.85rem;
}

/* Delete Warning */
.delete-warning {
    text-align: center;
    padding: 1rem;
}

.delete-warning > i {
    font-size: 3rem;
    color: #ef4444;
    margin-bottom: 1rem;
}

.warning-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    padding: 0.75rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ef4444;
}

.delete-list {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.delete-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border, #e5e7eb);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.delete-list li i { width: 20px; color: #ef4444; }

/* Verification Info */
.verification-info {
    background: var(--bg-secondary, #f9fafb);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border, #e5e7eb);
}

.info-row:last-child { border-bottom: none; }
.info-row i { width: 20px; color: var(--primary, #6366f1); }

.document-preview { margin: 1rem 0; }
.document-preview label { font-weight: 600; margin-bottom: 0.5rem; display: block; }
.document-actions { display: flex; gap: 0.5rem; }

.verification-note {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 10px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.8rem;
}

/* Form Groups */
.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}
.form-group label i { color: var(--primary, #6366f1); margin-right: 0.5rem; }

.form-control {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 8px;
    background: var(--bg-card, white);
    color: var(--text-primary, #111827);
    font-size: 0.85rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary, #6366f1);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

textarea.form-control { resize: vertical; }
.char-counter {
    text-align: right;
    font-size: 0.7rem;
    color: var(--text-muted, #6b7280);
    margin-top: 0.25rem;
}

/* Button Styles */
.btn-secondary {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: var(--bg-secondary, #f3f4f6);
    border: 1px solid var(--border, #e5e7eb);
    color: var(--text-primary, #111827);
    cursor: pointer;
}

.btn-primary {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: var(--primary, #6366f1);
    border: none;
    color: white;
    cursor: pointer;
}
.btn-primary:hover { background: var(--primary-dark, #4f46e5); }

.btn-danger {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: #ef4444;
    border: none;
    color: white;
    cursor: pointer;
}
.btn-danger:hover { background: #dc2626; }

.btn-success {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: #10b981;
    border: none;
    color: white;
    cursor: pointer;
}
.btn-success:hover { background: #059669; }

/* Featured & Document Badges */
.featured-badge, .doc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
}

.featured-badge {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
}

.doc-badge {
    background: rgba(59, 130, 246, 0.15);
    color: #1e40af;
    cursor: pointer;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .business-stats-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 992px) {
    .business-detail-grid { grid-template-columns: 1fr; }
    .detail-section.full-width { grid-column: span 1; }
    .contact-grid, .hours-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .business-stats-grid { grid-template-columns: repeat(4, 1fr); }
    .business-filters-bar { flex-direction: column; align-items: stretch; }
    .filter-group { justify-content: space-between; }
    .search-box { width: 100%; }
    
    .business-cards-grid { grid-template-columns: 1fr; }
    .business-card-header { flex-direction: column; align-items: center; text-align: center; }
    .business-tags, .business-action-dropdowns { justify-content: center; }
    .business-actions { flex-direction: column; }
    .action-group, .contact-group { justify-content: center; }
    
    .selection-toolbar { flex-direction: column; align-items: stretch; }
    .selection-buttons { justify-content: center; }
    .bulk-actions-buttons { justify-content: center; }
    
    .modal-footer { flex-wrap: wrap; }
    .modal-footer button { width: 100%; }
    
    .action-dropdown-menu { left: auto; right: 0; }
    .bulk-dropdown-menu { left: auto; right: 0; }
}

@media (max-width: 480px) {
    .business-stats-grid { grid-template-columns: 1fr; }
    .business-list-view { overflow-x: auto; }
    .business-table { min-width: 800px; }
}

/* Dark Mode Support for additional elements */
body.dark-mode .action-dropdown-menu,
body.dark-mode .bulk-dropdown-menu {
    background: var(--bg-card);
    border-color: var(--border);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.3);
}

body.dark-mode .action-dropdown-menu a:hover,
body.dark-mode .bulk-dropdown-menu a:hover {
    background: var(--bg-input);
}

body.dark-mode .alert-success {
    background: rgba(16, 185, 129, 0.2);
}

body.dark-mode .alert-danger {
    background: rgba(239, 68, 68, 0.2);
}