/* ============================================================
   YONO RUMMY ADMIN PANEL - STYLES
   ============================================================ */

/* CSS Variables */
:root {
  --primary: #0f3460;
  --primary-light: #1a4a8a;
  --primary-dark: #0a2240;
  --accent: #e94560;
  --accent-light: #ff6b81;
  --accent-dark: #c73e54;
  --gradient: linear-gradient(135deg, #0f3460 0%, #e94560 100%);
  --gradient-card: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --success: #00b894;
  --success-light: #55efc4;
  --success-bg: rgba(0, 184, 148, 0.1);
  --warning: #fdcb6e;
  --warning-dark: #f0932b;
  --warning-bg: rgba(253, 203, 110, 0.1);
  --danger: #e74c3c;
  --danger-light: #ff7675;
  --danger-bg: rgba(231, 76, 60, 0.1);
  --info: #74b9ff;
  --info-bg: rgba(116, 185, 255, 0.1);
  --purple: #7c3aed;
  --purple-bg: rgba(124, 58, 237, 0.1);

  --bg-body: #f0f2f5;
  --bg-card: #ffffff;
  --bg-sidebar: #0a1628;
  --bg-sidebar-hover: rgba(255, 255, 255, 0.08);
  --bg-sidebar-active: rgba(233, 69, 96, 0.15);
  --bg-header: #ffffff;
  --bg-input: #f8f9fa;

  --text-primary: #2d3436;
  --text-secondary: #636e72;
  --text-muted: #b2bec3;
  --text-white: #ffffff;
  --text-sidebar: rgba(255, 255, 255, 0.7);
  --text-sidebar-active: #ffffff;

  --border: #e9ecef;
  --border-light: #f1f3f5;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50%;

  --sidebar-width: 260px;
  --sidebar-collapsed: 70px;
  --header-height: 65px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}

input, select, textarea {
  font-family: inherit;
  outline: none;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #c4c4c4;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  position: relative;
  overflow: hidden;
}

.login-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(233, 69, 96, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(15, 52, 96, 0.3) 0%, transparent 40%);
  animation: bgPulse 8s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  0% { opacity: 0.8; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

.login-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 20px;
}

.login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 40px 35px;
  box-shadow: var(--shadow-xl);
  animation: loginSlideUp 0.6s ease-out;
  position: relative;
  z-index: 1;
}

@keyframes loginSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-logo {
  text-align: center;
  margin-bottom: 35px;
}

.login-logo .logo-icon {
  width: 65px;
  height: 65px;
  background: var(--gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 28px;
  color: white;
  box-shadow: 0 8px 25px rgba(233, 69, 96, 0.35);
}

.login-logo h1 {
  font-size: 26px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

.login-logo p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 4px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper i:first-child {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 15px;
  transition: var(--transition);
}

.input-wrapper input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-input);
  transition: var(--transition);
}

.input-wrapper input:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(15, 52, 96, 0.1);
}

.input-wrapper input:focus + i,
.input-wrapper input:focus ~ i {
  color: var(--primary);
}

.toggle-password {
  position: absolute;
  right: 12px;
  background: none;
  color: var(--text-muted);
  font-size: 15px;
  padding: 5px;
  transition: var(--transition);
}

