/* ===================================================
   DG LOVABLE / DARK & NEON ORANGE PREMIUM THEME
   Palette: Deep Onyx Black + Neon Amber / Orange Glow + Glassmorphism
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg-primary: #07070a;
  --bg-surface: rgba(15, 16, 22, 0.88);
  --bg-surface-hover: rgba(26, 28, 38, 0.95);
  --bg-card: rgba(18, 19, 27, 0.82);
  --bg-glass: rgba(255, 122, 0, 0.03);
  --border-glass: rgba(255, 122, 0, 0.18);
  --border-glass-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: #ff7a00;
  
  --orange-primary: #ff6b00;
  --orange-bright: #ff8a00;
  --orange-light: #ffa800;
  --orange-glow-color: rgba(255, 107, 0, 0.35);
  
  --primary-gradient: linear-gradient(135deg, #ff5500 0%, #ff7a00 50%, #ffa800 100%);
  --orange-dark-gradient: linear-gradient(180deg, rgba(255, 107, 0, 0.15) 0%, rgba(255, 107, 0, 0.02) 100%);
  --accent-gradient: linear-gradient(135deg, #ff7a00 0%, #ffd000 100%);
  --danger-gradient: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
  --success-gradient: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  --warning-gradient: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  
  --text-primary: #ffffff;
  --text-secondary: #d1d5db;
  --text-muted: #8b92a2;
  --text-highlight: #ff8a00;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 10px 20px -3px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 107, 0, 0.12);
  --shadow-lg: 0 20px 30px -5px rgba(0, 0, 0, 0.8), 0 0 35px rgba(255, 107, 0, 0.18);
  --shadow-glow: 0 0 25px rgba(255, 107, 0, 0.45);
  
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-pill: 50px;
}

/* Global Reset & Typography */
* {
  box-sizing: border-box;
}

#js-particles,
#particles-js,
.particles-js-canvas-el {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

#wrapper {
  position: relative !important;
  z-index: 10 !important;
  min-height: 100vh;
  display: flex;
}

#page-content-wrapper {
  position: relative !important;
  z-index: 10 !important;
  flex: 1;
  min-width: 0;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  background-color: var(--bg-primary) !important;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 107, 0, 0.12) 0px, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(255, 138, 0, 0.1) 0px, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(10, 11, 16, 0.8) 0px, transparent 100%) !important;
  background-attachment: fixed !important;
  color: var(--text-primary) !important;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Top Navbar */
.navbar {
  background: rgba(12, 13, 18, 0.85) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 0.85rem 1.75rem;
  z-index: 100;
}

#menu-toggle {
  background: rgba(255, 107, 0, 0.1) !important;
  border: 1px solid var(--border-glass) !important;
  color: var(--orange-bright) !important;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.85rem;
  transition: all 0.25s ease;
  box-shadow: 0 0 15px rgba(255, 107, 0, 0.15);
}

#menu-toggle:hover {
  background: var(--primary-gradient) !important;
  color: #000 !important;
  border-color: var(--orange-bright) !important;
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

/* ===================================================
   ELEGANT MINIMALIST SIDEBAR DESIGN
   =================================================== */
#sidebar-wrapper {
  width: 250px !important;
  background: rgba(10, 11, 15, 0.96) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
  box-shadow: 4px 0 25px rgba(0, 0, 0, 0.6);
  height: 100vh !important;
  max-height: 100vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  position: sticky !important;
  top: 0 !important;
  display: flex;
  flex-direction: column;
}

/* Brand Box */
.sidebar-brand-box {
  padding: 1.25rem 1.1rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 0.5rem;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.2) 0%, rgba(255, 138, 0, 0.05) 100%);
  border: 1px solid rgba(255, 107, 0, 0.35);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-bright);
  font-size: 1.15rem;
  box-shadow: 0 0 15px rgba(255, 107, 0, 0.15);
}

.brand-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #ffffff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted) !important;
  text-decoration: none;
  margin-top: 0.15rem;
  transition: color 0.2s ease;
}

.brand-sub:hover {
  color: var(--orange-bright) !important;
}

/* Navigation List & Categories */
.sidebar-nav-container {
  padding: 0.25rem 0 1.5rem;
  display: flex;
  flex-direction: column;
}

.menu-section-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #555f77;
  padding: 0.9rem 1.1rem 0.3rem;
}

