/**
 * AI Product Content & Image Generator - Admin Styles
 * Following the design system from UX guidelines
 */

/* CSS Variables - Design System */
:root {
  /* Primary Brand Colors */
  --apcig-primary-blue: #2563EB;
  --apcig-success-green: #10B981;
  --apcig-warning-amber: #F59E0B;
  --apcig-error-red: #EF4444;
  --apcig-neutral-gray: #6B7280;

  /* Background Colors */
  --apcig-bg-main: #F9FAFB;
  --apcig-bg-card: #FFFFFF;
  --apcig-bg-sidebar: #F3F4F6;
  --apcig-bg-input: #FFFFFF;

  /* Typography Scale */
  --apcig-text-h1: 24px;
  --apcig-text-h2: 20px;
  --apcig-text-h3: 18px;
  --apcig-text-body-lg: 16px;
  --apcig-text-body-md: 14px;
  --apcig-text-body-sm: 12px;

  /* Spacing System */
  --apcig-space-xxs: 4px;
  --apcig-space-xs: 8px;
  --apcig-space-sm: 12px;
  --apcig-space-md: 16px;
  --apcig-space-lg: 24px;
  --apcig-space-xl: 32px;
  --apcig-space-xxl: 48px;

  /* Border Radius */
  --apcig-radius-sm: 4px;
  --apcig-radius-md: 8px;
  --apcig-radius-lg: 12px;

  /* Shadows */
  --apcig-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --apcig-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --apcig-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Main Layout */
.apcig-admin-wrap {
  background-color: var(--apcig-bg-main);
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.apcig-header {
  background: var(--apcig-bg-card);
  border-bottom: 1px solid #E5E7EB;
  padding: var(--apcig-space-md) var(--apcig-space-lg);
  box-shadow: var(--apcig-shadow-sm);
}

.apcig-header h1 {
  font-size: var(--apcig-text-h1);
  font-weight: 700;
  color: var(--apcig-primary-blue);
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--apcig-space-sm);
}

.apcig-header .dashicons {
  font-size: 28px;
}

/* Layout Grid */
.apcig-layout {
  display: flex;
  min-height: calc(100vh - 60px);
}

.apcig-sidebar {
  width: 280px;
  background: var(--apcig-bg-sidebar);
  border-right: 1px solid #E5E7EB;
  padding: var(--apcig-space-lg);
}

.apcig-main-content {
  flex: 1;
  padding: var(--apcig-space-lg);
  overflow-x: auto;
}

/* Sidebar Navigation */
.apcig-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.apcig-nav li {
  margin-bottom: var(--apcig-space-xs);
}

.apcig-nav a {
  display: flex;
  align-items: center;
  padding: var(--apcig-space-sm) var(--apcig-space-md);
  color: var(--apcig-neutral-gray);
  text-decoration: none;
  border-radius: var(--apcig-radius-md);
  font-size: var(--apcig-text-body-md);
  font-weight: 500;
  transition: all 0.2s ease;
  gap: var(--apcig-space-sm);
}

.apcig-nav a:hover {
  background: var(--apcig-bg-card);
  color: var(--apcig-primary-blue);
  box-shadow: var(--apcig-shadow-sm);
}

.apcig-nav a.current {
  background: var(--apcig-primary-blue);
  color: white;
  box-shadow: var(--apcig-shadow-md);
}

.apcig-nav .dashicons {
  font-size: 18px;
}

/* Sidebar Widgets */
.apcig-sidebar-widget {
  background: var(--apcig-bg-card);
  border: 1px solid #E5E7EB;
  border-radius: var(--apcig-radius-lg);
  padding: var(--apcig-space-md);
  margin-bottom: var(--apcig-space-lg);
}

.apcig-sidebar-widget h3 {
  margin: 0 0 var(--apcig-space-sm) 0;
  font-size: var(--apcig-text-body-md);
  font-weight: 600;
  color: var(--apcig-primary-blue);
}

.apcig-quick-stats {
  display: flex;
  flex-direction: column;
  gap: var(--apcig-space-xs);
}

.apcig-quick-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--apcig-space-xs) 0;
}

.apcig-stat-label {
  font-size: var(--apcig-text-body-sm);
  color: var(--apcig-neutral-gray);
}

.apcig-stat-value {
  font-weight: 600;
  color: var(--apcig-primary-blue);
}

.apcig-provider-status {
  display: flex;
  flex-direction: column;
  gap: var(--apcig-space-xs);
}

.apcig-provider-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--apcig-space-xs) 0;
}

.apcig-provider-name {
  font-size: var(--apcig-text-body-sm);
  color: var(--apcig-neutral-gray);
}

.apcig-provider-indicator {
  font-size: 14px;
}

.apcig-provider-indicator.connected {
  color: var(--apcig-success-green);
}

.apcig-provider-indicator.disconnected {
  color: var(--apcig-warning-amber);
}

/* Loading Overlay */
.apcig-loading-overlay {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.apcig-loading-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  z-index: 1000;
}

.apcig-loading-overlay::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border: 3px solid #E5E7EB;
  border-top: 3px solid var(--apcig-primary-blue);
  border-radius: 50%;
  animation: apcig-spin 1s linear infinite;
  z-index: 1001;
}

/* Alert Close Button */
.apcig-alert-close {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.apcig-alert-close:hover {
  opacity: 1;
}

.apcig-alert-close .dashicons {
  font-size: 16px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .apcig-sidebar-widget {
    margin-bottom: var(--apcig-space-md);
  }

  .apcig-quick-stat,
  .apcig-provider-item {
    padding: var(--apcig-space-xxs) 0;
  }
}

/* Welcome Section */
.apcig-welcome {
  background: linear-gradient(135deg, var(--apcig-primary-blue), #3B82F6);
  color: white;
  padding: var(--apcig-space-xl);
  border-radius: var(--apcig-radius-lg);
  margin-bottom: var(--apcig-space-lg);
}

.apcig-welcome h2 {
  font-size: var(--apcig-text-h2);
  margin: 0 0 var(--apcig-space-sm) 0;
  font-weight: 600;
}

.apcig-welcome p {
  font-size: var(--apcig-text-body-lg);
  margin: 0;
  opacity: 0.9;
}

/* Stats Cards */
.apcig-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--apcig-space-lg);
  margin-bottom: var(--apcig-space-xl);
}

.apcig-stat-card {
  background: var(--apcig-bg-card);
  padding: var(--apcig-space-lg);
  border-radius: var(--apcig-radius-lg);
  box-shadow: var(--apcig-shadow-md);
  border: 1px solid #E5E7EB;
}

.apcig-stat-card h3 {
  font-size: var(--apcig-text-h3);
  margin: 0 0 var(--apcig-space-sm) 0;
  color: var(--apcig-neutral-gray);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--apcig-space-xs);
}

.apcig-stat-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--apcig-primary-blue);
  margin-bottom: var(--apcig-space-xs);
}

.apcig-stat-change {
  font-size: var(--apcig-text-body-sm);
  color: var(--apcig-success-green);
  font-weight: 500;
}

/* Quick Action Cards */
.apcig-quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--apcig-space-lg);
  margin-bottom: var(--apcig-space-xl);
}

.apcig-action-card {
  background: var(--apcig-bg-card);
  padding: var(--apcig-space-xl);
  border-radius: var(--apcig-radius-lg);
  box-shadow: var(--apcig-shadow-md);
  border: 1px solid #E5E7EB;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.apcig-action-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--apcig-shadow-lg);
}

.apcig-action-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--apcig-primary-blue), #3B82F6);
}

