/* assets/css/admin.css - Millennium India Group Admin Panel Styling */
:root {
  --admin-bg: #12141d;
  --admin-sidebar: #1b1e2b;
  --admin-card: #202434;
  --admin-card-border: #2e344a;
  --admin-primary: #f5b722;
  --admin-accent: #8e194f;
  --admin-text: #e6e8f0;
  --admin-text-muted: #9aa1b8;
  --badge-pending: #f59e0b;
  --badge-verified: #10b981;
  --badge-failed: #ef4444;
  --badge-checked: #3b82f6;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  background-color: var(--admin-bg);
  color: var(--admin-text);
  min-height: 100vh;
  display: flex;
}

/* Layout */
.admin-wrapper {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background: var(--admin-sidebar);
  border-right: 1px solid var(--admin-card-border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--admin-card-border);
}

.sidebar-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--admin-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-menu {
  list-style: none;
  padding: 20px 12px;
  flex: 1;
  overflow-y: auto;
}

.sidebar-menu li {
  margin-bottom: 6px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--admin-text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: rgba(245, 183, 34, 0.12);
  color: var(--admin-primary);
  box-shadow: inset 3px 0 0 var(--admin-primary);
}

.sidebar-link i, .sidebar-link svg {
  font-size: 1.2rem;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--admin-card-border);
  font-size: 0.85rem;
  color: var(--admin-text-muted);
}

/* Main Content Area */
.admin-main {
  flex: 1;
  padding: 30px;
  background: var(--admin-bg);
  overflow-y: auto;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.admin-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
}

.admin-subtitle {
  color: var(--admin-text-muted);
  font-size: 0.95rem;
  margin-top: 4px;
}

/* Metrics Dashboard Cards */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.metric-card {
  background: var(--admin-card);
  border: 1px solid var(--admin-card-border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  transition: transform 0.2s;
}

.metric-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 183, 34, 0.4);
}

.metric-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.metric-icon-gold { background: rgba(245, 183, 34, 0.15); color: #f5b722; }
.metric-icon-green { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.metric-icon-blue { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.metric-icon-amber { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }

.metric-val {
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.metric-lbl {
  font-size: 0.85rem;
  color: var(--admin-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Card Container */
.admin-card {
  background: var(--admin-card);
  border: 1px solid var(--admin-card-border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 25px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

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

.admin-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  padding: 14px 16px;
  background: rgba(18, 20, 29, 0.6);
  color: var(--admin-text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--admin-card-border);
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(46, 52, 74, 0.5);
  font-size: 0.95rem;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Status Badges */
.badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-verified {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-failed {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-checked {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Action Buttons */
.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: 6px;
  font-weight: 600;
}

.btn-verify {
  background: #10b981;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-verify:hover {
  background: #059669;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--admin-card);
  border: 1px solid var(--admin-primary);
  border-radius: 14px;
  width: 90%;
  max-width: 520px;
  padding: 26px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

/* Mobile Admin Nav */
@media (max-width: 860px) {
  .admin-wrapper {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  .admin-main {
    padding: 16px;
  }
}

/* ========================================================
   BookMyShow-Style Organizer Console Styles
   ======================================================== */
.bms-hero-card {
  background: linear-gradient(135deg, rgba(32, 36, 52, 0.95) 0%, rgba(20, 23, 34, 0.98) 100%);
  border: 1px solid rgba(245, 183, 34, 0.35);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 26px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.bms-hero-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(245, 183, 34, 0.12) 0%, rgba(245, 183, 34, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.bms-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.bms-event-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 183, 34, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 183, 34, 0.3);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bms-event-tag .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.bms-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 14px;
  color: #cbd5e1;
  font-size: 0.92rem;
}

.bms-hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.bms-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* 5-Column High Density Metric Grid */
.bms-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.bms-kpi-card {
  background: #1a1d2b;
  border: 1px solid #282f45;
  border-radius: 14px;
  padding: 20px 22px;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.bms-kpi-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 183, 34, 0.4);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.bms-kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.bms-kpi-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.bms-kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.bms-kpi-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 6px;
}

.bms-kpi-sub {
  font-size: 0.8rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Grand Hall Progress Meter */
.bms-hall-banner {
  background: #181b28;
  border: 1px solid #2b324a;
  border-radius: 14px;
  padding: 18px 24px;
  margin-bottom: 24px;
}

.bms-hall-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.bms-progress-track {
  width: 100%;
  height: 12px;
  background: #0f1118;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  border: 1px solid #23283c;
}

.bms-progress-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Category Matrix Cards (Kon seats khali hai, kon sa book hai) */
.bms-matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 26px;
}

.bms-matrix-card {
  background: #191c2b;
  border: 1px solid #2b334d;
  border-radius: 14px;
  padding: 22px;
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bms-matrix-card:hover {
  transform: translateY(-3px);
  border-color: #f5b722;
  box-shadow: 0 8px 25px rgba(245, 183, 34, 0.12);
}

.bms-matrix-badge-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.bms-matrix-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.bms-matrix-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffd966;
  margin-bottom: 14px;
}

.bms-matrix-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  background: #11141f;
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
  margin-bottom: 14px;
  border: 1px solid #20263a;
}

.bms-stat-box-num {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
}

.bms-stat-box-lbl {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 600;
  margin-top: 2px;
}

.bms-matrix-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #262c42;
  margin-top: 8px;
}

/* Badges for food & whatsapp */
.badge-food-yes {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-food-no {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.2s;
}

.btn-whatsapp:hover {
  background: #1eb956;
  color: #ffffff;
}

.btn-bms-gold {
  background: linear-gradient(135deg, #f5b722 0%, #d97706 100%);
  color: #12141d;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.btn-bms-gold:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-bms-dark {
  background: #202434;
  color: #ffffff;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid #2e344a;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.btn-bms-dark:hover {
  background: #282e44;
  border-color: #3f4764;
}

.btn-copy-tag {
  background: rgba(245, 183, 34, 0.12);
  color: #ffd966;
  font-family: monospace;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
  border: 1px solid rgba(245, 183, 34, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-copy-tag:hover {
  background: rgba(245, 183, 34, 0.22);
}

/* Ticket Status Badges (Ticket Mila vs Nahi Mila) */
.ticket-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.ticket-status-issued {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

.ticket-status-pending {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.ticket-status-failed {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

/* Filter Navigation Tabs */
.bms-tabs-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.bms-tab-btn {
  background: #1b1e2c;
  color: #94a3b8;
  border: 1px solid #282f45;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.bms-tab-btn:hover {
  background: #252b3d;
  color: #ffffff;
  border-color: #3f4764;
}

.bms-tab-btn.active {
  background: rgba(245, 183, 34, 0.18);
  color: #f5b722;
  border-color: #f5b722;
  box-shadow: 0 2px 8px rgba(245, 183, 34, 0.2);
}

.bms-tab-count {
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 800;
}

.btn-delete-row {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.btn-delete-row:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}


