/* AI Content Page Styles - Focused on Deal & Post Generation */

/* Color Variables to match branding */
:root {
    --primary-color: #266bc2; /* Link Blue */
    --secondary-color: #03193b; /* Dark Blue */
    --success-color: #02a189; /* OK Green */
    --danger-color: #f63838; /* Alert Red */
    --warning-color: #ebf20e; /* Highlight Green */
    --info-color: #17a2b8; /* Info Blue */
    --font-family: 'Archivo', sans-serif;
}

/* ========================================
   REDESIGNED STATISTICS CARDS - Modern & Sleek
   ======================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 2px solid transparent;
    border-bottom: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Icon Styling */
.stat-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-card-icon i {
    transition: transform 0.3s ease;
}

/* Content Styling */
.stat-card-content {
    flex: 1;
    min-width: 0;
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.stat-card-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    line-height: 1.3;
}

/* ============ COLOR VARIANTS ============ */

/* Primary Card (Blue) */
.stat-card-primary {
    border-bottom-color: var(--primary-color);
}

.stat-card-primary .stat-card-icon {
    background: linear-gradient(135deg, rgba(38, 107, 194, 0.1), rgba(38, 107, 194, 0.15));
    color: var(--primary-color);
}

.stat-card-primary .stat-card-value {
    color: var(--primary-color);
}

.stat-card-primary:hover {
    border-color: rgba(38, 107, 194, 0.2);
    border-bottom-color: var(--primary-color);
}

/* Success Card (Green) */
.stat-card-success {
    border-bottom-color: var(--success-color);
}

.stat-card-success .stat-card-icon {
    background: linear-gradient(135deg, rgba(2, 161, 137, 0.1), rgba(2, 161, 137, 0.15));
    color: var(--success-color);
}

.stat-card-success .stat-card-value {
    color: var(--success-color);
}

.stat-card-success:hover {
    border-color: rgba(2, 161, 137, 0.2);
    border-bottom-color: var(--success-color);
}

/* Info Card (Cyan) */
.stat-card-info {
    border-bottom-color: var(--info-color);
}

.stat-card-info .stat-card-icon {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.1), rgba(23, 162, 184, 0.15));
    color: var(--info-color);
}

.stat-card-info .stat-card-value {
    color: var(--info-color);
}

.stat-card-info:hover {
    border-color: rgba(23, 162, 184, 0.2);
    border-bottom-color: var(--info-color);
}

/* Warning Card (Yellow) */
.stat-card-warning {
    border-bottom-color: #ffc107;
}

.stat-card-warning .stat-card-icon {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.15));
    color: #f57f17;
}

.stat-card-warning .stat-card-value {
    color: #f57f17;
}

.stat-card-warning:hover {
    border-color: rgba(255, 193, 7, 0.2);
    border-bottom-color: #ffc107;
}

/* Merchant stat card (Google Merchant) */
.stat-card-merchant {
    border-bottom-color: #9c27b0;
}

.stat-card-merchant .stat-card-icon {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.1), rgba(156, 39, 176, 0.15));
    color: #9c27b0;
}

.stat-card-merchant .stat-card-value {
    color: #9c27b0;
}

.stat-card-merchant:hover {
    border-color: rgba(156, 39, 176, 0.2);
    border-bottom-color: #9c27b0;
}

/* ============ RESPONSIVE STATS CARDS ============ */

@media (max-width: 1199px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .stat-card-icon {
        width: 54px;
        height: 54px;
        font-size: 1.5rem;
    }
    
    .stat-card-value {
        font-size: 1.75rem;
    }
    
    .stat-card-label {
        font-size: 0.8125rem;
    }
}

@media (max-width: 991px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 767px) {
    .stats-grid {
        gap: 0.875rem;
    }
    
    .stat-card {
        padding: 1rem;
        gap: 0.875rem;
    }
    
    .stat-card-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .stat-card-value {
        font-size: 1.5rem;
    }
    
    .stat-card-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 575px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem 1.25rem;
    }
}

/* Base styling */
body {
    font-family: var(--font-family);
}

/* ========================================
   PRODUCT SEARCH BOX - Modern Design
   ======================================== */

