/*************************************************
 * Image Library - Main Styles
 * Matches SuperPowerPointer aesthetic
 *************************************************/

/*************************************************
 * Main Container
 *************************************************/

.il-main-container {
  display: flex;
  height: calc(100vh - 96px);
}

/*************************************************
 * Sidebar
 *************************************************/

.il-sidebar {
  width: 280px;
  background: #ffffff;
  border-right: 1px solid #c9ced6;
  overflow-y: auto;
  flex-shrink: 0;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.08);
}

.il-sidebar-section {
  padding: 16px;
  border-bottom: 1px solid #e0e4ea;
}

.il-sidebar-section h3 {
  font-size: 12px;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.il-category-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.il-category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease;
}

.il-category-item:hover {
  background: rgba(11, 45, 79, 0.06);
}

.il-category-item.active {
  background: rgba(11, 45, 79, 0.1);
  font-weight: 600;
  box-shadow: inset 4px 0 0 #02a8ff;
}

.il-category-item.loading {
  color: #9ca3af;
  font-style: italic;
  cursor: default;
}

.il-category-item.loading:hover {
  background: transparent;
}

.il-category-count {
  background: linear-gradient(to bottom, #f0f2f4, #e3e6ea);
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 12px;
  color: #4b5563;
  border: 1px solid #c9ced6;
}

.il-category-item.active .il-category-count {
  background: linear-gradient(to bottom, #0b2d4f, #0a2540);
  color: white;
  border-color: #0b2d4f;
}

/*************************************************
 * Library Tabs (in Sidebar)
 *************************************************/

.il-library-tabs {
  display: flex;
  padding: 12px;
  gap: 8px;
  border-bottom: 1px solid #e0e4ea;
  background: linear-gradient(to bottom, #f8f9fa, #f0f2f4);
}

.il-library-tab {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid #c9ced6;
  border-radius: 6px;
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.15s ease;
}

.il-library-tab:hover {
  background: #f8f9fa;
}

.il-library-tab.active {
  background: linear-gradient(to bottom, #0b2d4f, #0a2540);
  color: white;
  border-color: #0b2d4f;
  box-shadow: 0 2px 4px rgba(11, 45, 79, 0.3);
}

.il-library-tab.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/*************************************************
 * Filter Row (chips + selection actions inline)
 *************************************************/

.il-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

/*************************************************
 * Selection Actions (inline)
 *************************************************/

.il-selection-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: linear-gradient(to bottom, #e8f4ff, #d4ebff);
  border: 1px solid #02a8ff;
  border-radius: 6px;
}

#selection-count {
  font-weight: 600;
  color: #0b2d4f;
  font-size: 13px;
  white-space: nowrap;
}

.il-btn-sm {
  padding: 6px 12px !important;
  font-size: 12px !important;
}

.il-btn-text {
  background: transparent !important;
  border: none !important;
  color: #6b7280 !important;
  padding: 6px 8px !important;
}

.il-btn-text:hover {
  color: #0b2d4f !important;
  background: rgba(0,0,0,0.05) !important;
}

.il-btn-save-highlight {
  background: linear-gradient(to bottom, #02a8ff, #0090e0) !important;
  border-color: #0090e0 !important;
  animation: pulse-glow 2s infinite;
}

.il-btn-danger {
  background: linear-gradient(to bottom, #ef4444, #dc2626) !important;
  border-color: #dc2626 !important;
  color: white !important;
  animation: none !important;
}

.il-btn-danger:hover {
  background: linear-gradient(to bottom, #dc2626, #b91c1c) !important;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(2, 168, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 12px rgba(2, 168, 255, 0.7);
  }
}

/*************************************************
 * Image Card Checkbox
 *************************************************/

.il-image-card {
  position: relative;
}

.il-image-card .il-select-checkbox {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 22px;
  height: 22px;
  cursor: pointer;
  z-index: 10;
  accent-color: #02a8ff;
}

.il-image-card.selected {
  outline: 3px solid #02a8ff;
  outline-offset: -3px;
}

.il-image-card.selected .il-image-preview {
  opacity: 0.85;
}

/*************************************************
 * Content Area
 *************************************************/

.il-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/*************************************************
 * Tabs
 *************************************************/

.il-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
}

.il-tab {
  padding: 10px 20px;
  min-width: 140px;

  background: linear-gradient(to bottom, #f0f2f4, #e3e6ea);
  border: 1px solid #b8bec7;
  border-radius: 8px;

  font-size: 14px;
  font-weight: 600;
  color: #0b2d4f;

  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);

  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.il-tab:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.il-tab.active {
  background: linear-gradient(to bottom, #e0e4ea, #d2d7df);
  font-weight: 700;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.25),
    inset 0 -1px 0 rgba(255, 255, 255, 0.4);
}

/*************************************************
 * Sections
 *************************************************/

.il-section {
  display: none;
}

.il-section.active {
  display: block;
}

/*************************************************
 * Search Bar
 *************************************************/

.il-search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.il-search-input {
  flex: 1;
  padding: 12px 16px;
  font-size: 14px;

  border-radius: 6px;
  border: 1px solid #b8bec7;

  background: linear-gradient(to bottom, #f7f8fa, #e9ecf0);
  color: #0b2d4f;

  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
}

.il-search-input:focus {
  outline: none;
  border-color: #0b2d4f;
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(11, 45, 79, 0.15);
}

.il-search-input::placeholder {
  color: #9ca3af;
}

.il-search-row {
  display: flex;
  gap: 12px;
}

/*************************************************
 * Buttons
 *************************************************/

.il-btn {
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.il-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.il-btn-primary {
  background: linear-gradient(to bottom, #f0f2f4, #e3e6ea);
  border: 1px solid #b8bec7;
  color: #0b2d4f;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.il-btn-primary:hover:not(:disabled) {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.il-btn-primary:active:not(:disabled) {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

.il-btn-secondary {
  background: linear-gradient(to bottom, #f7f8fa, #ebedf1);
  border: 1px solid #c9ced6;
  color: #4b5563;
}

.il-btn-secondary:hover:not(:disabled) {
  background: linear-gradient(to bottom, #f0f2f4, #e3e6ea);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.il-btn-danger {
  color: #b91c1c;
  border: 1px solid #fca5a5;
  background: linear-gradient(to bottom, #fef2f2, #fee2e2);
}

.il-btn-danger:hover:not(:disabled) {
  border-color: #b91c1c;
}

/*************************************************
 * Filter Chips
 *************************************************/

.il-filter-chips {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.il-chip {
  padding: 8px 16px;

  background: linear-gradient(to bottom, #f0f2f4, #e3e6ea);
  border: 1px solid #b8bec7;
  border-radius: 6px;

  font-size: 13px;
  font-weight: 500;
  color: #0b2d4f;

  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  transition: all 0.15s ease;
}

.il-chip:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.il-chip.active {
  background: linear-gradient(to bottom, #e0e4ea, #d2d7df);
  font-weight: 700;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.25),
    inset 0 -1px 0 rgba(255, 255, 255, 0.4);
}

/*************************************************
 * Stats Bar
 *************************************************/

.il-stats-bar {
  margin-bottom: 16px;
  font-size: 13px;
  color: #6b7280;
}

/*************************************************
 * Image Grid
 *************************************************/

.il-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.il-image-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  position: relative;
}

.il-image-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.il-image-card.selected {
  outline: 4px solid rgba(11, 45, 79, 0.7);
  outline-offset: -4px;
}

.il-image-preview {
  width: 100%;
  height: 160px;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.il-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.il-image-info {
  padding: 14px;
  border-top: 1px solid #e0e4ea;
}

.il-image-name {
  font-size: 13px;
  font-weight: 600;
  color: #0b2d4f;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.il-image-meta {
  font-size: 12px;
  color: #6b7280;
  display: flex;
  justify-content: space-between;
}

.il-image-tags {
  display: flex;
  gap: 4px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.il-tag {
  background: linear-gradient(to bottom, #f0f2f4, #e3e6ea);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  color: #4b5563;
  border: 1px solid #d1d5db;
}

.il-image-checkbox {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  width: 22px;
  height: 22px;
  cursor: pointer;
  accent-color: #0b2d4f;
}

/*************************************************
 * Upload Zone
 *************************************************/

.il-upload-zone {
  background: linear-gradient(to bottom, #f0f2f4, #e3e6ea);
  border: 2px dashed #b8bec7;
  border-radius: 14px;
  padding: 60px;
  text-align: center;
  margin-bottom: 24px;

  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);

  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.il-upload-zone:hover,
.il-upload-zone.dragover {
  border-color: #0b2d4f;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.il-upload-icon {
  width: 72px;
  height: 72px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: #0b2d4f;
  font-weight: 300;
}

.il-upload-text {
  font-size: 18px;
  font-weight: 600;
  color: #0b2d4f;
  margin-bottom: 8px;
}

.il-upload-subtext {
  font-size: 14px;
  color: #6b7280;
}

/*************************************************
 * Upload Preview
 *************************************************/

.il-upload-preview {
  margin-bottom: 24px;
}

.il-upload-preview h3 {
  font-size: 14px;
  font-weight: 600;
  color: #0b2d4f;
  margin-bottom: 12px;
}

.il-upload-preview-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.il-upload-preview-item {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  background: #e5e7eb;
  position: relative;
}

.il-upload-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.il-upload-preview-item .remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/*************************************************
 * Settings Panel
 *************************************************/

.il-settings-panel {
  background: #ffffff;
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
}

.il-settings-panel h3 {
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: 700;
  color: #0b2d4f;
}

/*************************************************
 * Detail Rows
 *************************************************/

.il-detail-row {
  margin-bottom: 18px;
}

.il-detail-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.il-detail-value {
  font-size: 14px;
  color: #0b2d4f;
}

.il-detail-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;

  border-radius: 6px;
  border: 1px solid #b8bec7;

  background: linear-gradient(to bottom, #f7f8fa, #e9ecf0);
  color: #0b2d4f;

  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.il-detail-input:focus {
  outline: none;
  border-color: #0b2d4f;
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(11, 45, 79, 0.15);
}

.il-category-select {
  padding: 10px 14px;
  font-size: 14px;

  border-radius: 6px;
  border: 1px solid #b8bec7;

  background: linear-gradient(to bottom, #f7f8fa, #e9ecf0);
  color: #0b2d4f;

  min-width: 200px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

.il-category-select:focus {
  outline: none;
  border-color: #0b2d4f;
}

.il-checkbox-row {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.il-checkbox-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #0b2d4f;
}

.il-checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #0b2d4f;
}

.il-action-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/*************************************************
 * Unsplash Section
 *************************************************/

.il-unsplash-search-box {
  background: #ffffff;
  padding: 24px;
  border-radius: 14px;
  margin-bottom: 24px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
}

.il-unsplash-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.il-unsplash-logo {
  width: 40px;
  height: 40px;
  background: #000000;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 20px;
}

.il-unsplash-title {
  font-size: 18px;
  font-weight: 700;
  color: #0b2d4f;
}

.il-unsplash-subtitle {
  font-size: 13px;
  color: #6b7280;
}

.il-tip-box {
  background: linear-gradient(to bottom, #fefce8, #fef9c3);
  border: 1px solid #eab308;
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 14px;
  color: #854d0e;
  box-shadow: 0 4px 12px rgba(234, 179, 8, 0.15);
}

.il-tip-box strong {
  color: #713f12;
}

/*************************************************
 * Modal
 *************************************************/

.il-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.il-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.il-modal {
  background: #ffffff;
  border-radius: 14px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.2s ease;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.il-modal-overlay.active .il-modal {
  transform: scale(1);
}

.il-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e0e4ea;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, #f7f8fa, #f0f2f4);
}

.il-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #0b2d4f;
}

.il-modal-close {
  width: 32px;
  height: 32px;
  border: 1px solid #c9ced6;
  background: linear-gradient(to bottom, #f0f2f4, #e3e6ea);
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  transition: all 0.15s ease;
}

.il-modal-close:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.il-modal-body {
  padding: 24px;
  display: flex;
  gap: 24px;
}

.il-modal-image {
  width: 400px;
  height: 280px;
  background: #e5e7eb;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.il-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.il-modal-details {
  flex: 1;
}

.il-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e0e4ea;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: linear-gradient(to bottom, #f7f8fa, #f0f2f4);
}

/*************************************************
 * Pagination
 *************************************************/

.il-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
}

.il-page-btn {
  width: 38px;
  height: 38px;

  background: linear-gradient(to bottom, #f0f2f4, #e3e6ea);
  border: 1px solid #b8bec7;
  border-radius: 6px;

  font-size: 14px;
  font-weight: 500;
  color: #0b2d4f;

  cursor: pointer;
  transition: all 0.15s ease;
}

.il-page-btn:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.il-page-btn.active {
  background: linear-gradient(to bottom, #0b2d4f, #0a2540);
  color: white;
  border-color: #0b2d4f;
}

.il-page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/*************************************************
 * Loading & Empty States
 *************************************************/

.il-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
  font-size: 14px;
}

.il-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
}

.il-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(to bottom, #f0f2f4, #e3e6ea);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  color: #9ca3af;
}

/*************************************************
 * Spinner Overlay
 *************************************************/

.il-spinner-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(255, 255, 255, 0.85);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.il-spinner-overlay.hidden {
  display: none;
}

.il-spinner {
  width: 48px;
  height: 48px;

  border: 4px solid #cbd5e1;
  border-top-color: #0b2d4f;
  border-radius: 50%;

  animation: il-spinner-rotate 0.9s linear infinite;
}

.il-spinner-label {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

@keyframes il-spinner-rotate {
  to {
    transform: rotate(360deg);
  }
}

/*************************************************
 * Header Link Active State
 *************************************************/

.header-link.active {
  background: linear-gradient(to bottom, #e0e4ea, #d2d7df);
  font-weight: 700;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.25),
    inset 0 -1px 0 rgba(255, 255, 255, 0.4);
}

/*************************************************
 * Added Categories Section
 *************************************************/

#added-categories-section {
  border-top: 2px solid #02a8ff;
}

.il-section-header-collapsible {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.il-section-header-collapsible .il-btn-text {
  font-size: 18px !important;
  padding: 4px 8px !important;
  color: #02a8ff !important;
}

.il-section-header-collapsible .il-btn-text:hover {
  color: #0090e0 !important;
  background: rgba(2, 168, 255, 0.1) !important;
}

.il-added-category-list .il-category-item {
  position: relative;
  padding-right: 32px;
}

.il-category-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.il-category-edit-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  opacity: 0;
  transition: all 0.15s ease;
}

.il-category-item:hover .il-category-edit-btn {
  opacity: 1;
}

.il-category-edit-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #0b2d4f;
}

/*************************************************
 * Small Modal Variant
 *************************************************/

.il-modal.il-modal-sm {
  max-width: 450px;
}

.il-modal.il-modal-sm .il-modal-body {
  display: block;
}

/*************************************************
 * Category Dropdown Highlight (when selected)
 *************************************************/

.il-category-select.il-category-highlight {
  border: 2px solid #02a8ff;
  box-shadow: 0 0 8px rgba(2, 168, 255, 0.4);
  animation: category-glow 1.5s ease-in-out infinite;
}

@keyframes category-glow {
  0%, 100% {
    box-shadow: 0 0 8px rgba(2, 168, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 16px rgba(2, 168, 255, 0.6);
  }
}

.il-category-select.has-selection {
  border: 2px solid #02a8ff;
  background: linear-gradient(to bottom, #e8f4ff, #d4ebff);
}

/*************************************************
 * Unsplash Header Row (with import controls)
 *************************************************/

.il-unsplash-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

/*************************************************
 * Unsplash Import Controls (top right position)
 *************************************************/

.il-unsplash-import-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.il-btn-import-highlight {
  background: linear-gradient(to bottom, #02a8ff, #0090e0) !important;
  border-color: #0090e0 !important;
  color: white !important;
  box-shadow: 0 0 12px rgba(2, 168, 255, 0.5);
  animation: import-glow 1.5s ease-in-out infinite;
}

@keyframes import-glow {
  0%, 100% {
    box-shadow: 0 0 8px rgba(2, 168, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 16px rgba(2, 168, 255, 0.7);
  }
}

/*************************************************
 * Upload Category Highlight
 *************************************************/

#upload-category.has-selection {
  border: 2px solid #02a8ff;
  background: linear-gradient(to bottom, #e8f4ff, #d4ebff);
  box-shadow: 0 0 8px rgba(2, 168, 255, 0.4);
}
