@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================================
   PREMIUM DARK PANEL — NETFLIX EDITION
   Professional & Elegant Design System
   ============================================================ */

:root {
  /* Core Backgrounds */
  --dash-black:       #0D0B18;
  --dash-dark-bg:     #1A1924;
  --dash-card-bg:     rgba(26, 25, 36, 0.88);
  --dash-card-header: rgba(30, 25, 52, 0.95);
  --dash-sidebar-bg:  rgba(13, 11, 24, 0.96);

  /* Purple / Orange Accent System */
  --accent-red:       #FF7A00;
  --accent-red-dim:   rgba(255, 122, 0, 0.15);
  --accent-red-glow:  rgba(255, 122, 0, 0.4);

  /* Secondary Accents */
  --accent-green:     #7B2CBF;
  --accent-orange:    #FF7A00;
  --accent-pink:      #7B2CBF;
  --accent-gold:      #FF7A00;

  /* Typography */
  --text-primary:   #ffffff;
  --text-secondary: #a3a3a3;
  --text-muted:     #6b6b6b;

  /* Borders & Glass */
  --border-glass:   1px solid rgba(255, 255, 255, 0.06);
  --border-subtle:  1px solid rgba(255, 255, 255, 0.04);
  --border-red:     1px solid rgba(123, 44, 191, 0.3);

  /* Shadows */
  --shadow-card:    0 8px 32px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-hover:   0 16px 48px rgba(123, 44, 191, 0.15), 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-btn:     0 4px 16px rgba(255, 122, 0, 0.35);
  --shadow-deep:    0 24px 60px rgba(0, 0, 0, 0.8);

  /* Animation */
  --ease-smooth:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce:    cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition:     all 0.3s var(--ease-smooth);
}

/* ============================================================
   GLOBAL RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  background-color: var(--dash-black) !important;
  background-image: none !important;
  color: var(--text-primary) !important;
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-red); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif !important;
  color: var(--text-primary) !important;
  letter-spacing: -0.3px;
  line-height: 1.3;
}

h2 { font-weight: 700 !important; font-size: 1.4rem !important; }
h3 { font-weight: 600 !important; font-size: 1.2rem !important; }
h4 { font-weight: 600 !important; }
h5 { font-weight: 600 !important; }

p { color: var(--text-secondary); }

/* ============================================================
   SIDEBAR
   ============================================================ */
#sidebar-wrapper {
  background: var(--dash-sidebar-bg) !important;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-right: var(--border-glass) !important;
  box-shadow: 1px 0 0 rgba(255,255,255,0.03), 8px 0 40px rgba(0,0,0,0.9);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Sidebar top logo area */
#sidebar-wrapper .sidebar-heading {
  padding: 2.5rem 1.5rem 2rem;
  border-bottom: var(--border-glass);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(180deg, rgba(123,44,191,0.18) 0%, transparent 100%);
  position: relative;
}

#sidebar-wrapper .sidebar-heading::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123,44,191,0.4), transparent);
}

/* Logo brand container */
.sidebar-heading-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.sidebar-heading-brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 16px;
  filter: drop-shadow(0 0 12px rgba(123,44,191,0.5));
  transition: var(--transition);
}

.sidebar-heading-brand img:hover {
  filter: drop-shadow(0 0 22px rgba(123,44,191,0.9));
  transform: scale(1.05);
}

.sidebar-heading-brand .brand-name {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-secondary);
  line-height: 1;
}

/* Sidebar nav items */
#sidebar-wrapper .list-group {
  padding: 1.25rem 0;
  flex: 1;
  overflow-y: auto;
}

#sidebar-wrapper .list-group-item {
  background-color: transparent !important;
  color: var(--text-muted) !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 0.85rem 1.25rem !important;
  margin: 0.2rem 0.85rem;
  width: calc(100% - 1.7rem) !important;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition) !important;
  position: relative;
  letter-spacing: 0.2px;
}

#sidebar-wrapper .list-group-item i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  transition: var(--transition);
  color: var(--text-muted) !important;
  flex-shrink: 0;
  margin-right: 0;
}

#sidebar-wrapper .list-group-item span {
  transition: var(--transition);
}

#sidebar-wrapper .list-group-item:hover {
  color: var(--text-primary) !important;
  background: rgba(123, 44, 191, 0.10) !important;
  transform: translateX(4px);
}