.apcig-action-card h3 {
  font-size: var(--apcig-text-h3);
  margin: 0 0 var(--apcig-space-sm) 0;
  color: var(--apcig-primary-blue);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--apcig-space-sm);
}

.apcig-action-card p {
  color: var(--apcig-neutral-gray);
  margin-bottom: var(--apcig-space-lg);
  font-size: var(--apcig-text-body-md);
  line-height: 1.5;
}

.apcig-action-card .apcig-btn {
  width: 100%;
}

/* Buttons */
.apcig-btn {
  align-items: center;
  justify-content: center;
  gap: var(--apcig-space-xs);
  padding: var(--apcig-space-sm) var(--apcig-space-lg);
  border: none;
  border-radius: var(--apcig-radius-md);
  font-size: var(--apcig-text-body-md);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 40px;
}

a:active, a:hover {
  color: #fff;
}
.apcig-btn-primary {
  background: var(--apcig-primary-blue);
  color: white;
}

.apcig-btn-primary:hover {
  background: #1D4ED8;
  transform: translateY(-1px);
  box-shadow: var(--apcig-shadow-md);
}

.apcig-btn-secondary {
  background: var(--apcig-bg-card);
  color: var(--apcig-neutral-gray);
  border: 1px solid #E5E7EB;
}

.apcig-btn-secondary:hover {
  background: var(--apcig-bg-sidebar);
  border-color: var(--apcig-primary-blue);
  color: var(--apcig-primary-blue);
}

.apcig-btn-success {
  background: var(--apcig-success-green);
  color: white;
}

.apcig-btn-success:hover {
  background: #059669;
}

.apcig-btn-warning {
  background: var(--apcig-warning-amber);
  color: white;
}

.apcig-btn-warning:hover {
  background: #D97706;
}

.apcig-btn-danger {
  background: var(--apcig-error-red);
  color: white;
}

.apcig-btn-danger:hover {
  background: #DC2626;
}

/* Form Elements */
.apcig-form-group {
  margin-bottom: var(--apcig-space-lg);
}

.apcig-label {
  display: block;
  font-size: var(--apcig-text-body-md);
  font-weight: 500;
  color: var(--apcig-neutral-gray);
  margin-bottom: var(--apcig-space-xs);
}

.apcig-input,
.apcig-select,
.apcig-textarea {
  width: 100%;
  padding: var(--apcig-space-sm) var(--apcig-space-md);
  border: 1px solid #E5E7EB;
  border-radius: var(--apcig-radius-md);
  font-size: var(--apcig-text-body-md);
  background: var(--apcig-bg-input);
  transition: all 0.2s ease;
}

.apcig-input:focus,
.apcig-select:focus,
.apcig-textarea:focus {
  outline: none;
  border-color: var(--apcig-primary-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

/* Cards */
.apcig-card {
  background: var(--apcig-bg-card);
  border: 1px solid #E5E7EB;
  border-radius: var(--apcig-radius-lg);
  box-shadow: var(--apcig-shadow-sm);
  overflow: hidden;
}

.apcig-card-header {
  padding: var(--apcig-space-lg);
  border-bottom: 1px solid #E5E7EB;
  background: var(--apcig-bg-sidebar);
}

.apcig-card-header h3 {
  margin: 0;
  font-size: var(--apcig-text-h3);
  font-weight: 600;
  color: var(--apcig-primary-blue);
}

.apcig-card-body {
  padding: var(--apcig-space-lg);
}

.apcig-card-footer {
  padding: var(--apcig-space-lg);
  border-top: 1px solid #E5E7EB;
  background: var(--apcig-bg-sidebar);
}

/* Progress Bar */
.apcig-progress {
  width: 100%;
  height: 8px;
  background: #E5E7EB;
  border-radius: var(--apcig-radius-sm);
  overflow: hidden;
}

.apcig-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--apcig-primary-blue), #3B82F6);
  transition: width 0.3s ease;
}

/* Alerts */
.apcig-alert {
  padding: var(--apcig-space-md);
  border-radius: var(--apcig-radius-md);
  margin-bottom: var(--apcig-space-lg);
  display: flex;
  align-items: center;
  gap: var(--apcig-space-sm);
}

.apcig-alert-success {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
}

.apcig-alert-warning {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #92400E;
}

.apcig-alert-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}

.apcig-alert-info {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E40AF;
}

/* Loading States */
.apcig-loading {
  display: inline-flex;
  align-items: center;
  gap: var(--apcig-space-xs);
}

.apcig-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #E5E7EB;
  border-top: 2px solid var(--apcig-primary-blue);
  border-radius: 50%;
  animation: apcig-spin 1s linear infinite;
}

@keyframes apcig-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Step Progress Styles */
.apcig-content-generator {
  max-width: 1200px;
}

.apcig-step-content {
  display: none;
}

.apcig-step-content.active {
  display: block;
}

.apcig-step-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--apcig-space-xl);
  padding: var(--apcig-space-lg);
  background: var(--apcig-bg-card);
  border-radius: var(--apcig-radius-lg);
  box-shadow: var(--apcig-shadow-sm);
}

.apcig-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.apcig-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: #E5E7EB;
  z-index: 1;
}

.apcig-step.active:not(:last-child)::after,
.apcig-step.completed:not(:last-child)::after {
  background: var(--apcig-primary-blue);
}

.apcig-step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #E5E7EB;
  color: var(--apcig-neutral-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: var(--apcig-space-xs);
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.apcig-step.active .apcig-step-number {
  background: var(--apcig-primary-blue);
  color: white;
}

.apcig-step.completed .apcig-step-number {
  background: var(--apcig-success-green);
  color: white;
}

.apcig-step-label {
  font-size: var(--apcig-text-body-sm);
  color: var(--apcig-neutral-gray);
  text-align: center;
  font-weight: 500;
}

.apcig-step.active .apcig-step-label {
  color: var(--apcig-primary-blue);
  font-weight: 600;
}

/* Product Filters */
.apcig-product-filters {
  margin-bottom: var(--apcig-space-lg);
  padding: var(--apcig-space-lg);
  background: var(--apcig-bg-sidebar);
  border-radius: var(--apcig-radius-md);
}

.apcig-filter-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: var(--apcig-space-md);
  align-items: end;
}

.apcig-filter-actions {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
}

.apcig-filter-actions .apcig-label {
  visibility: hidden;
  margin-bottom: var(--apcig-space-xs);
  height: 20px;
  /* Match other labels */
}

.apcig-filter-buttons {
  display: flex;
  gap: var(--apcig-space-xs);
  align-items: center;
}

.apcig-filter-actions .apcig-btn {
  white-space: nowrap;
  height: 40px;
  /* Match input height */
}

/* Product Selection */
.apcig-selection-controls {
  display: flex;
  align-items: center;
  gap: var(--apcig-space-md);
  margin-bottom: var(--apcig-space-lg);
  padding: var(--apcig-space-md);
  background: var(--apcig-bg-sidebar);
  border-radius: var(--apcig-radius-md);
}

.apcig-selection-count {
  margin-left: auto;
  font-size: var(--apcig-text-body-sm);
  color: var(--apcig-neutral-gray);
}

.apcig-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--apcig-space-lg);
  margin-bottom: var(--apcig-space-xl);
}

.apcig-product-card {
  background: var(--apcig-bg-card);
  border: 2px solid #E5E7EB;
  border-radius: var(--apcig-radius-lg);
  padding: var(--apcig-space-md);
  transition: all 0.2s ease;
  position: relative;
}

.apcig-product-card:hover {
  border-color: var(--apcig-primary-blue);
  box-shadow: var(--apcig-shadow-md);
}