.toggle-password:hover {
  color: var(--primary);
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.forgot-link {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  transition: var(--transition);
}

.forgot-link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.btn-login {
  width: 100%;
  padding: 13px;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-login::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
}

.btn-login:hover::before {
  left: 100%;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(233, 69, 96, 0.35);
}

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

.login-error {
  background: var(--danger-bg);
  color: var(--danger);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.login-footer {
  text-align: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.login-footer p {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-input);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* ============================================================
   ADMIN PANEL LAYOUT
   ============================================================ */
.admin-panel {
  display: flex;
  min-height: 100vh;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  right: 0;
  left: var(--sidebar-width);
  height: var(--header-height);
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sidebar-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: 18px;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.sidebar-toggle:hover {
  background: var(--primary);
  color: white;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon-sm {
  width: 34px;
  height: 34px;
  background: var(--gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
}

.logo-text {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
}

.logo-badge {
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.header-center {
  flex: 1;
  max-width: 450px;
  margin: 0 30px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box i {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 14px;
}

.search-box input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-xl);
  font-size: 13px;
  background: var(--bg-input);
  color: var(--text-primary);
  transition: var(--transition);
}

.search-box input:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(15, 52, 96, 0.08);
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.header-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  position: relative;
}

.header-icon-btn:hover {
  background: var(--bg-input);
  color: var(--primary);
}

.notification-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  margin-left: 4px;
}

.admin-profile:hover {
  background: var(--bg-input);
}

.admin-avatar {
  width: 36px;
  height: 36px;
  background: var(--gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 13px;
  font-weight: 700;
}

.admin-info {
  display: flex;
  flex-direction: column;
}

.admin-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.admin-role {
  font-size: 11px;
  color: var(--text-muted);
}

.admin-profile > i {
  font-size: 10px;
  color: var(--text-muted);
  transition: var(--transition);
}

.admin-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 200px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  padding: 8px;
  display: none;
  animation: dropdownSlide 0.2s ease;
  z-index: 200;
}

.admin-dropdown.show {
  display: block;
}

@keyframes dropdownSlide {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.admin-dropdown a:hover {
  background: var(--bg-input);
  color: var(--text-primary);
}

.admin-dropdown a i {
  width: 16px;
  font-size: 14px;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-light);
  margin: 6px 0;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-sidebar);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  overflow: hidden;
}

.sidebar-menu {
  flex: 1;
  padding: 20px 0;
  overflow-y: auto;
}

.menu-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.3);
  padding: 15px 24px 8px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 24px;
  margin: 2px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-sidebar);
  font-size: 13.5px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.menu-item:hover {
  background: var(--bg-sidebar-hover);
  color: var(--text-white);
}

.menu-item.active {
  background: var(--bg-sidebar-active);
  color: var(--accent);
  font-weight: 600;
}

.menu-item.active::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: var(--accent);
  border-radius: 0 4px 4px 0;
}

.menu-item i {
  width: 20px;
  font-size: 16px;
  text-align: center;
}

.menu-badge {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-sidebar);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}

.menu-badge.green {
  background: rgba(0, 184, 148, 0.2);
  color: var(--success-light);
}

.menu-badge.yellow {
  background: rgba(253, 203, 110, 0.2);
  color: var(--warning);
}

.logout-item {
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 15px;
}

.logout-item:hover {
  background: rgba(231, 76, 60, 0.15);
  color: var(--danger-light);
}

.sidebar-footer {
  padding: 15px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-version {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  text-align: center;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
  margin-left: var(--sidebar-width);
  margin-top: var(--header-height);
  padding: 24px;
  min-height: calc(100vh - var(--header-height));
  transition: var(--transition);
  animation: pageEnter 0.4s ease;
}

@keyframes pageEnter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Page Header */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.page-header-left h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.page-header-left p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.page-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: width 0.4s, height 0.4s, top 0.4s, left 0.4s;
}

.btn:active::after {
  width: 200px;
  height: 200px;
  top: calc(50% - 100px);
  left: calc(50% - 100px);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 52, 96, 0.3);
}

.btn-accent {
  background: var(--accent);
  color: white;
}

.btn-accent:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(233, 69, 96, 0.3);
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-success:hover {
  background: #00d2a0;
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #e85d4a;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text-secondary);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(15, 52, 96, 0.04);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.card-body {
  padding: 22px;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.stat-card:nth-child(1)::before { background: var(--primary); }
.stat-card:nth-child(2)::before { background: var(--success); }
.stat-card:nth-child(3)::before { background: var(--accent); }
.stat-card:nth-child(4)::before { background: var(--purple); }

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.stat-icon.blue { background: rgba(15, 52, 96, 0.1); color: var(--primary); }
.stat-icon.green { background: var(--success-bg); color: var(--success); }
.stat-icon.red { background: var(--danger-bg); color: var(--accent); }
.stat-icon.purple { background: var(--purple-bg); color: var(--purple); }

.stat-change {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
}

.stat-change.up { background: var(--success-bg); color: var(--success); }
.stat-change.down { background: var(--danger-bg); color: var(--danger); }

.stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ============================================================
   CHARTS
   ============================================================ */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.chart-container {
  position: relative;
  height: 280px;
}

/* ============================================================
   TABLES
   ============================================================ */
.table-wrapper {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: var(--bg-input);
  border-bottom: 2px solid var(--border);
  text-align: left;
  white-space: nowrap;
  position: sticky;
  top: 0;
}

.data-table td {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}

.data-table tbody tr {
  transition: var(--transition-fast);
}

.data-table tbody tr:hover {
  background: rgba(15, 52, 96, 0.02);
}

.data-table tbody tr:nth-child(even) {
  background: rgba(248, 249, 250, 0.5);
}

.data-table tbody tr:nth-child(even):hover {
  background: rgba(15, 52, 96, 0.02);
}

/* Table Cell Components */
.user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.avatar-blue { background: var(--primary); }
.avatar-green { background: var(--success); }
.avatar-red { background: var(--accent); }
.avatar-purple { background: var(--purple); }
.avatar-yellow { background: var(--warning-dark); color: white; }

.user-cell-info .name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 13px;
}