#sidebar-wrapper .list-group-item:hover i {
  color: #FF7A00 !important;
  filter: drop-shadow(0 0 6px rgba(255,122,0,0.45));
}

/* Sidebar footer */
.sidebar-brand-footer {
  margin-top: auto;
  padding: 1.25rem 1rem;
  border-top: var(--border-glass);
  text-align: center;
}

.sidebar-brand-footer a {
  color: var(--text-muted) !important;
  font-size: 0.78rem;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sidebar-brand-footer a:hover {
  color: var(--text-secondary) !important;
}

/* ============================================================
   NAVBAR (TOP BAR)
   ============================================================ */

/* ============================================================
   SIDEBAR: Especial - efecto para botones laterales
   ============================================================ */
#sidebar-wrapper .side-effect {
  background: rgba(255,255,255,0.02) !important;
  border-radius: 8px;
  margin: 6px 8px;
  padding: 10px 12px;
  color: var(--text-primary) !important;
  border-left: 4px solid rgba(255,122,0,0.95) !important;
  box-shadow: 0 8px 30px rgba(123,44,191,0.08);
  transition: transform .18s var(--ease-smooth), box-shadow .18s var(--ease-smooth);
}

#sidebar-wrapper .side-effect:hover {
  transform: translateX(6px);
  box-shadow: 0 14px 40px rgba(123,44,191,0.18);
}

/* Estado activo para elementos con efecto lateral */
#sidebar-wrapper .list-group-item.active.side-effect {
  background: linear-gradient(90deg, rgba(123,44,191,1), rgba(255,122,0,0.92)) !important;
  color: #fff !important;
  border-left-color: transparent !important;
  box-shadow: 0 18px 50px rgba(123,44,191,0.35) !important;
  transform: translateX(6px) !important;
}

#sidebar-wrapper .list-group-item.active.side-effect i {
  color: #fff !important;
  filter: drop-shadow(0 0 18px rgba(255,122,0,0.4));
}

#page-content-wrapper {
  background: var(--dash-black) !important;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

.navbar {
  background: rgba(10, 10, 10, 0.85) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: var(--border-glass);
  padding: 0.85rem 1.75rem !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.03), 0 4px 24px rgba(0,0,0,0.6);
  position: sticky;
  top: 0;
  z-index: 100;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 767px) {
  .navbar {
    padding: 0.75rem 1rem !important;
  }

  .navbar .ml-auto {
    margin-left: 0 !important;
    margin-top: 0.25rem;
  }

  .navbar #pageMessages {
    order: 3;
    width: 100%;
    left: 0;
    transform: none;
    position: relative;
    top: 0;
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  font-family: 'Outfit', sans-serif !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.3px;
  padding: 6px 12px !important;
  transition: var(--transition) !important;
  border: none !important;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: normal;
}

/* Small status buttons styling (normalized later) */

.table tbody td .btn,
.table-responsive .table tbody td .btn,
.dns-page .dns-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px !important;
  margin: 0 !important;
}

.table tbody td .btn i,
.table-responsive .table tbody td .btn i,
.dns-page .dns-actions .btn i {
  margin: 0 !important;
}