.apcig-product-card.selected {
  border-color: var(--apcig-primary-blue);
  background: rgba(37, 99, 235, 0.05);
}

.apcig-product-checkbox-wrapper {
  position: absolute;
  top: var(--apcig-space-sm);
  right: var(--apcig-space-sm);
  z-index: 2;
}

.apcig-product-checkbox {
  width: 20px;
  height: 20px;
  margin: 0;
}

.apcig-product-image {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--apcig-space-md);
  border-radius: var(--apcig-radius-md);
  overflow: hidden;
  background: var(--apcig-bg-sidebar);
}

.apcig-product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.apcig-no-image {
  color: var(--apcig-neutral-gray);
  font-size: 32px;
}

.apcig-product-title {
  font-size: var(--apcig-text-body-md);
  font-weight: 600;
  margin: 0 0 var(--apcig-space-xs) 0;
  color: var(--apcig-neutral-gray);
  line-height: 1.4;
}

.apcig-product-price {
  font-weight: 600;
  color: var(--apcig-primary-blue);
  margin-bottom: var(--apcig-space-xs);
}

.apcig-product-sku {
  margin-bottom: var(--apcig-space-sm);
}

.apcig-content-status {
  display: flex;
  gap: var(--apcig-space-xxs);
  flex-wrap: wrap;
}

.apcig-status-badge {
  font-size: var(--apcig-text-body-sm);
  padding: 2px 6px;
  border-radius: var(--apcig-radius-sm);
  font-weight: 500;
}

.apcig-status-badge.success {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.apcig-status-badge.missing {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* Configuration Grid */
.apcig-config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--apcig-space-xl);
  margin-bottom: var(--apcig-space-xl);
}

.apcig-config-section h4 {
  margin: 0 0 var(--apcig-space-md) 0;
  color: var(--apcig-primary-blue);
  font-size: var(--apcig-text-h3);
  font-weight: 600;
}

.apcig-content-types {
  display: flex;
  flex-direction: column;
  gap: var(--apcig-space-sm);
}

.apcig-checkbox-card {
  display: flex;
  align-items: center;
  gap: var(--apcig-space-sm);
  padding: var(--apcig-space-md);
  border: 1px solid #E5E7EB;
  border-radius: var(--apcig-radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.apcig-checkbox-card:hover {
  border-color: var(--apcig-primary-blue);
  background: rgba(37, 99, 235, 0.05);
}

.apcig-checkbox-card input[type="checkbox"] {
  margin: 0;
}

.apcig-checkbox-content {
  flex: 1;
}

.apcig-checkbox-content strong {
  display: block;
  color: var(--apcig-neutral-gray);
  margin-bottom: 2px;
}

.apcig-checkbox-content small {
  color: #9CA3AF;
}

/* Step Actions */
.apcig-step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--apcig-space-lg);
  border-top: 1px solid #E5E7EB;
}

.apcig-step-actions .apcig-btn {
  min-width: 120px;
}

/* Apply Options */
.apcig-apply-options {
  margin-bottom: var(--apcig-space-lg);
}

.apcig-checkbox-option {
  display: flex;
  align-items: center;
  gap: var(--apcig-space-sm);
  margin-bottom: var(--apcig-space-md);
  cursor: pointer;
}

.apcig-checkbox-option input[type="checkbox"] {
  margin: 0;
}

/* Help Text */
.apcig-help-text {
  display: block;
  margin-top: var(--apcig-space-xs);
  color: #9CA3AF;
  font-size: var(--apcig-text-body-sm);
}

.apcig-help-text code {
  background: var(--apcig-bg-sidebar);
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 11px;
}

/* Responsive Design */
@media (max-width: 1199px) {
  .apcig-sidebar {
    width: 240px;
  }
}

@media (max-width: 768px) {
  .apcig-filter-row {
    grid-template-columns: 1fr;
    gap: var(--apcig-space-sm);
  }

  .apcig-filter-actions {
    justify-content: center;
    margin-top: var(--apcig-space-sm);
  }

  .apcig-filter-actions .apcig-label {
    display: none;
  }

  .apcig-filter-buttons {
    flex-direction: column;
    width: 100%;
  }

  .apcig-filter-buttons .apcig-btn {
    width: 100%;
  }

  .apcig-config-grid {
    grid-template-columns: 1fr;
    gap: var(--apcig-space-lg);
  }

  .apcig-products-grid {
    grid-template-columns: 1fr;
  }

  .apcig-step-progress {
    padding: var(--apcig-space-md);
  }

  .apcig-step {
    flex: 1;
    min-width: 0;
  }

  .apcig-step-label {
    font-size: 11px;
    line-height: 1.2;
  }

  .apcig-step-actions {
    flex-direction: column;
    gap: var(--apcig-space-md);
  }

  .apcig-step-actions .apcig-btn {
    width: 100%;
  }

  .apcig-selection-controls {
    flex-wrap: wrap;
    gap: var(--apcig-space-sm);
  }

  .apcig-selection-count {
    width: 100%;
    text-align: center;
    margin-left: 0;
  }

  .apcig-layout {
    flex-direction: column;
  }

  .apcig-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #E5E7EB;
  }

  .apcig-nav {
    display: flex;
    overflow-x: auto;
    gap: var(--apcig-space-xs);
  }

  .apcig-nav li {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .apcig-stats {
    grid-template-columns: 1fr;
  }

  .apcig-quick-actions {
    grid-template-columns: 1fr;
  }
}

/* Product Card Hover Effects */
.apcig-product-card:hover .apcig-product-checkbox-wrapper {
  opacity: 1;
}

.apcig-product-checkbox-wrapper {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.apcig-product-card.selected .apcig-product-checkbox-wrapper {
  opacity: 1;
}

/* Button Tooltips */
.apcig-btn[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 1000;
  margin-bottom: 5px;
}

/* Utility Classes */
.apcig-text-center {
  text-align: center;
}

.apcig-text-right {
  text-align: right;
}

.apcig-text-left {
  text-align: left;
}

.apcig-mb-0 {
  margin-bottom: 0;
}

.apcig-mb-xs {
  margin-bottom: var(--apcig-space-xs);
}

.apcig-mb-sm {
  margin-bottom: var(--apcig-space-sm);
}

.apcig-mb-md {
  margin-bottom: var(--apcig-space-md);
}

.apcig-mb-lg {
  margin-bottom: var(--apcig-space-lg);
}

.apcig-mb-xl {
  margin-bottom: var(--apcig-space-xl);
}

.apcig-mt-0 {
  margin-top: 0;
}

.apcig-mt-xs {
  margin-top: var(--apcig-space-xs);
}

.apcig-mt-sm {
  margin-top: var(--apcig-space-sm);
}

.apcig-mt-md {
  margin-top: var(--apcig-space-md);
}

.apcig-mt-lg {
  margin-top: var(--apcig-space-lg);
}

.apcig-mt-xl {
  margin-top: var(--apcig-space-xl);
}

.apcig-hidden {
  display: none;
}

.apcig-visible {
  display: block;
}

.apcig-flex {
  display: flex;
}

.apcig-flex-col {
  flex-direction: column;
}

.apcig-items-center {
  align-items: center;
}

.apcig-justify-center {
  justify-content: center;
}

.apcig-justify-between {
  justify-content: space-between;
}

.apcig-w-full {
  width: 100%;
}

.apcig-h-full {
  height: 100%;
}

/* Image Generation Styles */
.apcig-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--apcig-space-lg);
  margin-top: var(--apcig-space-md);
}

