/* Document card entrance animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* AI panel slide-in animation */
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* AI assistant sidebar entrance */
.ai-sidebar-enter {
  animation: slideInRight 0.25s ease-out;
}

/* Filter group styling */
.filter-group {
  border-bottom: 1px solid #e5e7eb;
}

.filter-header {
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  background: #f9fafb;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-header::before {
  content: '\25B6';
  font-size: 0.6rem;
  transition: transform 0.2s;
}

.filter-header[data-expanded="true"]::before {
  transform: rotate(90deg);
}

.filter-header:hover {
  background: #f3f4f6;
}

/* Toolbar buttons */
.toolbar-btn {
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.toolbar-btn:hover {
  background: #f3f4f6;
}

/* Panel tabs */
.panel-tab {
  padding: 6px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  color: #6b7280;
}

.panel-tab.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.panel-tab:hover:not(.active) {
  color: #374151;
}

/* Classification badges */
.badge-major {
  background: #dc2626;
  color: white;
}

.badge-minor {
  background: #eab308;
  color: #1f2937;
}

.badge-oilgas {
  background: #22c55e;
  color: white;
}

.badge-synthetic_minor {
  background: #f97316;
  color: white;
}

/* Detail list */
.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 0.8125rem;
  border-bottom: 1px solid #f3f4f6;
}

.detail-label {
  font-weight: 500;
  color: #374151;
}

.detail-value {
  color: #6b7280;
  text-align: right;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Section headers in panel */
.section-header {
  background: #1a3a5c;
  color: white;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-header::before {
  content: '\25B6';
  font-size: 0.5rem;
  transition: transform 0.2s;
}

.section-header.expanded::before {
  transform: rotate(90deg);
}

/* ArcGIS overrides */
.esri-view .esri-view-surface--inset-outline:focus::after {
  outline: none !important;
}
