/* AuraCore Master Design System & Mobile Responsive Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #121824;
  --bg-card: rgba(20, 27, 41, 0.85);
  --bg-card-hover: rgba(28, 38, 57, 0.92);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(0, 229, 255, 0.35);
  
  --accent-cyan: #00E5FF;
  --accent-emerald: #00E676;
  --accent-purple: #7C4DFF;
  --accent-amber: #FF9100;
  --accent-rose: #FF2A6D;
  
  --text-main: #F0F4F9;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-glow-cyan: 0 0 20px rgba(0, 229, 255, 0.25);
  --shadow-glow-emerald: 0 0 20px rgba(0, 230, 118, 0.25);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.4);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(at 0% 0%, rgba(124, 77, 255, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(0, 229, 255, 0.12) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(0, 230, 118, 0.08) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-body);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* App Header & Top Navigation */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-img {
  height: 40px;
  width: auto;
  max-width: 120px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: #000;
  border: 1px solid rgba(255, 215, 0, 0.4);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.25);
  padding: 2px 4px;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #FFFFFF 30%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.35);
  color: var(--accent-emerald);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
}

.contact-badge:hover {
  background: rgba(0, 230, 118, 0.22);
  box-shadow: var(--shadow-glow-emerald);
}

/* App Main Container */
.main-container, .app-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
}

/* Live Notification Bar */
.live-notification-bar {
  background: linear-gradient(90deg, rgba(255, 145, 0, 0.2), rgba(124, 77, 255, 0.2));
  border: 1px solid var(--accent-amber);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.notification-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-amber);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: bold;
  flex-shrink: 0;
}

.notification-text h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: #FFF;
}

.notification-text p {
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* Card UI */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* UI Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  min-height: 44px; /* Mobile Touch Target Standard */
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
  text-decoration: none;
  touch-action: manipulation;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), #00B0FF);
  color: #000;
  font-weight: 700;
}

.btn-emerald {
  background: linear-gradient(135deg, var(--accent-emerald), #00C853);
  color: #000;
  font-weight: 700;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-danger {
  background: linear-gradient(135deg, var(--accent-rose), #D50000);
  color: #FFF;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  min-height: 36px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

/* Badge System */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-cyan { background: rgba(0, 229, 255, 0.12); color: var(--accent-cyan); border: 1px solid rgba(0, 229, 255, 0.3); }
.badge-emerald { background: rgba(0, 230, 118, 0.12); color: var(--accent-emerald); border: 1px solid rgba(0, 230, 118, 0.3); }
.badge-purple { background: rgba(124, 77, 255, 0.12); color: var(--accent-purple); border: 1px solid rgba(124, 77, 255, 0.3); }
.badge-amber { background: rgba(255, 145, 0, 0.12); color: var(--accent-amber); border: 1px solid rgba(255, 145, 0, 0.3); }

/* Progress Bar */
.progress-bar-bg {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-emerald));
  border-radius: var(--radius-full);
  transition: width 0.4s ease-in-out;
}

/* Modal Overlay & Responsive Mobile Sheet */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 8, 15, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

/* Forms & Input controls */
.form-group {
  margin-bottom: 0.9rem;
}

.form-label {
  display: block;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.form-control {
  width: 100%;
  padding: 0.7rem 0.85rem;
  min-height: 44px; /* Touch friendly */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.08);
}

select.form-control option {
  background: var(--bg-secondary);
  color: var(--text-main);
}

/* Data Table Styling with Mobile Scroll Wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  min-width: 580px; /* Ensures clean layout on small screens with scroll */
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.data-table th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}

/* Floating Circular WhatsApp Support Icon */
.whatsapp-float-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF !important;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.whatsapp-icon-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 11px;
  height: 11px;
  background: #00E676;
  border: 2px solid #0D1117;
  border-radius: 50%;
}

/* Footer Styling */
.app-footer {
  background: rgba(10, 14, 23, 0.95);
  border-top: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem;
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .grid-4, .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .app-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
  }
  
  .brand-logo {
    justify-content: center;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 1rem;
  }

  .main-container, .app-container {
    padding: 1rem 0.75rem 5rem;
  }

  .whatsapp-float-btn {
    bottom: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
  }

  /* Admin Header Toolbar Buttons Stack on Mobile */
  .admin-header-toolbar {
    flex-direction: column;
    align-items: stretch !important;
  }

  .admin-nav-bar {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.5rem;
  }
}

@media (max-width: 480px) {
  .brand-title {
    font-size: 1.2rem;
  }

  .btn {
    width: 100%;
    font-size: 0.85rem;
  }

  .modal-container {
    padding: 1rem;
    max-height: 95vh;
  }
}