.apcig-image-item {
  background: var(--apcig-bg-card);
  border: 1px solid #E5E7EB;
  border-radius: var(--apcig-radius-lg);
  padding: var(--apcig-space-md);
  box-shadow: var(--apcig-shadow-sm);
  transition: all 0.2s ease;
}

.apcig-image-item:hover {
  box-shadow: var(--apcig-shadow-md);
  transform: translateY(-2px);
}

.apcig-image-item img {
  width: 100%;
  height: auto;
  border-radius: var(--apcig-radius-md);
  margin-bottom: var(--apcig-space-md);
}

.apcig-image-actions {
  display: flex;
  gap: var(--apcig-space-xs);
  flex-wrap: wrap;
}

.apcig-btn-sm {
  padding: var(--apcig-space-xs) var(--apcig-space-sm);
  font-size: var(--apcig-text-body-sm);
  min-height: 32px;
}

.apcig-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.apcig-btn.apcig-loading {
  position: relative;
  color: transparent;
}

.apcig-btn.apcig-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: apcig-spin 1s linear infinite;
}

.apcig-image-error {
  background: #FEF2F2;
  border-color: var(--apcig-error-red);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.apcig-error-message {
  text-align: center;
  color: var(--apcig-error-red);
}

.apcig-error-message .dashicons {
  font-size: 32px;
  margin-bottom: var(--apcig-space-xs);
}

.apcig-error-message p {
  margin: var(--apcig-space-xs) 0;
  font-weight: 600;
}

.apcig-error-message small {
  color: var(--apcig-neutral-gray);
  font-size: var(--apcig-text-body-sm);
}

/* No Products Message */
.apcig-no-products {
  text-align: center;
  padding: var(--apcig-space-xxl);
  color: var(--apcig-neutral-gray);
  background: var(--apcig-bg-card);
  border: 2px dashed #E5E7EB;
  border-radius: var(--apcig-radius-lg);
}

.apcig-no-products p {
  font-size: var(--apcig-text-body-lg);
  margin: 0;
}

/* Loa
ding States */
.apcig-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.apcig-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--apcig-primary-blue);
  border-radius: 50%;
  animation: apcig-spin 1s linear infinite;
  margin-right: var(--apcig-space-xs);
}

@keyframes apcig-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.apcig-loading-overlay {
  position: relative;
}

.apcig-loading-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Toggle Switches */
.apcig-toggle-option {
  display: flex;
  align-items: flex-start;
  padding: var(--apcig-space-md);
  border: 1px solid #E5E7EB;
  border-radius: var(--apcig-radius-md);
  margin-bottom: var(--apcig-space-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.apcig-toggle-option:hover {
  border-color: var(--apcig-primary-blue);
  box-shadow: var(--apcig-shadow-sm);
}

.apcig-toggle-option.active {
  border-color: var(--apcig-primary-blue);
  background-color: #EFF6FF;
}

.apcig-toggle-option input[type="checkbox"] {
  display: none;
}

.apcig-toggle-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}

.apcig-toggle-info {
  flex: 1;
}

.apcig-toggle-info strong {
  display: block;
  font-weight: 600;
  color: #1F2937;
  margin-bottom: var(--apcig-space-xxs);
}

.apcig-toggle-info p {
  color: var(--apcig-neutral-gray);
  font-size: var(--apcig-text-body-sm);
  margin: 0;
  line-height: 1.4;
}

.apcig-toggle-switch {
  margin-left: var(--apcig-space-md);
  flex-shrink: 0;
}

.apcig-switch {
  display: block;
  width: 44px;
  height: 24px;
  background-color: #D1D5DB;
  border-radius: 12px;
  position: relative;
  transition: background-color 0.2s ease;
}

.apcig-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.apcig-toggle-option.active .apcig-switch {
  background-color: var(--apcig-primary-blue);
}

.apcig-toggle-option.active .apcig-switch::after {
  transform: translateX(20px);
}

/* Slider Styles */
.apcig-slider-container {
  margin: var(--apcig-space-sm) 0;
}

.apcig-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #E5E7EB;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.apcig-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--apcig-primary-blue);
  cursor: pointer;
  box-shadow: var(--apcig-shadow-sm);
}

.apcig-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--apcig-primary-blue);
  cursor: pointer;
  border: none;
  box-shadow: var(--apcig-shadow-sm);
}

.apcig-slider-value {
  display: flex;
  justify-content: center;
  margin-top: var(--apcig-space-xs);
  font-weight: 600;
  color: var(--apcig-primary-blue);
}

.apcig-slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: var(--apcig-space-xs);
  font-size: var(--apcig-text-body-sm);
  color: var(--apcig-neutral-gray);
}

/* Alert Styles */
.apcig-alerts-container {
  position: fixed;
  top: 32px;
  right: 20px;
  z-index: 9999;
  max-width: 400px;
}

/* Settings page specific alert positioning */
.apcig-settings .apcig-alerts-container {
  position: fixed;
  top: 50px;
  right: 20px;
  z-index: 10000;
  max-width: 400px;
}

/* Alternative: Add alerts container to settings page */
.apcig-settings-alerts {
  position: sticky;
  top: 20px;
  margin-bottom: var(--apcig-space-lg);
  z-index: 100;
}

.apcig-alert {
  display: flex;
  align-items: center;
  padding: var(--apcig-space-md);
  margin-bottom: var(--apcig-space-sm);
  border-radius: var(--apcig-radius-md);
  box-shadow: var(--apcig-shadow-lg);
  animation: apcig-slide-in 0.3s ease;
}

@keyframes apcig-slide-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.apcig-alert-success {
  background-color: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
}

.apcig-alert-error {
  background-color: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}

.apcig-alert-warning {
  background-color: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #92400E;
}

.apcig-alert-info {
  background-color: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E40AF;
}

.apcig-alert .dashicons {
  margin-right: var(--apcig-space-sm);
  flex-shrink: 0;
}

.apcig-alert-close {
  background: none;
  border: none;
  margin-left: auto;
  cursor: pointer;
  padding: 0;
  color: inherit;
  opacity: 0.7;
}

.apcig-alert-close:hover {
  opacity: 1;
}

/* Button Loading State */
.apcig-btn.apcig-loading {
  position: relative;
  color: transparent;
}

.apcig-btn.apcig-loading .apcig-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

/* Provider Status Indicators */
.apcig-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--apcig-space-xxs);
  font-size: var(--apcig-text-body-sm);
  font-weight: 500;
  padding: var(--apcig-space-xxs) var(--apcig-space-sm);
  border-radius: var(--apcig-radius-sm);
}

.apcig-status-indicator.connected {
  color: var(--apcig-success-green);
  background-color: #ECFDF5;
}

.apcig-status-indicator.disconnected {
  color: var(--apcig-warning-amber);
  background-color: #FFFBEB;
}

/* Form Validation */
.apcig-input.apcig-error,
.apcig-select.apcig-error,
.apcig-textarea.apcig-error {
  border-color: var(--apcig-error-red);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .apcig-layout {
    flex-direction: column;
  }

  .apcig-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #E5E7EB;
  }

  .apcig-alerts-container {
    position: relative;
    top: auto;
    right: auto;
    max-width: none;
    margin: var(--apcig-space-md) 0;
  }
}

/* Dashboard Activity Styles */
.apcig-activity-list {
  display: flex;
  flex-direction: column;
  gap: var(--apcig-space-md);
}

.apcig-activity-item {
  display: flex;
  align-items: center;
  gap: var(--apcig-space-md);
  padding: var(--apcig-space-sm);
  border-radius: var(--apcig-radius-md);
  transition: background-color 0.2s ease;
}