.nav-item-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.52rem 0.9rem;
  margin: 0.12rem 0.65rem;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #94a3b8 !important;
  text-decoration: none !important;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.nav-item-link i {
  font-size: 1.05rem;
  width: 22px;
  text-align: center;
  color: #64748b;
  transition: all 0.2s ease;
}

.nav-item-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.05);
}

.nav-item-link:hover i {
  color: var(--orange-bright);
}

/* Active Nav Item - Refined & Elegant */
.nav-item-link.active {
  background: rgba(255, 107, 0, 0.09) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border: 1px solid rgba(255, 107, 0, 0.22) !important;
  border-left: 3.5px solid #ff7a00 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25), inset 0 0 15px rgba(255, 107, 0, 0.04) !important;
}

.nav-item-link.active i {
  color: #ff8a00 !important;
  filter: drop-shadow(0 0 6px rgba(255, 107, 0, 0.5));
}


/* Cards & Containers (Glassmorphism + Neon Border) */
.card, .card.bg-primary {
  background: var(--bg-card) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid var(--border-glass) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-lg) !important;
  overflow: hidden;
  margin-bottom: 1.75rem;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-gradient);
  opacity: 0.8;
}

.card-header, .card-header-warning {
  background: rgba(255, 107, 0, 0.04) !important;
  border-bottom: 1px solid var(--border-glass) !important;
  padding: 1.35rem 1.65rem !important;
}

.card-header h2, .card-header h3 {
  font-weight: 800;
  font-size: 1.35rem;
  margin: 0;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}

.card-body {
  padding: 1.85rem !important;
}

/* Forms & Inputs */
.form-control, .form-control-lg {
  background: rgba(10, 11, 16, 0.85) !important;
  border: 1px solid var(--border-glass) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-primary) !important;
  padding: 0.8rem 1.1rem !important;
  font-size: 0.96rem !important;
  transition: all 0.25s ease !important;
}

.form-control:focus {
  background: rgba(12, 13, 20, 0.98) !important;
  border-color: var(--orange-bright) !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.25), 0 0 15px rgba(255, 107, 0, 0.2) !important;
  color: #ffffff !important;
  outline: none !important;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--orange-bright);
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* Buttons */
.btn {
  font-family: inherit;
  font-weight: 700;
  border-radius: var(--radius-sm) !important;
  padding: 0.65rem 1.4rem;
  border: none !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  letter-spacing: 0.3px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary, .btn-info {
  background: var(--primary-gradient) !important;
  color: #07070a !important;
  font-weight: 800;
}
.btn-primary:hover, .btn-info:hover {
  box-shadow: 0 8px 25px rgba(255, 107, 0, 0.5) !important;
  color: #000000 !important;
}

.btn-danger {
  background: var(--danger-gradient) !important;
  color: #ffffff !important;
}
.btn-danger:hover {
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4) !important;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--text-secondary) !important;
  border: 1px solid var(--border-glass-subtle) !important;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