.product-search-container {
    flex: 1;
    max-width: 400px;
    min-width: 280px;
}

/* Filter Toggle Button */
.filter-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-toggle-btn:hover {
    background-color: #f8f9fa;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.filter-toggle-btn i {
    transition: transform 0.3s ease;
}

.filter-toggle-btn.collapsed i {
    transform: rotate(90deg);
}

/* Collapsible Filters Container */
.filters-container-redesigned {
    max-height: 500px;
    overflow: visible; /* Changed from hidden to visible to allow dropdown to show */
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin 0.3s ease, padding 0.3s ease;
    opacity: 1;
    margin-bottom: 1rem;
    position: relative; /* Ensure proper stacking context */
}

.filters-container-redesigned.collapsed {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    pointer-events: none;
    overflow: hidden; /* Keep hidden when collapsed */
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: #6c757d;
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 2;
}

.product-search-input {
    width: 100%;
    padding: 0.625rem 2.75rem 0.625rem 2.75rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
    background: white;
    transition: all 0.2s ease;
    outline: none;
}

.product-search-input::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

.product-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(38, 107, 194, 0.1);
    background: #fafbfc;
}

.product-search-input:hover:not(:focus) {
    border-color: #adb5bd;
}

.search-clear-btn {
    position: absolute;
    right: 0.75rem;
    background: transparent;
    border: none;
    color: #6c757d;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.search-clear-btn:hover {
    background: #f8f9fa;
    color: var(--danger-color);
}

.search-clear-btn:active {
    transform: scale(0.95);
}

/* Search Box Responsive */
@media (max-width: 991px) {
    .product-search-container {
        max-width: 100%;
        width: 100%;
        order: -1;
    }
}

@media (max-width: 767px) {
    .product-search-input {
        padding: 0.5rem 2.5rem 0.5rem 2.5rem;
        font-size: 0.8125rem;
    }
    
    .search-icon {
        left: 0.875rem;
        font-size: 0.8125rem;
    }
    
    .search-clear-btn {
        right: 0.625rem;
        font-size: 0.75rem;
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 575px) {
    .product-search-container {
        min-width: 100%;
    }
    
    .product-search-input {
        padding: 0.5rem 2.25rem 0.5rem 2.5rem;
    }
    
    .product-search-input::placeholder {
        font-size: 0.75rem;
    }
}

/* Card styling */
.card {
    border-radius: 0.75rem;
    border: none;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: padding-bottom 0.3s ease;
    overflow: visible; /* Allow dropdowns to show outside */
    position: relative; /* Establish stacking context */
}

/* Aggressively reduce card header padding when filters are collapsed */
.card-header.filters-collapsed {
    padding-bottom: 0.5rem;
}

/* Reduce header margin when filters are collapsed */
.card-header.filters-collapsed #products-header {
    margin-bottom: 0.5rem !important;
}

/* Content Filter Buttons */
.btn-group[aria-label="Content filters"] .btn {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
    border-color: #6c757d;
    transition: all 0.2s ease;
    position: relative;
}

.btn-group[aria-label="Content filters"] .btn:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

.btn-group[aria-label="Content filters"] .btn-check:checked + .btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Loading state for filter buttons */
.btn-group[aria-label="Content filters"] .btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-group[aria-label="Content filters"] .btn.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border: 1.5px solid transparent;
    border-top: 1.5px solid currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* ========================================
   REDESIGNED FILTER LAYOUT - Proportional & Balanced
   Two-Row Design: Small filters on top, main filters below
   ======================================== */

.filters-container-redesigned {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* ============ TOP ROW - Compact Filters ============ */
.filter-row-primary {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    position: relative; /* Allow absolutely positioned children */
    overflow: visible; /* Don't clip the dropdown */
}

.view-mode-compact,
.google-merchant-compact,
.brand-filter-compact,
.discount-filter-compact,
.discount-sort-compact,
.price-sort-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-compact-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
}

.filter-compact-label i {
    color: var(--primary-color);
    font-size: 1rem;
}

.filter-buttons-inline {
    display: flex;
    gap: 0.5rem;
}

/* Brand Dropdown Styling - Modern Searchable */
.brand-search-wrapper {
    position: relative;
    min-width: 200px;
    max-width: 280px;
    z-index: 100; /* Ensure wrapper is above other elements */
}