.apcig-activity-item:hover {
  background: var(--apcig-bg-sidebar);
}

.apcig-activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--apcig-primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.apcig-activity-content {
  flex: 1;
}

.apcig-activity-title {
  font-weight: 500;
  color: var(--apcig-neutral-gray);
  margin-bottom: var(--apcig-space-xxs);
}

.apcig-activity-time {
  font-size: var(--apcig-text-body-sm);
  color: #9CA3AF;
}

.apcig-btn-sm {
  padding: var(--apcig-space-xs) var(--apcig-space-md);
  font-size: var(--apcig-text-body-sm);
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--apcig-space-xs);
  text-decoration: none;
  visibility: visible;
}

/* Bulk Processing Progress Styles */
.apcig-progress-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--apcig-space-xl);
}

.apcig-processing-log {
  background: var(--apcig-bg-sidebar);
  border-radius: var(--apcig-radius-md);
  padding: var(--apcig-space-md);
}

.apcig-log-container {
  max-height: 300px;
  overflow-y: auto;
  font-family: monospace;
  font-size: var(--apcig-text-body-sm);
}

.apcig-log-entry {
  padding: var(--apcig-space-xxs) 0;
  border-bottom: 1px solid #E5E7EB;
  color: var(--apcig-neutral-gray);
}

.apcig-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--apcig-space-lg);
  margin-bottom: var(--apcig-space-xl);
}

.apcig-result-item {
  text-align: center;
  padding: var(--apcig-space-lg);
  border-radius: var(--apcig-radius-lg);
  border: 2px solid transparent;
}

.apcig-result-item.success {
  background: #ECFDF5;
  border-color: var(--apcig-success-green);
}

.apcig-result-item.error {
  background: #FEF2F2;
  border-color: var(--apcig-error-red);
}

.apcig-result-item.warning {
  background: #FFFBEB;
  border-color: var(--apcig-warning-amber);
}

.apcig-result-item.info {
  background: #EFF6FF;
  border-color: var(--apcig-primary-blue);
}

.apcig-result-number {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--apcig-space-xs);
}

.apcig-result-item.success .apcig-result-number {
  color: var(--apcig-success-green);
}

.apcig-result-item.error .apcig-result-number {
  color: var(--apcig-error-red);
}

.apcig-result-item.warning .apcig-result-number {
  color: var(--apcig-warning-amber);
}

.apcig-result-item.info .apcig-result-number {
  color: var(--apcig-primary-blue);
}

.apcig-result-label {
  font-weight: 600;
  color: var(--apcig-neutral-gray);
}

@media (max-width: 768px) {
  .apcig-progress-layout {
    grid-template-columns: 1fr;
  }

  .apcig-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* Generated Content Preview */
.apcig-generated-content-preview {
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.apcig-preview-header {
    padding: 16px;
    background: #F9FAFB;
    border-bottom: 1px solid #E5E7EB;
}

.apcig-preview-header h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    text-transform: capitalize;
}

.apcig-preview-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.apcig-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #6B7280;
}

.apcig-meta-item .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.apcig-preview-content {
    padding: 20px;
}

.apcig-content-display {
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.apcig-preview-actions {
    padding: 16px;
    background: #F9FAFB;
    border-top: 1px solid #E5E7EB;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.apcig-preview-actions .apcig-btn {
    min-width: 120px;
}

/* Product Selection - Radio Buttons for Content Generator */
.apcig-product-radio-wrapper {
    position: absolute;
    top: var(--apcig-space-sm);
    left: var(--apcig-space-sm);
    z-index: 10;
}

.apcig-product-radio {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--apcig-primary-blue);
    border-radius: 50%;
    background: white;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.apcig-product-radio:checked {
    background: var(--apcig-primary-blue);
    box-shadow: 0 0 0 2px white inset;
}

.apcig-product-radio:hover {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.apcig-product-radio + label {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Selection Info Message */
.apcig-selection-info {
    margin-bottom: var(--apcig-space-lg);
}

.apcig-info-message {
    display: flex;
    align-items: center;
    gap: var(--apcig-space-sm);
    padding: var(--apcig-space-md);
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: var(--apcig-radius-md);
    color: #1E40AF;
    font-size: var(--apcig-text-body-sm);
    margin: 0;
}

.apcig-info-message .dashicons {
    color: var(--apcig-primary-blue);
    font-size: 20px;
}

/* Progress Bar Improvements */
.apcig-progress {
    width: 100%;
    height: 32px;
    background: #E5E7EB;
    border-radius: var(--apcig-radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.apcig-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--apcig-primary-blue) 0%, #3B82F6 100%);
    border-radius: var(--apcig-radius-lg);
    transition: width 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: var(--apcig-text-body-sm);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

.apcig-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.apcig-progress-text {
    margin-top: var(--apcig-space-sm);
    text-align: center;
    color: var(--apcig-neutral-gray);
    font-size: var(--apcig-text-body-sm);
}

.apcig-progress-details {
    display: flex;
    justify-content: space-between;
    margin-top: var(--apcig-space-xs);
    font-size: var(--apcig-text-body-sm);
    color: var(--apcig-neutral-gray);
}

.apcig-progress-step {
    padding: var(--apcig-space-md);
    background: var(--apcig-bg-card);
    border: 1px solid #E5E7EB;
    border-radius: var(--apcig-radius-md);
    margin-bottom: var(--apcig-space-md);
}

.apcig-progress-step-title {
    font-weight: 600;
    color: var(--apcig-primary-blue);
    margin-bottom: var(--apcig-space-xs);
}

.apcig-progress-step-status {
    display: flex;
    align-items: center;
    gap: var(--apcig-space-xs);
    font-size: var(--apcig-text-body-sm);
}

.apcig-progress-step-status.processing {
    color: var(--apcig-primary-blue);
}

.apcig-progress-step-status.completed {
    color: var(--apcig-success-green);
}

.apcig-progress-step-status.error {
    color: var(--apcig-error-red);
}

/* Real-time Progress Indicator */
.apcig-realtime-progress {
    position: relative;
    padding: var(--apcig-space-lg);
    background: var(--apcig-bg-card);
    border: 1px solid #E5E7EB;
    border-radius: var(--apcig-radius-lg);
    margin: var(--apcig-space-lg) 0;
}

.apcig-realtime-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--apcig-space-md);
}

.apcig-realtime-progress-title {
    font-size: var(--apcig-text-h3);
    font-weight: 600;
    color: var(--apcig-primary-blue);
}

.apcig-realtime-progress-percentage {
    font-size: var(--apcig-text-h2);
    font-weight: 700;
    color: var(--apcig-primary-blue);
}

.apcig-realtime-progress-steps {
    margin-top: var(--apcig-space-lg);
}

/* Loading Spinner for Progress */
.apcig-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(37, 99, 235, 0.2);
    border-top-color: var(--apcig-primary-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Enhanced Error Logging Display */
.apcig-error-log {
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
    border-radius: var(--apcig-radius-md);
    padding: var(--apcig-space-md);
    margin: var(--apcig-space-md) 0;
}

.apcig-error-log-title {
    display: flex;
    align-items: center;
    gap: var(--apcig-space-xs);
    color: var(--apcig-error-red);
    font-weight: 600;
    margin-bottom: var(--apcig-space-sm);
}

.apcig-error-log-content {
    font-family: 'Courier New', monospace;
    font-size: var(--apcig-text-body-sm);
    color: #991B1B;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Image Upload Area Improvements */
.apcig-upload-area {
    border: 2px dashed #D1D5DB;
    border-radius: var(--apcig-radius-lg);
    padding: var(--apcig-space-xl);
    text-align: center;
    background: var(--apcig-bg-sidebar);
    transition: all 0.3s ease;
    cursor: pointer;
}

.apcig-upload-area:hover {
    border-color: var(--apcig-primary-blue);
    background: #EFF6FF;
}

.apcig-upload-area.dragover {
    border-color: var(--apcig-primary-blue);
    background: #DBEAFE;
    transform: scale(1.02);
}

.apcig-upload-icon {
    font-size: 48px;
    color: var(--apcig-neutral-gray);
    margin-bottom: var(--apcig-space-md);
}

.apcig-upload-text {
    font-size: var(--apcig-text-body-md);
    color: var(--apcig-neutral-gray);
    margin-bottom: var(--apcig-space-xs);
}

.apcig-upload-hint {
    font-size: var(--apcig-text-body-sm);
    color: #9CA3AF;
}

/* Background Removal Button */
.apcig-remove-bg-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--apcig-space-xs);
    padding: var(--apcig-space-sm) var(--apcig-space-md);
    background: var(--apcig-warning-amber);
    color: white;
    border: none;
    border-radius: var(--apcig-radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.apcig-remove-bg-btn:hover {
    background: #D97706;
    transform: translateY(-1px);
    box-shadow: var(--apcig-shadow-md);
}

.apcig-remove-bg-btn:disabled {
    background: #D1D5DB;
    cursor: not-allowed;
    transform: none;
}

/* Dynamic Stats Animation */
.apcig-stat-number {
    transition: all 0.3s ease;
}

.apcig-stat-number.updating {
    color: var(--apcig-primary-blue);
    transform: scale(1.1);
}

/* Responsive Improvements */
@media (max-width: 1024px) {
    .apcig-layout {
        flex-direction: column;
    }
    
    .apcig-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #E5E7EB;
    }
}

@media (max-width: 768px) {
    .apcig-progress {
        height: 24px;
    }
    
    .apcig-progress-bar {
        font-size: 10px;
    }
    
    .apcig-realtime-progress-percentage {
        font-size: var(--apcig-text-h3);
    }
}

/* Generation Progress Overlay */
.apcig-generation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

.apcig-generation-modal {
    background: white;
    border-radius: var(--apcig-radius-lg);
    padding: var(--apcig-space-xxl);
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.apcig-spinner-large {
    display: inline-block;
    width: 60px;
    height: 60px;
    border: 6px solid rgba(37, 99, 235, 0.2);
    border-top-color: var(--apcig-primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: var(--apcig-space-lg);
}

.apcig-generation-modal h3 {
    margin: 0 0 var(--apcig-space-sm) 0;
    color: var(--apcig-primary-blue);
    font-size: var(--apcig-text-h2);
}

.apcig-generation-modal > p {
    margin: 0 0 var(--apcig-space-lg) 0;
    color: var(--apcig-neutral-gray);
}

.apcig-generation-modal .apcig-progress {
    margin-bottom: var(--apcig-space-md);
}

.apcig-generation-modal .apcig-progress-text {
    font-size: var(--apcig-text-body-sm);
    color: var(--apcig-neutral-gray);
    margin: 0;
}

/* Ensure action settings are properly hidden/shown */
.apcig-action-settings {
    display: none;
}

.apcig-action-settings.active {
    display: block;
}

/* Force hide when needed */
#content-settings[style*="display: none"],
#image-settings[style*="display: none"] {
    display: none !important;
}

#content-settings[style*="display: block"],
#image-settings[style*="display: block"] {
    display: block !important;
}

/* ========================================
   Settings Page Specific Styles
   ======================================== */

/* Settings Specific Styles */
.apcig-settings {
    max-width: 1200px;
}

/* Providers Grid */
.apcig-providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--apcig-space-lg);
}

.apcig-provider-card {
    border: 1px solid #E5E7EB;
    border-radius: var(--apcig-radius-lg);
    padding: var(--apcig-space-lg);
    background: var(--apcig-bg-card);
    transition: all 0.2s ease;
}

.apcig-provider-card:hover {
    border-color: var(--apcig-primary-blue);
    box-shadow: var(--apcig-shadow-md);
}

.apcig-provider-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--apcig-space-md);
}

