/* GAMEY ADMIN - Custom Design System v2.0 */

:root {
  --gamey-primary: #0080E0;
  --gamey-primary-light: #00A0E0;
  --gamey-primary-dark: #0060C0;
  --gamey-accent: #06b6d4;
  --gamey-success: #10b981;
  --gamey-warning: #f59e0b;
  --gamey-danger: #ef4444;
  --gamey-surface: #f8fafc;
  --gamey-sidebar-bg: #0f172a;
  --gamey-card-bg: #ffffff;
  --gamey-text: #1e293b;
  --gamey-text-muted: #64748b;
  --gamey-border: #e2e8f0;
  --gamey-radius: 12px;
  --gamey-radius-lg: 16px;
  --gamey-shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --gamey-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
  --ct-primary: #0080E0;
  --ct-primary-rgb: 0, 128, 224;
}

body { background: var(--gamey-surface) !important; font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif !important; }

/* SIDEBAR */
.leftside-menu, [data-menu-color="dark"] .leftside-menu {
  background: linear-gradient(180deg, #0f172a 0%, #1a1f3a 100%) !important;
  border-right: none !important;
  box-shadow: 4px 0 24px rgba(0,0,0,0.15);
}
[data-menu-color="dark"] .side-nav .side-nav-link {
  color: #94a3b8 !important;
  border-radius: 8px;
  margin: 2px 12px;
  padding: 10px 15px;
  transition: all 0.2s ease;
}
[data-menu-color="dark"] .side-nav .side-nav-link:hover {
  color: #fff !important;
  background: rgba(0, 128, 224, 0.15) !important;
  transform: translateX(3px);
}
[data-menu-color="dark"] .side-nav .side-nav-link.active,
[data-menu-color="dark"] .menuitem-active > .side-nav-link {
  color: #fff !important;
  background: linear-gradient(135deg, #0080E0 0%, #0070D0 100%) !important;
  box-shadow: 0 4px 12px rgba(0, 128, 224, 0.4);
}
[data-menu-color="dark"] .side-nav .side-nav-title {
  color: #475569 !important;
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  padding-left: 24px;
}
.logo-box { padding: 20px 15px !important; border-bottom: 1px solid rgba(255,255,255,0.05); }

/* TOPBAR */
.navbar-custom {
  background: #fff !important;
  border-bottom: 1px solid var(--gamey-border) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
[data-topbar-color="light"] .navbar-custom { background: #fff !important; }

/* CARDS */
.card {
  border: 1px solid var(--gamey-border) !important;
  border-radius: var(--gamey-radius) !important;
  box-shadow: var(--gamey-shadow) !important;
  transition: box-shadow 0.2s ease;
  overflow: hidden;
}
.card:hover { box-shadow: var(--gamey-shadow-lg) !important; }
.card-header { background: transparent !important; border-bottom: 1px solid var(--gamey-border); padding: 1rem 1.25rem; font-weight: 600; }
.card-body { padding: 1.25rem; }

/* BUTTONS */
.btn-primary {
  background: linear-gradient(135deg, #0080E0 0%, #0070D0 100%) !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 128, 224, 0.3);
  transition: all 0.2s ease;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 128, 224, 0.45) !important; }
.btn-outline-primary { color: #0080E0 !important; border-color: #0080E0 !important; border-radius: 8px !important; }
.btn-outline-primary:hover { background: #0080E0 !important; color: #fff !important; }
.btn-success { background: #10b981 !important; border-color: #10b981 !important; border-radius: 8px !important; }
.btn-danger { background: #ef4444 !important; border-color: #ef4444 !important; border-radius: 8px !important; }
.btn-warning { background: #f59e0b !important; border-color: #f59e0b !important; border-radius: 8px !important; }

/* PRIMARY OVERRIDES */
.bg-primary, .card-header.bg-primary { background: linear-gradient(135deg, #0080E0 0%, #0070D0 100%) !important; }
.badge.bg-primary { background: #0080E0 !important; border-radius: 6px; }
.badge { border-radius: 6px !important; font-weight: 500; padding: 5px 10px; }
a { color: #0080E0; }
a:hover { color: #0060C0; }
.text-primary { color: #0080E0 !important; }

/* TABLES */
.table thead th {
  background: #f1f5f9 !important;
  border-bottom: 2px solid var(--gamey-border);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gamey-text-muted);
}
.table tbody td { vertical-align: middle; padding: 12px 16px; border-color: #f1f5f9; }
.table tbody tr:hover { background: #f8fafc !important; }

/* PAGINATION */
.page-item.active .page-link { background: #0080E0 !important; border-color: #0080E0 !important; border-radius: 8px; }
.page-link { border-radius: 8px !important; margin: 0 2px; color: var(--gamey-text-muted); }
.page-link:hover { color: #0080E0; background: rgba(0,128,224,0.08); }
.dataTables_wrapper .dataTables_filter input { border-radius: 8px !important; border: 1.5px solid var(--gamey-border); padding: 6px 12px; }
.dataTables_wrapper .dataTables_length select { border-radius: 8px !important; }

/* FORM INPUTS */
.form-control, .form-select {
  border-radius: 8px !important;
  border: 1.5px solid var(--gamey-border) !important;
  padding: 0.5rem 0.85rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus, .form-select:focus {
  border-color: #0080E0 !important;
  box-shadow: 0 0 0 3px rgba(0, 128, 224, 0.1) !important;
}
.form-label { font-weight: 500; color: var(--gamey-text); font-size: 0.875rem; margin-bottom: 6px; }

/* LOGIN PAGE */
.authentication-bg {
  background: linear-gradient(135deg, #0f172a 0%, #0A1929 50%, #112240 100%) !important;
  min-height: 100vh;
}
.authentication-bg .position-absolute { display: none !important; }
.authentication-bg .card {
  border: none !important;
  border-radius: var(--gamey-radius-lg) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35) !important;
}
.authentication-bg .card-header.bg-primary {
  background: linear-gradient(135deg, #0080E0 0%, #0070D0 50%, #004A99 100%) !important;
  padding: 1.75rem !important;
  border-radius: 16px 16px 0 0 !important;
}
.authentication-bg .card-body { padding: 2rem !important; }
.authentication-bg .card-body h4 { color: #1e293b !important; font-size: 1.5rem !important; }
.authentication-bg .card-body p { color: #64748b; }
.authentication-bg .btn-primary { padding: 0.75rem !important; font-size: 1rem !important; border-radius: 10px !important; }
.authentication-bg .form-control { padding: 0.7rem 1rem !important; font-size: 0.95rem; }

/* MODALS */
.modal-content { border-radius: var(--gamey-radius) !important; border: none; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.modal-header { border-bottom: 1px solid var(--gamey-border); padding: 1.25rem 1.5rem; }
.modal-footer { border-top: 1px solid var(--gamey-border); padding: 1rem 1.5rem; }

/* DROPDOWNS */
.dropdown-menu { border-radius: 10px !important; border: 1px solid var(--gamey-border); box-shadow: var(--gamey-shadow-lg); padding: 8px; }
.dropdown-item { border-radius: 6px; padding: 8px 12px; }
.dropdown-item:hover { background: #f1f5f9; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* MISC */
.nav-tabs .nav-link.active { border-color: #0080E0; color: #0080E0; font-weight: 600; }
.alert { border-radius: 10px; border: none; }
.progress { border-radius: 10px; height: 8px; }
.progress-bar { background: #0080E0; }
hr { border-color: var(--gamey-border); }
.breadcrumb-item a { color: #0080E0; }
.help-box { background: rgba(0,128,224,0.06) !important; border: 1px solid rgba(0,128,224,0.15); border-radius: 10px; }
.avatar-sm { border-radius: 10px !important; }
.widget-icon { border-radius: 12px !important; }