.brand-search-input {
    width: 100%;
    padding: 0.5rem 2.5rem 0.5rem 0.875rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background: white;
    color: #495057;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.brand-search-input::placeholder {
    color: #6c757d;
    font-weight: 500;
}

.brand-search-input:hover {
    border-color: var(--primary-color);
    background: rgba(38, 107, 194, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(38, 107, 194, 0.12);
}

.brand-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(38, 107, 194, 0.15);
    background: white;
}

.brand-dropdown-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 0.75rem;
    pointer-events: none;
    transition: transform 0.3s ease, color 0.2s ease;
}

.brand-search-wrapper.active .brand-dropdown-icon {
    transform: translateY(-50%) rotate(180deg);
    color: var(--primary-color);
}

.brand-clear-btn {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #6c757d;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    z-index: 2;
}

.brand-clear-btn:hover {
    background: #f8f9fa;
    color: var(--danger-color);
}

.brand-clear-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* Dropdown Menu */
.brand-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    max-height: 320px;
    overflow-y: auto;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 10000; /* Very high z-index to ensure it's above everything */
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.brand-dropdown-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.brand-dropdown-option {
    padding: 0.625rem 0.875rem;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #f1f3f4;
}

.brand-dropdown-option:last-child {
    border-bottom: none;
}

.brand-dropdown-option:hover {
    background: rgba(38, 107, 194, 0.08);
    color: var(--primary-color);
    padding-left: 1rem;
}