.apcig-provider-info h4 {
    margin: 0 0 var(--apcig-space-xs) 0;
    color: var(--apcig-primary-blue);
    font-size: var(--apcig-text-h3);
    font-weight: 600;
}

.apcig-provider-info p {
    margin: 0;
    color: var(--apcig-neutral-gray);
    font-size: var(--apcig-text-body-sm);
}

.apcig-input-group {
    display: flex;
    gap: var(--apcig-space-xs);
}

.apcig-input-group .apcig-input {
    flex: 1;
}

/* Settings Grid */
.apcig-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--apcig-space-lg);
}

/* Feature Toggles */
.apcig-feature-toggles {
    display: flex;
    flex-direction: column;
    gap: var(--apcig-space-lg);
}

.apcig-toggle-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--apcig-space-lg);
    border: 1px solid #E5E7EB;
    border-radius: var(--apcig-radius-lg);
    transition: all 0.2s ease;
}

.apcig-toggle-option:hover .apcig-toggle-content {
    border-color: var(--apcig-primary-blue);
    background: rgba(37, 99, 235, 0.05);
}

.apcig-toggle-info {
    flex: 1;
}

.apcig-toggle-info strong {
    display: block;
    color: var(--apcig-neutral-gray);
    font-size: var(--apcig-text-body-lg);
    font-weight: 600;
    margin-bottom: var(--apcig-space-xs);
}

.apcig-toggle-info p {
    margin: 0;
    color: var(--apcig-neutral-gray);
    font-size: var(--apcig-text-body-sm);
    line-height: 1.4;
}

.apcig-toggle-switch {
    position: relative;
    width: 50px;
    height: 24px;
    background: #E5E7EB;
    border-radius: 12px;
    transition: background-color 0.2s ease;
}

.apcig-switch {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.apcig-toggle-option input[type="checkbox"]:checked + .apcig-toggle-content .apcig-toggle-switch {
    background: var(--apcig-primary-blue);
}

.apcig-toggle-option input[type="checkbox"]:checked + .apcig-toggle-content .apcig-switch {
    transform: translateX(26px);
}

/* Data Actions */
.apcig-data-actions {
    display: flex;
    gap: var(--apcig-space-md);
    margin-top: var(--apcig-space-lg);
    padding-top: var(--apcig-space-lg);
    border-top: 1px solid #E5E7EB;
}

/* Settings Actions */
.apcig-settings-actions {
    display: flex;
    justify-content: center;
    gap: var(--apcig-space-md);
    margin-top: var(--apcig-space-xl);
    padding-top: var(--apcig-space-xl);
    border-top: 1px solid #E5E7EB;
}

.apcig-btn-large {
    padding: var(--apcig-space-md) var(--apcig-space-xl);
    font-size: var(--apcig-text-body-lg);
    min-height: 48px;
    min-width: 200px;
}

/* Responsive Design for Settings */
@media (max-width: 768px) {
    .apcig-providers-grid {
        grid-template-columns: 1fr;
    }
    
    .apcig-settings-grid {
        grid-template-columns: 1fr;
    }
    
    .apcig-provider-header {
        flex-direction: column;
        gap: var(--apcig-space-sm);
    }
    
    .apcig-input-group {
        flex-direction: column;
    }
    
    .apcig-data-actions {
        flex-direction: column;
    }
    
    .apcig-data-actions .apcig-btn {
        width: 100%;
    }
    
    .apcig-settings-actions {
        flex-direction: column;
    }
    
    .apcig-settings-actions .apcig-btn {
        width: 100%;
    }
}

/* ========================================
   Image Generator Page Specific Styles
   ======================================== */

/* Image Generator Specific Styles */
.apcig-image-generator {
    max-width: 1400px;
}

/* Tabs */
.apcig-tabs {
    background: var(--apcig-bg-card);
    border-radius: var(--apcig-radius-lg);
    box-shadow: var(--apcig-shadow-sm);
    overflow: hidden;
}

.apcig-tab-nav {
    display: flex;
    background: var(--apcig-bg-sidebar);
    border-bottom: 1px solid #E5E7EB;
}

.apcig-tab-button {
    flex: 1;
    padding: var(--apcig-space-md) var(--apcig-space-lg);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--apcig-space-xs);
    font-size: var(--apcig-text-body-md);
    font-weight: 500;
    color: var(--apcig-neutral-gray);
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.apcig-tab-button:hover {
    background: var(--apcig-bg-card);
    color: var(--apcig-primary-blue);
}

.apcig-tab-button.active {
    background: var(--apcig-bg-card);
    color: var(--apcig-primary-blue);
    border-bottom-color: var(--apcig-primary-blue);
}

.apcig-tab-content {
    display: none;
    padding: var(--apcig-space-xl);
}

.apcig-tab-content.active {
    display: block;
}

/* Generation Layout */
.apcig-generation-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--apcig-space-xl);
}

