/*
 * ByteOS Custom Theme — Dark + Orange
 * Built on Tailwind CSS 4 utility classes
 */

/* ===== Custom gradient backgrounds ===== */
.bg-bc-gradient {
  background: linear-gradient(135deg, #09090b 0%, #18181b 50%, #1c1410 100%);
}

.bg-bc-sidebar {
  background: linear-gradient(180deg, #09090b 0%, #0f0f12 50%, #131114 100%);
}

.bg-bc-login {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(232, 86, 60, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(249, 115, 22, 0.05) 0%, transparent 40%),
    linear-gradient(135deg, #09090b 0%, #0c0a09 40%, #09090b 100%);
}

.bg-bc-card {
  background: linear-gradient(145deg, rgba(24, 24, 27, 0.9) 0%, rgba(24, 24, 27, 0.7) 100%);
  border: 1px solid rgba(63, 63, 70, 0.5);
  backdrop-filter: blur(8px);
}

/* ===== KPI card top accent bar ===== */
.kpi-accent {
  position: relative;
  overflow: hidden;
}
.kpi-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #E8563C, #F97316, #E8563C);
}

/* ===== Orange glow button ===== */
.btn-bc {
  background: linear-gradient(135deg, #E8563C 0%, #ea580c 100%);
  color: white;
  transition: all 0.2s ease;
  box-shadow: 0 0 0 0 rgba(232, 86, 60, 0);
}
.btn-bc:hover {
  background: linear-gradient(135deg, #dc4a30 0%, #c2410c 100%);
  box-shadow: 0 4px 20px -4px rgba(232, 86, 60, 0.4);
}

/* ===== Glass card for login ===== */
.glass-card {
  background: rgba(24, 24, 27, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(63, 63, 70, 0.4);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* ===== Subtle noise texture overlay ===== */
.noise-overlay::after {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 50;
}

/* ===== Dark form inputs ===== */
.input-dark {
  background-color: #27272a;
  border: 1px solid #3f3f46;
  color: #fafafa;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input-dark::placeholder {
  color: #71717a;
}
.input-dark:focus {
  outline: none;
  border-color: #E8563C;
  box-shadow: 0 0 0 2px rgba(232, 86, 60, 0.2);
}

/* ===== Dark table styling ===== */
.table-dark thead th {
  background-color: rgba(39, 39, 42, 0.5);
  color: #a1a1aa;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.table-dark tbody tr {
  border-bottom: 1px solid rgba(63, 63, 70, 0.3);
  transition: background-color 0.15s ease;
}
.table-dark tbody tr:hover {
  background-color: rgba(39, 39, 42, 0.3);
}
.table-dark tfoot td {
  background-color: rgba(39, 39, 42, 0.5);
}

/* ===== Sidebar nav link active indicator ===== */
.nav-active {
  position: relative;
  background: rgba(232, 86, 60, 0.1);
  color: #E8563C;
}
.nav-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #E8563C, #F97316);
}

/* ===== Scrollbar styling for dark theme ===== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #3f3f46;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #52525b;
}

/* ===== Status badges ===== */
.badge-active {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
}
.badge-draft {
  background: rgba(250, 204, 21, 0.15);
  color: #facc15;
}
.badge-archived {
  background: rgba(161, 161, 170, 0.15);
  color: #a1a1aa;
}
.badge-admin {
  background: rgba(232, 86, 60, 0.15);
  color: #E8563C;
}
.badge-viewer {
  background: rgba(161, 161, 170, 0.15);
  color: #a1a1aa;
}
