/* ==========================================================================
   admin-views.css - Common Layout & Cards for Admin Views
   Dooze Clip Generator / Clean Workspace (Gemini Borderless Style)
   ========================================================================== */

.admin-view {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  animation: viewFadeIn 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes viewFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* View Header */
.view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 0;
}

.view-header-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.view-title {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.view-subtitle {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.view-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Stat Summary Row */
.view-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.view-stat-card {
  background: var(--surface);
  border: 0 !important;
  border-radius: var(--radius-card, 22px);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 16px -6px rgba(0, 0, 0, 0.4);
  transition: all 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.view-stat-card:hover {
  background: var(--surface-raised, #282a2c);
  transform: translateY(-2px);
}

.view-stat-label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  font-weight: 500;
}

.view-stat-value {
  font-size: 26px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  font-family: var(--font-family, inherit);
}

.view-stat-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Common Filter Chips Row */
.view-filters-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.view-chips-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.view-chip {
  background: rgba(255, 255, 255, 0.07);
  border: 0 !important;
  outline: none;
  border-radius: var(--radius-pill, 999px);
  height: 36px;
  padding: 0 18px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 140ms cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  white-space: nowrap;
}

.view-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.view-chip.is-active {
  background: rgba(168, 199, 250, 0.18);
  color: var(--accent);
  font-weight: 500;
}

/* Clean Admin Search Input */
.view-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 0 !important;
  border-radius: var(--radius-pill, 999px);
  height: 36px;
  padding: 0 16px;
  min-width: 260px;
  transition: all 140ms ease;
}

.view-search-box:focus-within {
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 0 0 2px rgba(168, 199, 250, 0.25);
}

.view-search-box svg {
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.view-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 13px;
  width: 100%;
}

.view-search-input::placeholder {
  color: var(--text-tertiary);
}

/* Empty State */
.view-empty-state {
  text-align: center;
  padding: 68px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 0 !important;
  border-radius: var(--radius-card, 22px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.view-empty-icon {
  width: 48px;
  height: 48px;
  color: var(--text-tertiary);
}

.view-empty-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
}

.view-empty-desc {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 440px;
  margin: 0;
  line-height: 1.5;
}
