/* file: public/assets/css/admin-shell.css
 * Authenticated admin — ambient grid, sidebar edge, shared polish. */

.admin-shell {
  position: relative;
  isolation: isolate;
}

.admin-shell-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 100% 70% at 15% 10%, rgba(14, 165, 233, 0.09), transparent 55%),
    radial-gradient(ellipse 80% 60% at 85% 90%, rgba(139, 92, 246, 0.07), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(255, 255, 255, 0.02), transparent 70%),
    #0a0a0b;
}

.admin-shell-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 85% 75% at 40% 35%, black 10%, transparent 72%);
}

/*
 * Desktop admin layout fallback: partial Tailwind builds may omit lg:* utilities on this shell.
 * Loads after main.css; higher specificity than .flex.flex-col alone.
 */
@media (min-width: 1024px) {
  body.admin-shell .admin-shell-inner.flex.flex-col {
    flex-direction: row;
  }

  body.admin-shell .admin-shell-inner > .admin-main {
    flex: 1 1 0%;
    min-width: 0;
    min-height: 0;
  }

  body.admin-shell .admin-shell-inner > aside {
    width: 17.5rem;
    min-width: 17.5rem;
    max-width: 17.5rem;
    flex-shrink: 0;
    align-self: stretch;
    min-height: 100vh;
    height: auto;
    border-top-width: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -24px 0 80px rgba(0, 0, 0, 0.35);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .admin-sidebar-glow {
    animation: admin-sidebar-pulse 12s ease-in-out infinite;
  }
}

@keyframes admin-sidebar-pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.85;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-sidebar-glow {
    opacity: 0.55;
  }
}

/* Match dashboard / login display tone on other admin pages */
.admin-main h1.text-2xl {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .admin-main h1.text-2xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
}

/* Table polish (existing admin list views) */
.admin-main tbody tr {
  transition: background-color 0.2s ease;
}

.admin-main tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

.admin-main thead {
  border-color: rgba(56, 189, 248, 0.12);
}

/* Primary pill actions ("New", "Save") */
.admin-main a.rounded-full.bg-white,
.admin-main button.rounded-full.bg-white {
  transition:
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-main a.rounded-full.bg-white:hover,
.admin-main button.rounded-full.bg-white:hover {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 0 40px rgba(56, 189, 248, 0.22);
  transform: translateY(-1px);
}

.admin-main input:not([type='checkbox']):not([type='radio']]):focus,
.admin-main textarea:focus,
.admin-main select:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.45) !important;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.15);
}