.user-cell-info .id {
  font-size: 11px;
  color: var(--text-muted);
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning-dark); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: #2980b9; }
.badge-purple { background: var(--purple-bg); color: var(--purple); }
.badge-neutral { background: var(--bg-input); color: var(--text-secondary); }

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Action Buttons in Tables */
.action-btns {
  display: flex;
  gap: 6px;
}

.action-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: var(--transition);
  background: var(--bg-input);
  color: var(--text-secondary);
}

.action-btn:hover {
  transform: scale(1.1);
}

.action-btn.view:hover { background: var(--info-bg); color: #2980b9; }
.action-btn.edit:hover { background: rgba(15, 52, 96, 0.1); color: var(--primary); }
.action-btn.delete:hover { background: var(--danger-bg); color: var(--danger); }
.action-btn.approve:hover { background: var(--success-bg); color: var(--success); }
.action-btn.reject:hover { background: var(--danger-bg); color: var(--danger); }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-top: 1px solid var(--border-light);
}

.pagination-info {
  font-size: 13px;
  color: var(--text-secondary);
}

.pagination-btns {
  display: flex;
  gap: 4px;
}

.page-btn {
  min-width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  color: var(--text-secondary);
  transition: var(--transition);
}

.page-btn:hover {
  background: var(--bg-input);
  color: var(--primary);
}

.page-btn.active {
  background: var(--primary);
  color: white;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============================================================
   FILTERS & TOOLBAR
   ============================================================ */
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-input {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.filter-input i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
}

.filter-input input,
.filter-input select {
  width: 100%;
  padding: 9px 12px 9px 36px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: white;
  color: var(--text-primary);
  transition: var(--transition);
}

.filter-input select {
  padding-left: 12px;
  cursor: pointer;
  appearance: auto;
}

.filter-input input:focus,
.filter-input select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.08);
}

.filter-select {
  padding: 9px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: white;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
}

.filter-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.08);
}

/* ============================================================
   GAME CARDS
   ============================================================ */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.game-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  position: relative;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.game-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.game-card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
}