.brand-dropdown-option.selected {
    background: linear-gradient(135deg, var(--primary-color), #1b5ca8);
    color: white;
    font-weight: 600;
}

.brand-dropdown-option.selected:hover {
    background: linear-gradient(135deg, #1b5ca8, var(--primary-color));
}

.brand-dropdown-option i {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Empty state when no brands match search */
.brand-dropdown-empty {
    padding: 1.5rem;
    text-align: center;
    color: #6c757d;
    font-size: 0.8125rem;
}

.brand-dropdown-empty i {
    font-size: 2rem;
    opacity: 0.3;
    margin-bottom: 0.5rem;
}

/* Scrollbar styling for dropdown */
.brand-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.brand-dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 8px 8px 0;
}

.brand-dropdown-menu::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.brand-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Compact Filter Buttons (View Mode & Google Merchant) */
.filter-btn-compact {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background: white;
    color: #495057;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    user-select: none;
    position: relative;
}

/* Filter Count Badge */
.filter-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #e9ecef;
    color: #495057;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 10px;
    margin-left: 0.375rem;
    transition: all 0.2s ease;
}

/* Active filter badge styling */
.btn-check:checked + .filter-btn-compact .filter-count-badge,
.btn-check:checked + .filter-btn-main .filter-count-badge {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Hover state for badges */
.filter-btn-compact:hover .filter-count-badge,
.filter-btn-main:hover .filter-count-badge {
    background: rgba(38, 107, 194, 0.15);
    color: var(--primary-color);
}

.filter-btn-compact:hover {
    border-color: var(--primary-color);
    background: rgba(38, 107, 194, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(38, 107, 194, 0.12);
}

.filter-btn-compact i {
    font-size: 0.875rem;
    transition: transform 0.2s ease;
}

.filter-btn-compact:hover i {
    transform: scale(1.1);
}

/* Active States for Compact Buttons */
.btn-check:checked + .filter-btn-compact {
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.btn-check:checked + .filter-btn-view {
    background: linear-gradient(135deg, var(--primary-color), #1b5ca8);
    color: white;
    border-color: var(--primary-color);
}

.btn-check:checked + .filter-btn-merchant {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
    border-color: #4caf50;
}

.btn-check:checked + .filter-btn-no-merchant {
    background: linear-gradient(135deg, #ff5722, #e64a19);
    color: white;
    border-color: #ff5722;
}

/* Discount Filter Buttons - Special Styling */
.btn-check:checked + .filter-btn-discount-high {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border-color: #ff6b6b;
}

.btn-check:checked + .filter-btn-discount-all {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    border-color: #6c757d;
}

/* Sort Filter Buttons - Special Styling */
.btn-check:checked + .filter-btn-sort {
    background: linear-gradient(135deg, var(--primary-color), #1b5ca8);
    color: white;
    border-color: var(--primary-color);
}

.filter-btn-sort:hover {
    border-color: var(--primary-color);
    background: rgba(38, 107, 194, 0.05);
}

/* Hover states for discount buttons */
.filter-btn-discount-high:hover {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.08);
}

.filter-btn-discount-all:hover {
    border-color: #6c757d;
    background: rgba(108, 117, 125, 0.08);
}

/* ============ HORIZONTAL DIVIDER ============ */
.filter-divider-horizontal {
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #dee2e6 20%, #dee2e6 80%, transparent);
    margin: 0.75rem 0 1rem 0;
}

/* ============ MIDDLE ROW - Google Merchant Filter ============ */
.filter-row-secondary {
    display: flex;
    align-items: center;
    gap: 1rem;
	flex-wrap: wrap;
}

/* ============ BOTTOM ROW - Main Content Filters ============ */
.filter-row-tertiary {
    display: flex;
    align-items: center;
    gap: 1rem;
	flex-wrap: wrap;
}

.filter-main-label {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.filter-main-label i {
    color: var(--primary-color);
    font-size: 1.125rem;
}

.filter-buttons-main {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
    flex: 1;
}

/* Main Filter Buttons (Content Status) */
.filter-btn-main {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.125rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background: white;
    color: #495057;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    user-select: none;
}

.filter-btn-main:hover {
    border-color: var(--primary-color);
    background: rgba(38, 107, 194, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(38, 107, 194, 0.15);
}

.filter-btn-main i {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.filter-btn-main:hover i {
    transform: scale(1.15) rotate(5deg);
}

/* Active States for Main Buttons */
.btn-check:checked + .filter-btn-main {
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}

.btn-check:checked + .filter-btn-all {
    background: linear-gradient(135deg, var(--primary-color), #1b5ca8);
    color: white;
    border-color: var(--primary-color);
}

.btn-check:checked + .filter-btn-none {
    background: linear-gradient(135deg, var(--danger-color), #d32f2f);
    color: white;
    border-color: var(--danger-color);
}

.btn-check:checked + .filter-btn-complete {
    background: linear-gradient(135deg, var(--success-color), #028a73);
    color: white;
    border-color: var(--success-color);
}

.btn-check:checked + .filter-btn-deals {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    border-color: #ff9800;
}

.btn-check:checked + .filter-btn-posts {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
    color: white;
    border-color: #9c27b0;
}

/* Loading State for All Filter Buttons */
.filter-btn-compact.loading,
.filter-btn-main.loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.filter-btn-compact.loading::after,
.filter-btn-main.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: filterSpin 0.6s linear infinite;
}

@keyframes filterSpin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* ========================================
   RESPONSIVE DESIGN - Proportional Layout
   ======================================== */

/* Large Desktop (1200px+) - Optimal spacing */
@media (min-width: 1200px) {
    .filter-row-primary {
        justify-content: flex-start;
    }
    
    .filter-row-secondary {
        justify-content: flex-start;
    }
    
    .filter-row-tertiary {
        justify-content: flex-start;
    }
}

/* Medium Desktop (992px - 1199px) */
@media (max-width: 1199px) {
    .filters-container-redesigned {
        padding: 1rem;
    }
    
    .filter-btn-compact {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .filter-btn-main {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
    
    .filter-row-primary {
        gap: 1.5rem;
    }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .filters-container-redesigned {
        padding: 1rem;
    }
    
    .filter-row-primary {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 0.875rem;
    }
    
    .view-mode-compact,
    .google-merchant-compact,
    .brand-filter-compact,
    .discount-filter-compact,
    .discount-sort-compact,
    .price-sort-compact {
        width: 100%;
    }
    
    .filter-divider-horizontal {
        margin: 0.625rem 0 0.875rem 0;
    }
    
    .filter-row-secondary {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .filter-row-tertiary {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .filter-buttons-main {
        width: 100%;
        gap: 0.5rem;
    }
    
    .filter-btn-main {
        flex: 1 1 calc(50% - 0.25rem);
        justify-content: center;
    }
}

/* Mobile (576px - 767px) */
@media (max-width: 767px) {
    .filters-container-redesigned {
        padding: 0.875rem;
    }
    
    .filter-compact-label,
    .filter-main-label {
        font-size: 0.8125rem;
    }
    
    .filter-compact-label i,
    .filter-main-label i {
        font-size: 0.875rem;
    }
    
    .filter-btn-compact {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        gap: 0.375rem;
    }
    
    .filter-btn-main {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        gap: 0.375rem;
        flex: 1 1 calc(50% - 0.25rem);
    }
    
    .filter-buttons-inline {
        gap: 0.375rem;
    }
    
    .filter-buttons-main {
        gap: 0.375rem;
    }
}

/* Extra Small Mobile (< 576px) */
@media (max-width: 575px) {
    .filters-container-redesigned {
        padding: 0.75rem;
    }
    
    .filter-row-primary {
        gap: 0.75rem;
    }
    
    .filter-compact-label,
    .filter-main-label {
        font-size: 0.75rem;
    }
    
    .view-mode-compact,
    .google-merchant-compact,
    .brand-filter-compact,
    .discount-filter-compact,
    .discount-sort-compact,
    .price-sort-compact {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .filter-buttons-inline,
    .filter-buttons-main {
        width: 100%;
    }
    
    .brand-dropdown {
        width: 100%;
        min-width: 100%;
    }
    
    .brand-search-wrapper {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }
    
    .filter-btn-compact,
    .filter-btn-main {
        flex: 1 1 100%;
        justify-content: center;
        padding: 0.5rem;
        font-size: 0.7rem;
    }
    
    .filter-divider-horizontal {
        margin: 0.5rem 0;
    }
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Button Styling */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #1b5ca8;
    border-color: #1b5ca8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Badges */
.badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    font-weight: 500;
}

/* Table Styles - Modern 2025 Design */
.table {
    margin-bottom: 0;
    white-space: nowrap;
    table-layout: fixed; /* Fixed layout for better control */
    width: 100%;
}

.table.table-sm td, 
.table.table-sm th {
    padding: 1rem 0.75rem;
    font-size: 0.875rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f3f4;
}

.table th {
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    background-color: #fafbfc;
    border-bottom: 2px solid #e9ecef;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table-hover tbody tr:hover {
    background-color: rgba(38, 107, 194, 0.03);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Checkbox Column */
.form-check-input {
    cursor: pointer;
    margin: 0;
}

.form-check {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    height: 100%;
}

/* Product Image in Table - Modern Design */
.product-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}

.product-img:hover {
    transform: scale(1.05);
}

/* Product Name in Table - Clean Typography */
.product-name {
    font-weight: 600;
    margin-bottom: 0.375rem;
    color: #1a1a1a;
    font-size: 0.9rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.store-name {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}

.discount-badge-small {
    font-size: 0.75rem;
    color: var(--success-color);
    font-weight: 700;
    background-color: rgba(2, 161, 137, 0.1);
    padding: 0.125rem 0.375rem;
    border-radius: 12px;
    display: inline-block;
}

/* Store Grouped View Styles - Sleek Design */
.store-group {
    border: 1px solid #e8eef3;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.store-group:hover {
    border-color: #d1dce6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.store-group.expanded {
    margin-bottom: 1.5rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.store-group-header {
    background: linear-gradient(135deg, var(--primary-color), #1b5ca8);
    color: white;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Elegant unified blue gradient for all stores */
.store-group-header {
    background: linear-gradient(135deg, #2563eb, #1e40af) !important;
}

/* Shine effect on hover */
.store-group-header::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 ease;
}

.store-group-header:hover::before {
    left: 100%;
}

.store-group-header:hover {
    transform: translateY(-1px);
}

.store-group-header .expand-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

.store-group.expanded .expand-icon {
    transform: rotate(180deg);
    opacity: 1;
}

.store-group-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
    letter-spacing: 0.01em;
}

.store-group-title i {
    font-size: 1.25rem;
    opacity: 0.95;
}

.store-group-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8125rem;
    flex-wrap: wrap;
    align-items: center;
}

.store-stat {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.store-stat:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.store-stat i {
    font-size: 0.875rem;
    opacity: 0.95;
}

.store-group-actions {
    display: flex;
    gap: 0.625rem;
    margin-left: 1.5rem;
}

.store-group-actions .btn {
    font-size: 0.8125rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.store-group-actions .btn:hover {
    background: white;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.store-group-actions .btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.store-group-actions .btn i {
    transition: transform 0.2s ease;
}

.store-group-actions .btn:hover i {
    transform: scale(1.1);
}

.store-bulk-deal-btn {
    position: relative;
    overflow: hidden;
}

.store-bulk-post-btn {
    position: relative;
    overflow: hidden;
}

.store-products-grid {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    padding: 1rem;
    background: #fafbfc;
}

.store-group.expanded .store-products-grid {
    display: grid;
}

/* Mini Product Cards for Store View */
.mini-product-card {
    background: white;
    border: 1px solid #f1f3f4;
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.mini-product-card:hover {
    border-color: #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.mini-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.mini-card-header .form-check-input {
    margin: 0;
}

.mini-status {
    font-size: 0.875rem;
}

.mini-card-body {
    display: flex;
    gap: 0.625rem;
    margin-bottom: 0.625rem;
}

.mini-product-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #f1f3f4;
    flex-shrink: 0;
}

.mini-product-info {
    flex: 1;
    min-width: 0;
}

.mini-product-title {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.3;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.mini-price {
    font-weight: 600;
    color: var(--primary-color);
}

.mini-discount {
    background: #ff9800;
    color: white;
    padding: 0.125rem 0.25rem;
    border-radius: 4px;
    font-weight: 500;
}

.mini-card-actions {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.btn-xs {
    padding: 0.25rem 0.375rem;
    font-size: 0.7rem;
    border-radius: 4px;
    flex: 1;
    min-width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-xs i {
    font-size: 0.65rem;
}

/* Mini card warning button styling */
.mini-card-actions .btn-xs.btn-outline-warning {
    border-color: var(--warning-color);
    color: #856404;
}

.mini-card-actions .btn-xs.btn-outline-warning:hover {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
    color: #212529;
}

/* Store container optimizations */
#stores-container {
    max-height: 70vh;
    overflow-y: auto;
    padding: 0.5rem;
}

/* Improve scrollbar appearance */
#stores-container::-webkit-scrollbar {
    width: 8px;
}

#stores-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#stores-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

#stores-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Store view summary badges */
#store-view-summary, #store-view-products {
    padding: 0.5rem 0.75rem;
    font-weight: 500;
}

/* Store View Responsive Design */
@media (max-width: 768px) {
    .store-group-header {
        padding: 0.875rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .store-group-title {
        width: 100%;
        justify-content: space-between;
    }
    
    .store-group-stats {
        gap: 1rem;
        font-size: 0.75rem;
        order: 3;
        width: 100%;
    }
    
    .store-group-actions {
        margin-left: 0;
        order: 2;
        gap: 0.375rem;
    }
    
    .store-group-actions .btn {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    .store-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 0.625rem;
        padding: 0.875rem;
    }
}

@media (max-width: 576px) {
    .store-group-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .store-group-actions {
        width: 100%;
    }
    
    .store-group-actions .btn {
        flex: 1;
    }
    
    .store-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .mini-product-card {
        padding: 0.625rem;
    }
    
    .mini-card-body {
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .mini-product-image {
        width: 40px;
        height: 40px;
    }
    
    .mini-product-title {
        font-size: 0.75rem;
    }
    
    .mini-product-meta {
        font-size: 0.7rem;
    }
    
    .btn-xs {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
}

/* Status Indicators - Modern Design */
.status-indicator {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.5rem;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.status-dot.used {
    background-color: var(--success-color);
}

.status-dot.not-used {
    background-color: var(--danger-color);
}

.status-dot.partial {
    background-color: #ffc107;
}

.status-text {
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-text.used {
    color: var(--success-color);
}

.status-text.not-used {
    color: var(--danger-color);
}

.status-text.partial {
    color: #ffc107;
}

/* Bulk Actions */
.bulk-actions {
    display: flex;
    align-items: center;
}

/* Action Buttons - Modern 2025 Design */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    align-items: center;
}

.action-buttons .btn {
    padding: 0.5rem 0.875rem;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1.5px solid;
    min-width: 85px;
    text-align: center;
}

.action-buttons .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.action-buttons .btn i {
    font-size: 0.8rem;
    margin-right: 0.375rem;
}

/* Modal Styles */
.modal-content {
    border-radius: 0.75rem;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.modal-header {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background-color: #f8f9fa;
}

.modal-footer {
    border-top: 1px solid rgba(0,0,0,0.05);
    background-color: #f8f9fa;
}

#modal-content {
    max-height: 70vh;
    overflow-y: auto;
    padding: 1.5rem;
}

/* Generated Content Styles */
.generated-content {
    padding: 1rem;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
}

/* AI Content Output Styling */
.ai-content-output {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    padding: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 400px;
    overflow-y: auto;
}

.ai-content-output h1, .ai-content-output h2, .ai-content-output h3,
.ai-content-output h4, .ai-content-output h5, .ai-content-output h6 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #000;
}

.ai-content-output p {
    margin-bottom: 0.75rem;
}

.ai-content-output ul, .ai-content-output ol {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
}

.ai-content-output strong {
    font-weight: 600;
}

.ai-content-output em {
    font-style: italic;
}

/* All headings black for better readability */
.generated-content h3, 
.generated-content h4, 
.generated-content h5, 
.generated-content h6 {
    color: #000;
    font-weight: 600;
}

.generated-content p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Deal Card */
.deal-card .card-body {
    padding: 1.25rem;
}

.deal-card h4 {
    color: #000;
    font-weight: 700;
}

/* Social Post Card */
.social-post-card {
    margin-bottom: 1rem;
}

.social-post-card .card-header {
    font-weight: 600;
}

/* Loading Animation */
.spinner-border {
    width: 1.75rem;
    height: 1.75rem;
}

/* Pagination */
.pagination {
    margin-bottom: 0;
}

.page-link {
    color: var(--primary-color);
    border-radius: 0.25rem;
    margin: 0 0.125rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .product-name {
        -webkit-line-clamp: 1;
        line-clamp: 1;
        max-height: 1.2em;
    }
}

/* Products Grid Layout - Sleek & Compact */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    padding: 0;
}

.product-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f3f4;
    overflow: hidden;
    transition: all 0.2s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #e0e0e0;
}

.product-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem 0.5rem;
}

.product-checkbox-wrapper {
    display: flex;
    align-items: center;
}

.product-checkbox-wrapper .form-check-input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.product-image-wrapper {
    position: relative;
    padding: 0 1rem;
    margin-bottom: 0.75rem;
}

.product-card-image {
    width: 100%;
    height: 140px;
    object-fit: contain;
    background-color: #fafbfc;
    border-radius: 8px;
    border: 1px solid #f1f3f4;
}

.discount-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, var(--success-color), #028a73);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(2, 161, 137, 0.3);
}

.product-card-content {
    padding: 0 1rem 0.75rem;
}

.product-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.375rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 2.4em;
}

.product-card-store {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.product-card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0;
}

.product-card-actions {
    padding: 0.75rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.product-card-actions .btn {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    width: 100%;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.product-card-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Google Merchant button specific styling */
.product-card-actions .btn-outline-warning {
    border-color: var(--warning-color);
    color: #856404;
    background-color: transparent;
}

.product-card-actions .btn-outline-warning:hover {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
    color: #212529;
}

.product-card-actions .btn-warning {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
    color: #212529;
}

.product-card-actions .btn-warning:hover {
    background-color: #c7cc0b;
    border-color: #c7cc0b;
    color: #212529;
}

/* Remove bottom margin from last button */
.product-card-actions .btn:last-child {
    margin-bottom: 0;
}

/* Status Badges - Sleek Design */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.status-badge.status-complete {
    background-color: rgba(2, 161, 137, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(2, 161, 137, 0.2);
}

.status-badge.status-partial {
    background-color: rgba(255, 193, 7, 0.1);
    color: #b8860b;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.status-badge.status-none {
    background-color: rgba(248, 56, 56, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(248, 56, 56, 0.2);
}

/* Responsive Design - Sleek */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 0.875rem;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 0.75rem;
    }
    
    .product-card-header {
        padding: 0.625rem 0.875rem 0.375rem;
    }
    
    .product-image-wrapper {
        padding: 0 0.875rem;
        margin-bottom: 0.625rem;
    }
    
    .product-card-image {
        height: 120px;
    }
    
    .product-card-content {
        padding: 0 0.875rem 0.625rem;
    }
    
    .product-card-title {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
        height: 2.2em;
    }
    
    .product-card-store {
        font-size: 0.75rem;
        margin-bottom: 0.375rem;
    }
    
    .product-card-price {
        font-size: 1rem;
    }
    
    .product-card-actions {
        padding: 0.625rem 0.875rem;
        flex-direction: column;
        gap: 0.375rem;
    }
    
    .product-card-actions .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 0.625rem;
    }
    
    .product-card-image {
        height: 100px;
    }
    
    .discount-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }
}

/* Legacy responsive styles for modal */
@media (max-width: 768px) {
    #modal-content {
        max-height: 60vh;
        padding: 1rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
}

@media (max-width: 576px) {
    .generated-content {
        padding: 0.75rem;
    }
    
    .btn-sm {
        padding: 0.25rem 0.4rem;
        font-size: 0.7rem;
    }
    
    .product-img {
        width: 32px;
        height: 32px;
    }
    
    .product-name {
        font-size: 0.8rem;
    }
    
    .store-name {
        font-size: 0.7rem;
    }
    
    .status-text {
        font-size: 0.7rem;
    }
    
    .action-buttons .btn {
        padding: 0.2rem 0.35rem;
        font-size: 0.65rem;
    }
    
    .action-buttons .btn i {
        margin-right: 0;
    }
}

/* ============================================================================
   BULK ACTIONS ROW - Delete Products Feature
   ============================================================================ */

.filter-row-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border-radius: 8px;
    border: 1px solid rgba(220, 53, 69, 0.2);
    flex-wrap: wrap;
}

.bulk-select-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bulk-select-wrapper .form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
}

.bulk-select-wrapper .form-check-label {
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    user-select: none;
}

.bulk-selection-info {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.bulk-selection-info i {
    font-size: 0.9rem;
}

.bulk-action-buttons {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.bulk-action-buttons .btn {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

#bulk-delete-btn {
    transition: all 0.2s ease;
}

#bulk-delete-btn:not(:disabled):hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

#bulk-delete-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================================================
   DELETE BUTTON ON PRODUCT CARDS
   ============================================================================ */

.btn-delete-product {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 6px;
    color: #dc3545;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 10;
}

.product-card:hover .btn-delete-product {
    opacity: 1;
}

.btn-delete-product:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
}

.btn-delete-product i {
    font-size: 0.75rem;
}

/* Product card header needs relative positioning for delete button */
.product-card-header {
    position: relative;
}

/* ============================================================================
   DELETE BUTTON ON MINI PRODUCT CARDS (Store View)
   ============================================================================ */

.btn-delete-mini {
    width: 20px;
    height: 20px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 4px;
    color: #dc3545;
    opacity: 0;
    transition: all 0.2s ease;
    margin-left: auto;
}

.mini-product-card:hover .btn-delete-mini {
    opacity: 1;
}

.btn-delete-mini:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
    transform: scale(1.1);
}

.btn-delete-mini i {
    font-size: 0.6rem;
}

/* Mini card header layout adjustment */
.mini-card-header {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* ============================================================================
   RESPONSIVE ADJUSTMENTS FOR DELETE FEATURES
   ============================================================================ */

@media (max-width: 768px) {
    .filter-row-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .bulk-action-buttons {
        margin-left: 0;
        width: 100%;
    }
    
    #bulk-delete-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Always show delete button on mobile (no hover) */
    .btn-delete-product,
    .btn-delete-mini {
        opacity: 0.7;
    }
}

@media (max-width: 576px) {
    .bulk-selection-info {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
    
    .btn-delete-product {
        width: 24px;
        height: 24px;
    }
    
    .btn-delete-product i {
        font-size: 0.65rem;
    }
} 