.apcig-input-panel,
.apcig-preview-panel {
    min-height: 600px;
}

/* Style Selection */
.apcig-style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--apcig-space-sm);
}

.apcig-style-option {
    cursor: pointer;
}

.apcig-style-option input[type="radio"] {
    display: none;
}

.apcig-style-preview {
    padding: var(--apcig-space-md);
    border: 2px solid #E5E7EB;
    border-radius: var(--apcig-radius-md);
    text-align: center;
    transition: all 0.2s ease;
}

.apcig-style-option:hover .apcig-style-preview {
    border-color: var(--apcig-primary-blue);
    background: rgba(37, 99, 235, 0.05);
}

.apcig-style-option input[type="radio"]:checked + .apcig-style-preview {
    border-color: var(--apcig-primary-blue);
    background: rgba(37, 99, 235, 0.1);
}

.apcig-style-icon {
    font-size: 24px;
    color: var(--apcig-primary-blue);
    margin-bottom: var(--apcig-space-xs);
}

.apcig-style-name {
    font-size: var(--apcig-text-body-sm);
    font-weight: 500;
    color: var(--apcig-neutral-gray);
}

/* Preview Area */
.apcig-preview-area {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apcig-preview-placeholder {
    text-align: center;
    color: var(--apcig-neutral-gray);
}

.apcig-preview-placeholder .dashicons {
    font-size: 48px;
    margin-bottom: var(--apcig-space-md);
    opacity: 0.5;
}

.apcig-preview-placeholder p {
    margin: 0;
    font-size: var(--apcig-text-body-lg);
}

/* Upload Area */
.apcig-upload-placeholder .dashicons {
    font-size: 32px;
    color: var(--apcig-primary-blue);
    margin-bottom: var(--apcig-space-sm);
}

.apcig-upload-placeholder p {
    margin: 0;
    color: var(--apcig-neutral-gray);
}

/* Enhancement Options */
.apcig-enhancement-options {
    display: flex;
    flex-direction: column;
    gap: var(--apcig-space-sm);
}

/* Background Options */
.apcig-background-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: var(--apcig-space-sm);
}

.apcig-bg-option {
    cursor: pointer;
}

.apcig-bg-option input[type="radio"] {
    display: none;
}

.apcig-bg-preview {
    height: 80px;
    border: 2px solid #E5E7EB;
    border-radius: var(--apcig-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--apcig-text-body-sm);
    font-weight: 500;
    transition: all 0.2s ease;
}

.apcig-bg-preview.transparent {
    background: repeating-conic-gradient(#E5E7EB 0% 25%, white 0% 50%) 50% / 20px 20px;
}

.apcig-bg-preview.white {
    background: white;
}

.apcig-bg-preview.gradient {
    background: linear-gradient(135deg, #F3F4F6, white);
}

.apcig-bg-preview.custom {
    background: var(--apcig-primary-blue);
    color: white;
}

.apcig-bg-option:hover .apcig-bg-preview {
    border-color: var(--apcig-primary-blue);
}

.apcig-bg-option input[type="radio"]:checked + .apcig-bg-preview {
    border-color: var(--apcig-primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* History Grid */
.apcig-history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--apcig-space-lg);
}

.apcig-history-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--apcig-space-xl);
    color: var(--apcig-neutral-gray);
}

.apcig-history-placeholder .dashicons {
    font-size: 32px;
    margin-bottom: var(--apcig-space-sm);
    opacity: 0.5;
}

/* Product Image Preview */
.apcig-current-image-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--apcig-space-sm);
}

.apcig-current-image-container img {
    max-width: 200px;
    border-radius: 8px;
    border: 2px solid #E5E7EB;
    box-shadow: var(--apcig-shadow-sm);
}

/* Image Preview List */
.apcig-image-preview-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--apcig-space-md);
    margin-top: var(--apcig-space-md);
}

.apcig-image-preview-item {
    position: relative;
    border: 2px solid #E5E7EB;
    border-radius: var(--apcig-radius-md);
    overflow: hidden;
}

.apcig-image-preview-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.apcig-image-preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
}

.apcig-image-preview-remove:hover {
    background: rgba(220, 38, 38, 1);
}

/* Color Picker */
.apcig-color-picker {
    width: 100px;
    height: 40px;
    border: 2px solid #E5E7EB;
    border-radius: var(--apcig-radius-md);
    cursor: pointer;
}

.apcig-card-subtitle {
    margin: var(--apcig-space-xs) 0 0 0;
    font-size: var(--apcig-text-body-sm);
    color: var(--apcig-neutral-gray);
    font-weight: normal;
}

.apcig-form-notice {
    padding: var(--apcig-space-md);
    border-radius: var(--apcig-radius-md);
    display: flex;
    align-items: flex-start;
    gap: var(--apcig-space-sm);
    margin-bottom: var(--apcig-space-md);
}

.apcig-notice-info {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.3);
    color: var(--apcig-primary-blue);
}

.apcig-form-notice .dashicons {
    flex-shrink: 0;
    margin-top: 2px;
}

.apcig-form-notice p {
    margin: 0;
    font-size: var(--apcig-text-body-sm);
}

/* Responsive Design for Image Generator */
@media (max-width: 768px) {
    .apcig-generation-layout {
        grid-template-columns: 1fr;
        gap: var(--apcig-space-lg);
    }
    
    .apcig-tab-nav {
        flex-direction: column;
    }
    
    .apcig-tab-button {
        border-bottom: none;
        border-right: 3px solid transparent;
    }
    
    .apcig-tab-button.active {
        border-right-color: var(--apcig-primary-blue);
        border-bottom-color: transparent;
    }
    
    .apcig-style-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .apcig-background-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   Bulk Processing Page Specific Styles
   ======================================== */

/* Bulk Processing Specific Styles */
.apcig-bulk-processing {
    max-width: 1400px;
}

/* Setup Grid */
.apcig-setup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--apcig-space-xl);
    margin-bottom: var(--apcig-space-xl);
}

/* Selection Methods */
.apcig-method-tabs {
    display: flex;
    background: var(--apcig-bg-sidebar);
    border-radius: var(--apcig-radius-md);
    padding: var(--apcig-space-xxs);
    margin-bottom: var(--apcig-space-lg);
}