.game-card-icon.card { background: linear-gradient(135deg, #e94560, #c73e54); }
.game-card-icon.board { background: linear-gradient(135deg, #00b894, #00a381); }
.game-card-icon.casino { background: linear-gradient(135deg, #7c3aed, #6c2bd9); }
.game-card-icon.number { background: linear-gradient(135deg, #fdcb6e, #f0932b); }
.game-card-icon.dice { background: linear-gradient(135deg, #74b9ff, #0984e3); }

.game-status-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.game-status-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ccc;
  border-radius: 24px;
  transition: var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  top: 3px;
  left: 3px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.game-status-toggle input:checked + .toggle-slider {
  background: var(--success);
}

.game-status-toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

.game-card-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.game-card-type {
  font-size: 12px;
  color: var(--text-muted);
}

.game-card-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.game-stat {
  text-align: center;
  padding: 10px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
}

.game-stat-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.game-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.game-card-footer {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.game-card-footer .btn {
  flex: 1;
  justify-content: center;
}

/* Progress Bar */
.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--border-light);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 12px;
}

.progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s ease;
  background: var(--gradient);
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalOverlayIn 0.2s ease;
}

@keyframes modalOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: white;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  animation: modalSlideIn 0.3s ease;
  display: flex;
  flex-direction: column;
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 17px;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--danger-bg);
  color: var(--danger);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Modal Sections */
.modal-section {
  margin-bottom: 20px;
}

.modal-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.modal-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.modal-info-item {
  display: flex;
  flex-direction: column;
}

.modal-info-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.modal-info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-info-value.large {
  font-size: 20px;
  font-weight: 800;
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid;
  min-width: 320px;
  max-width: 420px;
  animation: toastSlideIn 0.4s ease;
  position: relative;
  overflow: hidden;
}

.toast::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: currentColor;
  animation: toastTimer 3s linear forwards;
}

@keyframes toastTimer {
  from { width: 100%; }
  to { width: 0%; }
}

.toast.hiding {
  animation: toastSlideOut 0.3s ease forwards;
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(100px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastSlideOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(100px); }
}

.toast.success { border-color: var(--success); color: var(--success); }
.toast.error { border-color: var(--danger); color: var(--danger); }
.toast.warning { border-color: var(--warning-dark); color: var(--warning-dark); }
.toast.info { border-color: var(--info); color: #2980b9; }

.toast-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.toast.success .toast-icon { background: var(--success-bg); }
.toast.error .toast-icon { background: var(--danger-bg); }
.toast.warning .toast-icon { background: var(--warning-bg); }
.toast.info .toast-icon { background: var(--info-bg); }

.toast-message {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  flex: 1;
}

.toast-close {
  background: none;
  color: var(--text-muted);
  font-size: 14px;
  padding: 4px;
  transition: var(--transition);
}

.toast-close:hover {
  color: var(--text-primary);
}

/* ============================================================
   NOTIFICATION PANEL
   ============================================================ */
.notification-panel {
  position: fixed;
  top: var(--header-height);
  right: 0;
  width: 380px;
  max-height: calc(100vh - var(--header-height));
  background: white;
  box-shadow: var(--shadow-xl);
  z-index: 150;
  animation: notifSlide 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@keyframes notifSlide {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.notif-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notif-header h3 {
  font-size: 15px;
  font-weight: 700;
}

.notif-header button {
  background: none;
  color: var(--text-muted);
  font-size: 16px;
}

.notif-list {
  overflow-y: auto;
  flex: 1;
}

.notif-item {
  display: flex;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
  cursor: pointer;
}

.notif-item:hover {
  background: var(--bg-input);
}

.notif-item.unread {
  background: rgba(15, 52, 96, 0.02);
}

.notif-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.notif-icon.green { background: var(--success-bg); color: var(--success); }
.notif-icon.blue { background: var(--info-bg); color: #2980b9; }
.notif-icon.red { background: var(--danger-bg); color: var(--danger); }
.notif-icon.yellow { background: var(--warning-bg); color: var(--warning-dark); }

.notif-content p {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.4;
}

.notif-content span {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  display: block;
}

/* ============================================================
   ACTIVITY FEED
   ============================================================ */
.activity-list {
  padding: 0;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.activity-icon.win { background: var(--success-bg); color: var(--success); }
.activity-icon.deposit { background: var(--info-bg); color: #2980b9; }
.activity-icon.withdrawal { background: var(--warning-bg); color: var(--warning-dark); }
.activity-icon.bonus { background: var(--purple-bg); color: var(--purple); }
.activity-icon.register { background: rgba(15, 52, 96, 0.1); color: var(--primary); }
.activity-icon.ban { background: var(--danger-bg); color: var(--danger); }
.activity-icon.suspend { background: var(--warning-bg); color: var(--warning-dark); }
.activity-icon.kyc { background: var(--success-bg); color: var(--success); }
.activity-icon.system { background: var(--bg-input); color: var(--text-secondary); }

.activity-info {
  flex: 1;
}

.activity-info .activity-text {
  font-size: 13px;
  color: var(--text-primary);
}

.activity-info .activity-text strong {
  font-weight: 600;
}

.activity-info .activity-time {
  font-size: 11px;
  color: var(--text-muted);
}

.activity-amount {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.activity-amount.green { color: var(--success); }
.activity-amount.red { color: var(--danger); }

/* ============================================================
   SETTINGS TABS
   ============================================================ */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 24px;
}

.tab {
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}

.tab:hover {
  color: var(--primary);
}

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Settings Form */
.settings-group {
  margin-bottom: 24px;
}

.settings-group-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}

.settings-row:last-child {
  border-bottom: none;
}

.settings-label {
  display: flex;
  flex-direction: column;
}

.settings-label .label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.settings-label .description {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.settings-input {
  padding: 8px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  width: 280px;
  transition: var(--transition);
}

.settings-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.08);
}

.settings-toggle {
  position: relative;
  width: 48px;
  height: 26px;
  cursor: pointer;
}

.settings-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.settings-toggle .slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ccc;
  border-radius: 26px;
  transition: var(--transition);
}

.settings-toggle .slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  top: 3px;
  left: 3px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.settings-toggle input:checked + .slider {
  background: var(--success);
}

.settings-toggle input:checked + .slider::before {
  transform: translateX(22px);
}

/* ============================================================
   SKELETON LOADING
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-text-sm { height: 10px; width: 60%; }
.skeleton-circle { border-radius: 50%; }
.skeleton-card { height: 120px; }
.skeleton-row { height: 48px; margin-bottom: 8px; }

/* ============================================================
   CONFIRMATION DIALOG
   ============================================================ */
.confirm-dialog {
  text-align: center;
  padding: 20px;
}

.confirm-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.confirm-icon.warning {
  background: var(--warning-bg);
  color: var(--warning-dark);
}

.confirm-icon.danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.confirm-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.confirm-message {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.confirm-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-icon {
  font-size: 48px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.empty-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-100%);
    z-index: 300;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .header {
    left: 0;
  }

  .main-content {
    margin-left: 0;
  }

  .sidebar-toggle {
    display: flex;
  }

  .header-center {
    display: none;
  }

  .admin-info {
    display: none;
  }

  .admin-profile > i {
    display: none;
  }

  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 250;
  }

  .overlay.show {
    display: block;
  }

  .charts-grid {
    grid-template-columns: 1fr;
  }

  .notification-panel {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .page-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .page-header-right {
    width: 100%;
  }

  .toolbar {
    flex-direction: column;
  }

  .filter-input {
    width: 100%;
    min-width: auto;
  }

  .modal-content {
    width: 95%;
    max-height: 90vh;
  }

  .modal-info-grid {
    grid-template-columns: 1fr;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .settings-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .settings-input {
    width: 100%;
  }

  .main-content {
    padding: 16px;
  }

  .toast {
    min-width: auto;
    max-width: calc(100vw - 40px);
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: 30px 20px;
  }

  .header-right {
    gap: 4px;
  }

  .header-icon-btn:not(.notification-btn) {
    display: none;
  }
}

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 40px auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning-dark) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.font-bold { font-weight: 700 !important; }
.font-mono { font-family: 'Courier New', monospace; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-10 { gap: 10px; }
.hidden { display: none !important; }
.mb-8 { margin-bottom: 8px; }

/* ============================================================
   NEW COMPONENT STYLES - PRODUCTION LEVEL
   ============================================================ */

/* KYC Card */
.kyc-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--warning-dark);
  margin-bottom: 12px;
}
.kyc-card.approved { border-left-color: var(--success); }
.kyc-card.rejected { border-left-color: var(--danger); }
.kyc-card.pending { border-left-color: var(--warning-dark); }

/* Withdrawal Card */
.wdr-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 12px;
  transition: var(--transition);
}
.wdr-card:hover {
  box-shadow: var(--shadow-md);
}

/* Ticket Chat */
.ticket-chat {
  max-height: 300px;
  overflow-y: auto;
  padding: 16px;
  background: var(--bg-input);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}
.chat-msg {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
}
.chat-msg.user { align-items: flex-end; }
.chat-msg.support { align-items: flex-start; }
.chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.5;
}
.chat-msg.user .chat-bubble {
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 4px;
}
.chat-msg.support .chat-bubble {
  background: white;
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}
.chat-time {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* VIP Tier Card */
.tier-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.tier-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.tier-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}
.tier-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}
.tier-name {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}
.tier-count {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.tier-benefits {
  text-align: left;
  padding: 12px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
}
.tier-benefit-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 12px;
  border-bottom: 1px solid var(--border-light);
}
.tier-benefit-row:last-child { border-bottom: none; }

/* Fraud Alert Card */
.fraud-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  border-left: 4px solid;
  margin-bottom: 12px;
}
.fraud-card.critical { border-left-color: #e74c3c; }
.fraud-card.high { border-left-color: #e17055; }
.fraud-card.medium { border-left-color: var(--warning-dark); }
.fraud-card.low { border-left-color: var(--info); }

/* Server Status Card */
.server-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 12px;
}
.server-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}
.server-status-dot.online { background: var(--success); animation: pulse 2s infinite; }
.server-status-dot.offline { background: var(--danger); }
.server-status-dot.degraded { background: var(--warning-dark); }

/* Resource Bar */
.resource-bar {
  width: 100%;
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 4px;
}
.resource-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease;
}
.resource-fill.low { background: var(--success); }
.resource-fill.medium { background: var(--warning-dark); }
.resource-fill.high { background: var(--danger); }

/* Audit Log Item */
.audit-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}
.audit-item:last-child { border-bottom: none; }
.audit-action-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.audit-action-icon.ban { background: var(--danger-bg); color: var(--danger); }
.audit-action-icon.approve { background: var(--success-bg); color: var(--success); }
.audit-action-icon.reject { background: var(--danger-bg); color: var(--danger); }
.audit-action-icon.settings { background: var(--info-bg); color: #2980b9; }
.audit-action-icon.game { background: var(--purple-bg); color: var(--purple); }
.audit-action-icon.bonus { background: var(--warning-bg); color: var(--warning-dark); }
.audit-action-icon.announce { background: rgba(15, 52, 96, 0.1); color: var(--primary); }

/* Badge variants */
.badge-red { background: rgba(231, 76, 60, 0.15); color: #e74c3c; }
.badge-green { background: rgba(0, 184, 148, 0.15); color: var(--success); }
.badge-orange { background: rgba(243, 156, 18, 0.15); color: #f39c12; }

/* Form styles for modals */
.modal-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.modal-form-grid .full-width {
  grid-column: span 2;
}
.form-input {
  width: 100%;
  padding: 9px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-primary);
  background: white;
  transition: var(--transition);
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.08);
}
.form-select {
  width: 100%;
  padding: 9px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-primary);
  background: white;
  cursor: pointer;
}
.form-textarea {
  width: 100%;
  padding: 9px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-primary);
  background: white;
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-group-modal {
  margin-bottom: 0;
}

/* Tab styles for view user modal */
.view-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 16px;
}
.view-tab {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: var(--transition);
}
.view-tab:hover { color: var(--primary); }
.view-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.view-tab-content { display: none; }
.view-tab-content.active { display: block; }

/* Table action row */
.table-actions {
  display: flex;
  gap: 4px;
}

/* Risk level badges */
.risk-low { color: var(--success); font-weight: 600; }
.risk-medium { color: var(--warning-dark); font-weight: 600; }
.risk-high { color: var(--danger); font-weight: 600; }
.risk-critical { color: #e74c3c; font-weight: 700; text-transform: uppercase; }

/* Stat mini card */
.stat-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--bg-input);
  border-radius: var(--radius-md);
}
.stat-mini-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.stat-mini-value {
  font-size: 18px;
  font-weight: 800;
}
.stat-mini-label {
  font-size: 11px;
  color: var(--text-muted);
}

/* Info row for modals */
.info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}
.info-row:last-child { border-bottom: none; }
.info-row .label { color: var(--text-secondary); }
.info-row .value { font-weight: 600; color: var(--text-primary); }

/* Game filter buttons */
.game-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.game-filter-btn {
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 2px solid var(--border);
  background: white;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}
.game-filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.game-filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Empty state for tables */
.table-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}
.table-empty i {
  font-size: 36px;
  margin-bottom: 12px;
  display: block;
}

/* Notification badge red */
.menu-badge.red {
  background: rgba(231, 76, 60, 0.2);
  color: #ff7675;
}

/* Scrollable modal body */
.modal-body-scroll {
  max-height: 60vh;
  overflow-y: auto;
}