/* Tables */
.table-responsive {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.table {
  color: var(--text-primary) !important;
  margin-bottom: 0 !important;
  background: transparent !important;
}

.table thead th {
  background: rgba(12, 13, 18, 0.95) !important;
  color: var(--orange-bright) !important;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  border-bottom: 1px solid var(--border-glass) !important;
  border-top: none !important;
  padding: 1.05rem 1.25rem !important;
}

.table tbody tr {
  background: rgba(255, 255, 255, 0.01) !important;
  transition: background-color 0.2s ease;
}

.table tbody tr:hover {
  background: rgba(255, 107, 0, 0.08) !important;
}

/* Topbar User Badge & Logout */
.user-badge {
  background: rgba(255, 107, 0, 0.08);
  border: 1px solid var(--border-glass);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.text-orange {
  color: var(--orange-bright) !important;
}

.user-name {
  color: #ffffff;
  letter-spacing: 0.3px;
}

.btn-menu {
  background: rgba(255, 107, 0, 0.1) !important;
  border: 1px solid var(--border-glass) !important;
  color: var(--orange-bright) !important;
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.8rem;
  transition: all 0.25s ease;
}

.btn-menu:hover {
  background: var(--primary-gradient) !important;
  color: #000 !important;
  box-shadow: var(--shadow-glow);
}

.btn-logout {
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  color: #fca5a5 !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  padding: 0.45rem 1rem !important;
  border-radius: var(--radius-pill) !important;
  transition: all 0.25s ease;
}

.btn-logout:hover {
  background: var(--danger-gradient) !important;
  color: #ffffff !important;
  border-color: #ef4444 !important;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4) !important;
  transform: translateY(-1px);
}

/* Call to Action Button */
.btn-cta {
  background: var(--primary-gradient) !important;
  color: #07070a !important;
  font-weight: 800 !important;
  font-size: 0.92rem !important;
  padding: 0.55rem 1.35rem !important;
  border-radius: var(--radius-pill) !important;
  box-shadow: 0 4px 20px rgba(255, 107, 0, 0.4);
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
}

.btn-cta:hover {
  box-shadow: 0 6px 25px rgba(255, 138, 0, 0.6) !important;
  transform: translateY(-2px);
  color: #000000 !important;
}

/* Table Action Buttons */
.btn-action {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  text-decoration: none !important;
}

.btn-action-edit {
  background: rgba(255, 107, 0, 0.15);
  border: 1px solid rgba(255, 107, 0, 0.4);
  color: var(--orange-bright);
}

.btn-action-edit:hover {
  background: var(--primary-gradient);
  color: #07070a;
  box-shadow: 0 0 15px rgba(255, 107, 0, 0.5);
  transform: translateY(-2px);
}

.btn-action-delete {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.btn-action-delete:hover {
  background: var(--danger-gradient);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
  transform: translateY(-2px);
}

/* Table Badges & Codes */
.badge-id {
  background: rgba(255, 107, 0, 0.12);
  border: 1px solid var(--border-glass);
  color: var(--orange-bright);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  display: inline-block;
}

.url-code {
  color: #ffa800;
  background: rgba(10, 11, 16, 0.9);
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 107, 0, 0.2);
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.88rem;
  letter-spacing: 0.2px;
}

/* ===================================================
   DATATABLES MODERN DARK & ORANGE STYLING
   =================================================== */
.dataTables_wrapper {
  color: var(--text-secondary);
  font-size: 0.92rem;
  padding-top: 0.5rem;
}

.dataTables_length,
.dataTables_filter {
  margin-bottom: 1.25rem;
}

.dataTables_length label,
.dataTables_filter label {
  color: var(--text-secondary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.dataTables_length select {
  background: rgba(10, 11, 16, 0.9) !important;
  border: 1px solid var(--border-glass) !important;
  color: #ffffff !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.4rem 0.8rem !important;
  outline: none !important;
  margin: 0 0.4rem;
  cursor: pointer;
}

.dataTables_length select option {
  background: #0f1015;
  color: #ffffff;
}

.dataTables_filter input {
  background: rgba(10, 11, 16, 0.9) !important;
  border: 1px solid var(--border-glass) !important;
  color: #ffffff !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.45rem 0.9rem !important;
  outline: none !important;
  margin-left: 0.5rem;
  transition: all 0.25s ease;
}

.dataTables_filter input:focus {
  border-color: var(--orange-bright) !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.25) !important;
}

.dataTables_info {
  color: var(--text-muted) !important;
  font-size: 0.88rem;
  padding-top: 1rem !important;
  font-weight: 500;
}

.dataTables_paginate {
  padding-top: 0.75rem !important;
}

.dataTables_paginate .pagination {
  margin: 0;
  gap: 0.35rem;
}

.page-item .page-link {
  background: rgba(12, 13, 18, 0.9) !important;
  border: 1px solid var(--border-glass) !important;
  color: var(--text-secondary) !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.45rem 0.9rem !important;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.page-item .page-link:hover {
  background: rgba(255, 107, 0, 0.15) !important;
  border-color: var(--orange-bright) !important;
  color: #ffffff !important;
}

.page-item.active .page-link {
  background: var(--primary-gradient) !important;
  border-color: var(--orange-bright) !important;
  color: #07070a !important;
  font-weight: 800 !important;
  box-shadow: 0 0 15px rgba(255, 107, 0, 0.4) !important;
}

.page-item.disabled .page-link {
  background: rgba(10, 11, 16, 0.5) !important;
  border-color: var(--border-glass-subtle) !important;
  color: var(--text-muted) !important;
  opacity: 0.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 107, 0, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--orange-bright);
}