.apcig-method-tab {
    flex: 1;
    padding: var(--apcig-space-sm) var(--apcig-space-md);
    background: none;
    border: none;
    border-radius: var(--apcig-radius-sm);
    cursor: pointer;
    font-size: var(--apcig-text-body-sm);
    font-weight: 500;
    color: var(--apcig-neutral-gray);
    transition: all 0.2s ease;
}

.apcig-method-tab:hover {
    background: var(--apcig-bg-card);
}

.apcig-method-tab.active {
    background: var(--apcig-primary-blue);
    color: white;
}

.apcig-method-content {
    display: none;
}

.apcig-method-content.active {
    display: block;
}

/* Product Search */
.apcig-product-search {
    margin-bottom: var(--apcig-space-md);
}

/* Products List */
.apcig-products-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #E5E7EB;
    border-radius: var(--apcig-radius-md);
    margin-bottom: var(--apcig-space-md);
}

.apcig-product-item {
    border-bottom: 1px solid #E5E7EB;
    transition: background-color 0.2s ease;
}

.apcig-product-item:last-child {
    border-bottom: none;
}

.apcig-product-item:hover {
    background: var(--apcig-bg-sidebar);
}

.apcig-product-checkbox-label {
    display: flex;
    align-items: center;
    padding: var(--apcig-space-md);
    cursor: pointer;
    gap: var(--apcig-space-md);
}

.apcig-product-checkbox {
    margin: 0;
    flex-shrink: 0;
}

.apcig-product-info {
    display: flex;
    align-items: center;
    gap: var(--apcig-space-md);
    flex: 1;
}

.apcig-product-image {
    width: 50px;
    height: 50px;
    border-radius: var(--apcig-radius-sm);
    overflow: hidden;
    background: var(--apcig-bg-sidebar);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.apcig-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.apcig-product-details {
    flex: 1;
}

.apcig-product-title {
    font-size: var(--apcig-text-body-md);
    font-weight: 600;
    margin: 0 0 var(--apcig-space-xxs) 0;
    color: var(--apcig-neutral-gray);
}

.apcig-product-meta {
    display: flex;
    gap: var(--apcig-space-sm);
    margin-bottom: var(--apcig-space-xs);
    font-size: var(--apcig-text-body-sm);
    color: var(--apcig-neutral-gray);
}

.apcig-product-price {
    font-weight: 600;
    color: var(--apcig-primary-blue);
}

.apcig-product-sku {
    color: var(--apcig-neutral-gray);
}

/* Category Grid */
.apcig-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--apcig-space-md);
}

.apcig-category-option {
    display: flex;
    align-items: center;
    gap: var(--apcig-space-sm);
    padding: var(--apcig-space-md);
    border: 1px solid #E5E7EB;
    border-radius: var(--apcig-radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.apcig-category-option:hover {
    border-color: var(--apcig-primary-blue);
    background: rgba(37, 99, 235, 0.05);
}

.apcig-category-option input[type="checkbox"] {
    margin: 0;
}

.apcig-category-info {
    flex: 1;
}

.apcig-category-info strong {
    display: block;
    color: var(--apcig-neutral-gray);
    margin-bottom: 2px;
}

.apcig-category-info small {
    color: #9CA3AF;
}

/* Filter Options */
.apcig-filter-options {
    display: flex;
    flex-direction: column;
    gap: var(--apcig-space-lg);
}

.apcig-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: var(--apcig-space-sm);
}

.apcig-price-range,
.apcig-date-range {
    display: flex;
    align-items: center;
    gap: var(--apcig-space-sm);
}

.apcig-price-range span,
.apcig-date-range span {
    color: var(--apcig-neutral-gray);
}

/* Selection Summary */
.apcig-selection-summary {
    padding: var(--apcig-space-md);
    background: var(--apcig-bg-sidebar);
    border-radius: var(--apcig-radius-md);
    text-align: center;
}

.apcig-selection-summary strong {
    color: var(--apcig-primary-blue);
}

/* Action Options */
.apcig-action-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--apcig-space-md);
}

.apcig-radio-card {
    cursor: pointer;
}

.apcig-radio-card input[type="radio"] {
    display: none;
}

.apcig-radio-content {
    padding: var(--apcig-space-lg);
    border: 2px solid #E5E7EB;
    border-radius: var(--apcig-radius-lg);
    text-align: center;
    transition: all 0.2s ease;
}

.apcig-radio-card:hover .apcig-radio-content {
    border-color: var(--apcig-primary-blue);
    background: rgba(37, 99, 235, 0.05);
}

.apcig-radio-card input[type="radio"]:checked + .apcig-radio-content {
    border-color: var(--apcig-primary-blue);
    background: rgba(37, 99, 235, 0.1);
}

.apcig-radio-content .dashicons {
    font-size: 32px;
    color: var(--apcig-primary-blue);
    margin-bottom: var(--apcig-space-sm);
}

.apcig-radio-content strong {
    display: block;
    color: var(--apcig-neutral-gray);
    margin-bottom: var(--apcig-space-xs);
}

.apcig-radio-content small {
    color: #9CA3AF;
}

/* Content Types */
.apcig-content-types {
    display: flex;
    flex-direction: column;
    gap: var(--apcig-space-sm);
}

/* Settings Row */
.apcig-settings-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--apcig-space-md);
}

/* Processing Options */
.apcig-processing-options,
.apcig-batch-settings {
    margin-top: var(--apcig-space-lg);
    padding-top: var(--apcig-space-lg);
    border-top: 1px solid #E5E7EB;
}

.apcig-processing-options h4,
.apcig-batch-settings h4 {
    margin: 0 0 var(--apcig-space-md) 0;
    color: var(--apcig-primary-blue);
    font-size: var(--apcig-text-h3);
    font-weight: 600;
}

/* Start Processing */
.apcig-start-processing {
    display: flex;
    justify-content: center;
    margin-bottom: var(--apcig-space-xl);
}

/* Job Controls */
.apcig-job-controls {
    display: flex;
    gap: var(--apcig-space-xs);
}

/* Job Info */
.apcig-job-info {
    display: flex;
    flex-direction: column;
    gap: var(--apcig-space-md);
}

.apcig-job-title {
    font-size: var(--apcig-text-h3);
    color: var(--apcig-primary-blue);
}

.apcig-job-progress {
    display: flex;
    flex-direction: column;
    gap: var(--apcig-space-sm);
}

.apcig-current-item {
    font-size: var(--apcig-text-body-sm);
    color: var(--apcig-neutral-gray);
}

/* Queue Placeholder */
.apcig-queue-placeholder {
    text-align: center;
    padding: var(--apcig-space-xl);
    color: var(--apcig-neutral-gray);
}

.apcig-queue-placeholder .dashicons {
    font-size: 32px;
    margin-bottom: var(--apcig-space-sm);
    opacity: 0.5;
}

/* Results Actions */
.apcig-results-actions {
    display: flex;
    justify-content: center;
    gap: var(--apcig-space-md);
    margin-top: var(--apcig-space-lg);
}

/* Responsive Design for Bulk Processing */
@media (max-width: 768px) {
    .apcig-setup-grid {
        grid-template-columns: 1fr;
    }
    
    .apcig-action-options {
        grid-template-columns: 1fr;
    }
    
    .apcig-settings-row {
        grid-template-columns: 1fr;
    }
    
    .apcig-category-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Dashboard Page Specific Styles
   ======================================== */

/* Dashboard styles are already in the main admin.css file */
/* No additional inline styles needed for dashboard.php */