@media (max-width: 767px) {
  .btn {
    width: 100%;
    padding: 10px 14px !important;
    font-size: 0.8rem !important;
  }

  .btn-sm {
    padding: 6px 10px !important;
    font-size: 0.76rem !important;
    border-radius: 8px !important;
    line-height: 1;
  }

  .d-flex.gap-2, .gap-2 {
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  .status-form,
  .status-form-bottom {
    width: auto !important;
    max-width: 160px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .status-button-sm,
  .status-card .status-badge,
  .status-card .badge {
    width: auto !important;
    max-width: 160px !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .status-card .badge {
    display: inline-flex !important;
  }

  .status-button-sm {
    margin-top: 0.35rem;
  }

  .form-group .form-control,
  .custom-file-input + .custom-file-label {
    width: 100%;
  }
}

/* Primary / Info → Orange / Purple accent */
.btn-primary, .btn-info {
  background: var(--accent-red) !important;
  color: #fff !important;
  box-shadow: var(--shadow-btn) !important;
}

.btn-primary:hover, .btn-info:hover,
.btn-primary:focus, .btn-info:focus {
  background: #FF7A00 !important;
  box-shadow: 0 6px 24px rgba(255,122,0,0.5) !important;
  transform: translateY(-2px) scale(1.01);
  color: #fff !important;
}

/* Danger → Outlined orange */
.btn-danger {
  background: rgba(255, 122, 0, 0.08) !important;
  border: 1px solid rgba(255, 122, 0, 0.35) !important;
  color: var(--accent-red) !important;
  box-shadow: none !important;
  border-radius: 4px !important;
  min-height: 36px !important;
  padding: 6px 12px !important;
}

.btn-danger:hover, .btn-danger:focus {
  background: var(--accent-red) !important;
  border-color: var(--accent-red) !important;
  color: #fff !important;
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 6px 20px rgba(255, 122, 0, 0.4) !important;
}

/* Make warning buttons use the same orange style as logout/action buttons (no gradient) */
.btn-warning {
  background: rgba(255, 122, 0, 0.08) !important;
  border: 1px solid rgba(255, 122, 0, 0.35) !important;
  color: var(--accent-red) !important;
  box-shadow: none !important;
  border-radius: 4px !important;
  min-height: 52px !important;
  padding: 0.95rem 1.4rem !important;
}
.btn-warning:hover, .btn-warning:focus {
  background: var(--accent-red) !important;
  border-color: var(--accent-red) !important;
  color: #fff !important;
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 6px 20px rgba(255, 122, 0, 0.4) !important;
}

/* Deprecated: .btn-neon-red removed in favor of .btn-red-action */

/* Subtle orange glow behind cards to match the new palette */
.card {
  /* keep existing shadow but add a soft purple wash */
  box-shadow: var(--shadow-card), 0 8px 30px rgba(123,44,191,0.03) !important;
}

/* stronger but still subtle glow for status/important cards */
.status-card, .dark-panel, .dark-table-card {
  box-shadow: var(--shadow-card), 0 10px 36px rgba(123,44,191,0.04) !important;
}

/* Success */
.btn-success, .badge-success {
  background: linear-gradient(135deg, #7B2CBF 0%, #FF7A00 100%) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(255, 122, 0, 0.3) !important;
  border-radius: 4px !important;
  min-height: 36px !important;
  padding: 6px 12px !important;
}

.btn-success:hover, .btn-success:focus {
  background: linear-gradient(135deg, #FF7A00 0%, #7B2CBF 100%) !important;
  box-shadow: 0 6px 22px rgba(255, 122, 0, 0.45) !important;
  transform: translateY(-2px) scale(1.01);
}

/* Red action button copied from .btn-success but using red palette */
.btn-red-action {
  background: linear-gradient(135deg, #7B2CBF 0%, #FF7A00 100%) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 800 !important;
  box-shadow: 0 0 8px rgba(255,122,0,0.28) !important;
  border-radius: 4px !important;
  min-height: 36px !important;
  padding: 6px 12px !important;
  transition: box-shadow .18s ease, transform .12s ease, opacity .12s ease;
}
.btn-red-action:hover, .btn-red-action:focus {
  background: linear-gradient(135deg, #FF7A00 0%, #7B2CBF 100%) !important;
  box-shadow: 0 0 14px rgba(255,122,0,0.45), 0 6px 18px rgba(255,122,0,0.12) !important;
  transform: translateY(-2px) scale(1.02);
}

.badge-success {
  border-radius: 6px !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 12px !important;
  font-size: 0.75rem !important;
}

/* Warning */
/* Warning block consolidated above; gradient variant removed to keep red styling */

/* Secondary / Default */
.btn-secondary, .btn-default {
  background: rgba(255,255,255,0.06) !important;
  border: var(--border-glass) !important;
  color: var(--text-secondary) !important;
}

.btn-secondary:hover, .btn-default:hover {
  background: rgba(255,255,255,0.12) !important;
  color: var(--text-primary) !important;
  transform: translateY(-1px);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--dash-card-bg) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: var(--border-glass) !important;
  border-radius: 16px !important;
  box-shadow: var(--shadow-card) !important;
  overflow: hidden;
  margin-bottom: 1.75rem;
  transition: var(--transition);
  position: relative;
}

.status-card {
  background: #111 !important;
  border: 1px solid #333 !important;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: none !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.status-card .card-body {
  padding: 20px !important;
}

@media (max-width: 767px) {
  .status-card .card-body {
    padding: 16px !important;
  }

  .status-card .badge,
  .status-card .status-badge {
    width: 100% !important;
    max-width: 100% !important;
  }

  .status-card .d-flex.flex-column {
    width: 100%;
  }
}

.status-card.active {
  border-color: rgba(255,255,255,0.06) !important;
  box-shadow: none !important;
}

.status-card.active .status-badge,
.status-card.active .status-button-sm,
.status-card.active .btn-success {
  border: 1px solid var(--accent-red) !important;
  box-shadow: 0 6px 20px rgba(255,122,0,0.28) !important;
  background: linear-gradient(135deg, #FF7A00 0%, #7B2CBF 100%) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
  border-radius: 4px !important;
}

.status-card.active .status-button-sm {
  border: none !important;
  background: linear-gradient(135deg, #FF7A00 0%, #7B2CBF 100%) !important;
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(255,122,0,0.28) !important;
}

.status-card.active .status-button-sm:hover,
.status-card.active .status-button-sm:focus {
  background: linear-gradient(135deg, #FF8E2A 0%, #8440D9 100%) !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
}

.status-card .badge {
  width: 200px;
  text-align: center;
  display: block;
  margin-bottom: 8px;
}

.dark-panel {
  background: #111 !important;
  border: 1px solid #333 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

.dark-panel .dark-panel-header {
  background: #1a1a1a !important;
  border-bottom: 1px solid #333 !important;
  padding: 16px 20px !important;
}

@media (max-width: 767px) {
  .dark-panel .dark-panel-header,
  .dark-panel .dark-panel-header-sm,
  .dark-panel .dark-panel-body {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .dark-panel .dark-panel-header-sm {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* DNS page mobile adjustments */
.dns-page .form-control {
  font-size: 0.95rem;
  padding: 0.8rem 0.9rem;
}

.dns-page .table {
  min-width: 100%;
}

.dns-page .table thead th {
  text-align: center;
  padding: 1rem !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.dns-page .table thead th:first-child,
.dns-page .table thead th:nth-child(2),
.dns-page .table thead th:nth-child(3) {
  text-align: left;
}

.dns-page .table tbody td {
  padding: 1rem !important;
  vertical-align: middle;
  text-align: center;
}

.dns-page .table tbody td:first-child,
.dns-page .table tbody td:nth-child(2),
.dns-page .table tbody td:nth-child(3) {
  text-align: left;
}

.dns-page .table th,
.dns-page .table td {
  white-space: normal;
  word-break: break-word;
  vertical-align: middle;
}

.dns-page .dns-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.dns-page .dns-actions .btn {
  width: auto;
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px !important;
  margin: 0 !important;
}

.dns-page .dns-actions .btn i {
  margin: 0 !important;
}

.dns-page .table tbody td[data-label="Actions"] {
  text-align: center;
  line-height: 1;
}

@media (max-width: 767px) {
  .dns-page .card-body {
    padding: 1rem !important;
  }

  .dns-page .btn {
    width: 100%;
    margin-top: 0.25rem;
  }

  .dns-page .dns-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .dns-page .dns-actions .btn {
    width: 100%;
  }

  .dns-page .table thead {
    display: none;
  }

  .dns-page .table tbody tr {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .dns-page .table tbody td {
    display: block;
    border: none;
    padding: 0.25rem 0;
  }

  .dns-page .table tbody td::before {
    content: attr(data-label);
    display: inline-block;
    font-weight: 700;
    color: #fff;
    min-width: 90px;
    margin-right: 0.5rem;
  }
}

.dark-panel .dark-panel-header-sm {
  background: #1a1a1a !important;
  border-bottom: 1px solid #333 !important;
  padding: 14px 20px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dark-panel .dark-panel-body {
  padding: 24px !important;
}

.dark-panel .dark-panel-body-no-padding {
  padding: 0 !important;
}

.dark-panel .dark-panel-label {
  color: #aaa !important;
}

.dark-panel .dark-panel-input {
  background: #1a1a1a !important;
  border: 1px solid #333 !important;
  color: #fff !important;
}

.dark-panel .dark-file-label {
  background: #1a1a1a !important;
  border: 1px solid #333 !important;
  color: #666 !important;
}

.dark-panel .dark-small-text {
  color: #555 !important;
}

.dark-panel .img-preview-wrap {
  display: none;
  margin-top: 14px;
}

.dark-panel .img-preview-thumb {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid #333;
}

.status-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 160px !important;
  min-width: 160px !important;
  max-width: 160px !important;
  padding: 8px 14px !important;
  font-size: 12px !important;
  line-height: 1;
  margin-bottom: 8px !important;
  border-radius: 4px !important;
}

.status-badge.inactive {
  background: #333 !important;
  color: #888 !important;
}

.status-form {
  margin: 0;
  width: 180px;
}

.status-form-bottom {
  margin: 0;
  width: 180px;
  margin-bottom: 8px;
}

.status-button-sm {
  width: 160px !important;
  max-width: 160px !important;
  padding: 6px 10px !important;
  font-size: 11px !important;
  letter-spacing: 0.05em !important;
  border-radius: 6px !important;
  min-height: 34px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.35rem !important;
  transition: var(--transition) !important;
}

/* ============================================================
   AJUSTE DOS BOTÕES DO PAINEL: TAMANHO COMPACTO E QUINAS SUAVES
   ============================================================ */
.status-buttons-wrapper {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  width: 100% !important;
  max-width: 190px !important;
  align-self: flex-end !important;
}

@media (max-width: 768px) {
  .status-buttons-wrapper {
    margin-right: auto !important;
    align-self: center !important;
  }
}

.status-badge,
.status-button-sm,
.status-buttons-wrapper form,
.status-buttons-wrapper .btn {
  border-radius: 6px !important;
  padding: 8px 14px !important;
  font-size: 0.78rem !important;
  line-height: 1.2 !important;
  min-height: 38px !important;
  height: auto !important;
  width: 100% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  border: none !important;
}

.dark-table-card {
  background: #111 !important;
  border: 1px solid #333 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

.dark-table-card .dark-panel-header-sm {
  background: #1a1a1a !important;
}

.dark-table-card .card-body {
  padding: 0 !important;
}

.dark-table-card .table-dark {
  color: #ccc !important;
}

.dark-table-card .table-dark thead {
  background: #1a1a1a !important;
  color: #888 !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
}

.dark-table-card .table-dark th,
.dark-table-card .table-dark td {
  padding: 12px 16px !important;
}

.dark-table-card .table-dark td.small-padding {
  padding: 10px 16px !important;
}

.dark-table-card .table-dark tr.divider {
  border-bottom: 1px solid #1e1e1e !important;
}

.table-image-thumb {
  height: 64px !important;
  width: 44px !important;
  object-fit: cover !important;
  border-radius: 4px !important;
  border: 1px solid #2a2a2a !important;
}

.badge-info-sm {
  font-size: 10px !important;
}

.table-cell-sm {
  padding: 12px 16px !important;
}

.table-cell-sm-small {
  padding: 10px 16px !important;
}

.table-cell-sm-checkbox {
  width: 40px !important;
}

.table-head-dark {
  background: #1a1a1a !important;
  color: #888 !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
}

.table-dark {
  color: #ccc !important;
}

.panel-title {
  margin: 0 !important;
  color: #fff !important;
}

.panel-description {
  color: #aaa !important;
  font-size: 13px !important;
}

.dark-panel-header {
  padding: 16px 20px !important;
}

.dark-panel-body-no-padding {
  padding: 0 !important;
}

.display-none {
  display: none !important;
}

.hidden {
  display: none !important;
}

.empty-grid-message {
  text-align: center !important;
  padding: 40px !important;
  color: #555 !important;
}

.table-text-ellipsis {
  max-width: 200px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.table-cell-meta {
  color: #666 !important;
  font-size: 12px !important;
}

.table-cell-strong {
  font-weight: 600 !important;
}

.apk-preview-card {
  background: #0d0d0d;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.5);
}

.apk-preview-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1a1a1a;
  padding: 14px 20px;
  border-bottom: 1px solid #2a2a2a;
}

.apk-preview-hdr h5 {
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot-live {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-red);
  display: inline-block;
  animation: blink 1.4s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .2; }
}

.badge-mode {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--accent-red);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
}

.btn-rfsh {
  background: transparent;
  border: 1px solid var(--accent-red);
  color: var(--accent-red);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all .2s;
}

.btn-rfsh:hover {
  background: var(--accent-red);
  color: #fff;
}

.btn-rfsh.loading {
  opacity: .5;
  pointer-events: none;
}

.apk-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.apk-stat {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 11px;
  color: #aaa;
}

.apk-stat strong {
  color: #fff;
  font-size: 14px;
  display: block;
  margin-bottom: 1px;
}

#apk-loading {
  text-align: center;
  padding: 36px;
  color: #555;
  font-size: 14px;
}

#apk-error {
  color: var(--accent-red);
  font-size: 13px;
  padding: 12px;
  background: rgba(255,122,0,0.08);
  border-radius: 6px;
  border: 1px solid rgba(255,122,0,0.2);
  display: none;
  margin-bottom: 12px;
}

#covers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.cover-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #131920;
  border: 1px solid rgba(0,200,255,.12);
  aspect-ratio: 2/3;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}

.cover-card:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(123,44,191,.3);
  border-color: var(--accent-red);
}

.cover-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cover-card .c-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.9));
  padding: 18px 7px 7px;
}

.cover-card .c-title {
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cover-card .c-num {
  position: absolute;
  top: 5px;
  left: 5px;
  background: rgba(0,0,0,.7);
  color: #aaa;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 3px;
}

/* ============================================================
   FORMS & INPUTS
   ============================================================ */
.form-group label {
  color: var(--text-secondary) !important;
  font-weight: 600 !important;
  font-size: 0.82rem;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.card-header-warning {
  background: linear-gradient(135deg, rgba(255,122,0,0.08) 0%, transparent 100%) !important;
}

/* Stat card accent borders */
.card-stat-green  { border-top: 2px solid var(--accent-red) !important; }
.card-stat-orange { border-top: 2px solid var(--accent-orange) !important; }
.card-stat-red    { border-top: 2px solid var(--accent-red) !important; }
.card-stat-pink   { border-top: 2px solid var(--accent-pink) !important; }

/* ============================================================
   FORMS & INPUTS
   ============================================================ */
.form-group label {
  color: var(--text-secondary) !important;
  font-weight: 600 !important;
  font-size: 0.82rem;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-control {
  background: rgba(255,255,255,0.04) !important;
  border: var(--border-glass) !important;
  border-radius: 10px !important;
  color: var(--text-primary) !important;
  font-size: 0.95rem !important;
  padding: 12px 16px !important;
  height: auto !important;
  transition: var(--transition) !important;
  font-family: 'Outfit', sans-serif !important;
}

.form-control::placeholder { color: var(--text-muted) !important; }

.form-control:focus {
  background: rgba(255,255,255,0.07) !important;
  border-color: rgba(255,122,0,0.5) !important;
  box-shadow: 0 0 0 3px rgba(255,122,0,0.1), 0 4px 16px rgba(255,122,0,0.15) !important;
}

select.form-control {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23FF7A00' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 14px 10px !important;
  padding-right: 40px !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

select.form-control option,
select option {
  background: #1a1a1a !important;
  color: #fff !important;
}

/* ============================================================
   TABLES
   ============================================================ */
.table-responsive {
  border: var(--border-glass);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 1.25rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.table {
  color: var(--text-primary) !important;
  margin-bottom: 0 !important;
}

.table thead {
  background: rgba(0,0,0,0.5) !important;
}

.table thead th {
  color: var(--text-muted) !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 1.2px;
  border: none !important;
  border-bottom: 1px solid rgba(123,44,191,0.3) !important;
  padding: 14px 18px !important;
  white-space: nowrap;
}

.table tbody tr {
  background: transparent !important;
  transition: all 0.2s ease;
}

.table tbody tr:nth-of-type(odd) {
  background: rgba(255,255,255,0.015) !important;
}

.table tbody tr:hover {
  background: rgba(123,44,191,0.06) !important;
  transform: scale(1.005);
}

.table tbody td {
  border-top: var(--border-subtle) !important;
  padding: 14px 18px !important;
  vertical-align: middle !important;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.table tbody td:first-child { color: var(--text-muted); font-size: 0.8rem; }

/* ============================================================
   DATATABLES
   ============================================================ */
.dataTables_wrapper {
  color: var(--text-primary) !important;
  padding: 1rem 0;
}

.dataTables_length, .dataTables_filter {
  margin-bottom: 1rem;
}

.dataTables_length select,
.dataTables_filter input {
  background: rgba(255,255,255,0.04) !important;
  border: var(--border-glass) !important;
  color: var(--text-primary) !important;
  border-radius: 8px;
  padding: 7px 12px;
  margin: 0 6px;
  font-family: 'Outfit', sans-serif !important;
  transition: var(--transition);
}

.dataTables_filter input:focus {
  border-color: rgba(255,122,0,0.4) !important;
  box-shadow: 0 0 0 3px rgba(255,122,0,0.1) !important;
  outline: none;
}

.dataTables_info { color: var(--text-muted) !important; font-size: 0.82rem; }

.dataTables_paginate { padding-top: 1rem !important; }

.dataTables_paginate .paginate_button {
  background: rgba(255,255,255,0.04) !important;
  border: var(--border-glass) !important;
  color: var(--text-secondary) !important;
  border-radius: 7px !important;
  margin: 0 3px !important;
  padding: 6px 14px !important;
  transition: var(--transition);
  font-size: 0.85rem;
  font-weight: 600;
}

.dataTables_paginate .paginate_button.current,
.dataTables_paginate .paginate_button:hover {
  background: var(--accent-red) !important;
  border-color: var(--accent-red) !important;
  color: #fff !important;
  box-shadow: var(--shadow-btn);
  transform: translateY(-1px);
}

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  background: rgba(18,18,18,0.9) !important;
  backdrop-filter: blur(10px);
  border: var(--border-glass) !important;
  border-left: 4px solid var(--accent-red) !important;
  color: var(--text-primary) !important;
  border-radius: 10px !important;
  box-shadow: var(--shadow-card) !important;
  padding: 1rem 1.25rem !important;
  font-size: 0.9rem;
}

.alert-success { border-left-color: var(--accent-red) !important; }
.alert-danger  { border-left-color: var(--accent-pink) !important; }
.alert-info    { border-left-color: var(--accent-red) !important; }
.alert-warning { border-left-color: var(--accent-orange) !important; }

.alert h3, .alert strong { color: var(--text-primary) !important; font-size: 0.95rem; }
.alert em { color: var(--text-secondary) !important; }

.alert .close {
  color: var(--text-muted) !important;
  opacity: 0.7;
  font-size: 1.1rem;
  transition: var(--transition);
  text-shadow: none;
}

.alert .close:hover {
  opacity: 1;
  color: var(--accent-red) !important;
  transform: scale(1.15) rotate(90deg);
}

/* ============================================================
   MODALS
   ============================================================ */
.modal-content {
  background: rgba(14,14,14,0.97) !important;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: var(--border-glass) !important;
  border-radius: 20px !important;
  box-shadow: var(--shadow-deep) !important;
  overflow: hidden;
}

.modal-header {
  border-bottom: var(--border-glass) !important;
  padding: 1.5rem 1.75rem !important;
  background: rgba(255,122,0,0.04);
}

.modal-footer {
  border-top: var(--border-glass) !important;
  padding: 1.25rem 1.75rem !important;
  background: rgba(0,0,0,0.2);
}

.modal-body {
  padding: 1.75rem !important;
  font-size: 0.95rem;
  color: var(--text-secondary) !important;
  line-height: 1.7;
}

/* ============================================================
   PARTICLES BACKGROUND
   ============================================================ */
#js-particles {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0; left: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 20% 50%, rgba(123,44,191,0.04) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(123,44,191,0.03) 0%, transparent 50%),
              var(--dash-black);
}

/* ============================================================
   LOGIN PAGE (NETFLIX PREMIUM)
   ============================================================ */
.netflix-login-body {
  min-height: 100vh;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(circle at top, rgba(255,122,0,0.08), transparent 25%),
              radial-gradient(circle at bottom right, rgba(123,44,191,0.12), transparent 18%),
              var(--dash-black) !important;
  padding: 1rem 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.netflix-login-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(255,122,0,0.06) 0%, transparent 50%),
              radial-gradient(ellipse at bottom, rgba(123,44,191,0.08) 0%, transparent 45%);
  z-index: 0;
}

.netflix-login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: calc(100vh - 2rem);
  padding: 1rem 1.5rem;
  z-index: 1;
  position: relative;
}

.netflix-login-card {
  background: linear-gradient(180deg, rgba(18,18,24,0.98), rgba(11,11,16,0.98)) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 24px !important;
  width: 100%;
  max-width: 420px;
  padding: 2.5rem 2rem 2rem !important;
  box-shadow: 0 28px 80px rgba(0,0,0,0.55) !important;
  position: relative;
  overflow: hidden;
  margin: auto;
}

.netflix-login-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,122,0,0.06), transparent 22%),
              radial-gradient(circle at 80% 85%, rgba(123,44,191,0.06), transparent 20%);
  pointer-events: none;
}

.netflix-login-card .logo-container {
  text-align: center;
  margin-bottom: 2rem;
}

.netflix-login-card .logo-container img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  border-radius: 18px;
  filter: drop-shadow(0 0 18px rgba(255,122,0,0.24));
}

.netflix-login-card h2 {
  font-size: 1.7rem !important;
  font-weight: 800 !important;
  margin-bottom: 0.5rem;
  color: var(--text-primary) !important;
  text-align: center !important;
}

.netflix-login-card p.subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
  margin: 0 auto 1.75rem;
  max-width: 320px;
  line-height: 1.5;
}

.netflix-login-card .form-group { margin-bottom: 1.1rem; }

.netflix-login-card .form-control {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: 14px !important;
  color: var(--text-primary) !important;
  font-size: 0.95rem !important;
  padding: 16px 16px !important;
  height: 52px !important;
  transition: var(--transition) !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.12);
}

.netflix-login-card .form-control::placeholder {
  color: rgba(255,255,255,0.6) !important;
}

.password-field {
  position: relative;
}

.password-field .password-toggle {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.75);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.password-field .password-toggle:hover {
  color: #fff;
}

.password-field .form-control {
  padding-right: 52px !important;
}

.netflix-login-card .form-control:focus {
  background: rgba(255,255,255,0.12) !important;
  border-color: rgba(255,122,0,0.6) !important;
  box-shadow: 0 0 0 3px rgba(255,122,0,0.14) !important;
}

.netflix-login-card .btn-submit {
  background: linear-gradient(135deg, #FF7A00 0%, #7B2CBF 100%) !important;
  border: none !important;
  color: #fff !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  height: 52px !important;
  border-radius: 14px !important;
  margin-top: 1.75rem;
  width: 100%;
  box-shadow: 0 12px 30px rgba(255,122,0,0.35) !important;
  transition: var(--transition) !important;
}

.netflix-login-card .btn-submit:hover {
  background: linear-gradient(135deg, #FF9C2D 0%, #8440D9 100%) !important;
  box-shadow: 0 14px 38px rgba(255,122,0,0.45) !important;
  transform: translateY(-2px) scale(1.01);
}

.netflix-login-footer {
  margin-top: 1.75rem;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.4;
}

.netflix-login-footer a {
  color: var(--text-muted) !important;
  text-decoration: none;
  transition: var(--transition);
}

.netflix-login-footer a:hover {
  color: var(--text-secondary) !important;
  text-decoration: underline;
}

/* ============================================================
   BADGE TOGGLE GROUP
   ============================================================ */
.btn-group-toggle .btn {
  background: rgba(255,255,255,0.05) !important;
  color: var(--text-secondary) !important;
  border: var(--border-glass) !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  padding: 9px 18px !important;
  border-radius: 8px !important;
  transition: var(--transition);
}

.btn-group-toggle .btn:hover {
  color: var(--text-primary) !important;
  background: rgba(255,255,255,0.1) !important;
}

.btn-group-toggle .btn.active {
  background: var(--accent-red) !important;
  border-color: var(--accent-red) !important;
  color: #fff !important;
  font-weight: 700 !important;
  box-shadow: var(--shadow-btn) !important;
}

.btn-group-toggle input[type="radio"] {
  position: absolute;
  clip: rect(0,0,0,0);
  pointer-events: none;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-muted { color: var(--text-muted) !important; }
.text-secondary-custom { color: var(--text-secondary) !important; }

/* Divider */
hr {
  border-color: rgba(255,255,255,0.05) !important;
  margin: 1.5rem 0;
}

/* Badge */
.badge {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-radius: 6px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  #sidebar-wrapper {
    margin-left: -250px;
    transition: margin 0.3s ease;
    position: fixed;
    height: 100vh;
    z-index: 200;
  }
  #wrapper.toggled #sidebar-wrapper { margin-left: 0; }
  #page-content-wrapper { width: 100%; }
  .navbar { padding: 0.75rem 1rem !important; }
}

@media (max-width: 576px) {
  .card { border-radius: 12px !important; margin-bottom: 1.25rem; }
  .card-body { padding: 1.25rem !important; }
  .card-header { padding: 1rem 1.25rem !important; }
  .card-header h2 { font-size: 1rem !important; }
  .btn { padding: 8px 14px !important; font-size: 0.82rem !important; }
  .table thead th, .table tbody td { padding: 10px 12px !important; font-size: 0.82rem !important; }
  .modal-dialog { max-width: 95% !important; margin: 0.75rem auto; }
  .netflix-login-card { padding: 2rem 1.5rem !important; border-radius: 14px !important; }
}
