/* =========================
   PREMIUM ADMIN DASHBOARD UI
   ========================= */

:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --accent: #7c3aed;
  --bg: #f1f5f9;
  --glass: rgba(255, 255, 255, 0.75);
  --border: rgba(255, 255, 255, 0.3);
  --text-dark: #0f172a;
  --text-light: #64748b;
  --danger: #ef4444;
  --warning: #f59e0b;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}
/* ================================
   UXV9 GLASS WHITE BLUE THEME
   Unique Class Prefix: uxv9-glx-
================================ */

/* Main Background */
.uxv9-glx-shell {
  min-height: 100vh;
  background: linear-gradient(135deg, #eaf4ff, #ffffff);
  font-family: 'Segoe UI', sans-serif;
  padding: 20px;
}

/* Navbar */
.uxv9-glx-shell .navbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 15px;
  border-radius: 14px;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 119, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 119, 255, 0.15);
  margin-bottom: 20px;
}

.uxv9-glx-shell .navbar button {
  background: rgba(0, 119, 255, 0.08);
  border: 1px solid rgba(0, 119, 255, 0.2);
  color: #0077ff;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s ease;
  font-weight: 500;
}

.uxv9-glx-shell .navbar button:hover {
  background: #0077ff;
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 119, 255, 0.3);
}

.uxv9-glx-shell .navbar button.active {
  background: #0077ff;
  color: #fff;
}

/* Container Glass Card */
.uxv9-glx-shell .container1 {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 119, 255, 0.15);
  border: 1px solid rgba(0, 119, 255, 0.2);
}

/* Headings */
.uxv9-glx-shell h2,
.uxv9-glx-shell h3 {
  color: #0056c7;
  margin-bottom: 10px;
}

/* Inputs */
.uxv9-glx-shell input {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 119, 255, 0.3);
  outline: none;
  background: rgba(255, 255, 255, 0.7);
  transition: 0.3s ease;
}

.uxv9-glx-shell input:focus {
  border-color: #0077ff;
  box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.15);
}

/* Buttons */
.uxv9-glx-shell button {
  background: linear-gradient(135deg, #0077ff, #00aaff);
  border: none;
  color: white;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.3s ease;
  margin-bottom: 10px;
}

.uxv9-glx-shell button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 119, 255, 0.3);
}

/* HR Styling */
.uxv9-glx-shell hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, #0077ff, transparent);
  margin: 20px 0;
}

/* Hidden Class */
.uxv9-glx-shell .hidden {
  display: none;
}

/* QR List Card */
.uxv9-glx-shell #qrList > div {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 119, 255, 0.2);
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 10px;
  transition: 0.3s ease;
}

.uxv9-glx-shell #qrList > div:hover {
  box-shadow: 0 6px 20px rgba(0, 119, 255, 0.15);
}

/* Modal Background */
#qrModal {
  display: flex;
}

/* Modal Card */
#qrModal > div {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 119, 255, 0.3);
  border: 1px solid rgba(0, 119, 255, 0.2);
}

/* Close Button */
#qrModal span {
  color: #0077ff;
  font-weight: bold;
}

#qrModal span:hover {
  color: red;
}
/* STATUS BASE STYLE */
.uxv9-glx-status {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* ACTIVE STATUS */
.uxv9-glx-status.active {
  background: rgba(0,200,100,0.15);
  color: #00a86b;
}

/* INACTIVE STATUS */
.uxv9-glx-status.inactive {
  background: rgba(255,0,0,0.1);
  color: #d00000;
}


/* =========================
   LOGIN SECTION
   ========================= */

/* #loginSection {
  max-width: 420px;
  margin: 80px auto;
  padding: 40px;
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(15px);
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  text-align: center;
} */
/* ===== AUTH SECTION ONLY ===== */
.auth-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #3E73F1, #1f4fd8);
  overflow: hidden;
}
/* ===== PARTICLE ANIMATION ===== */
.auth-wrapper::before,
.auth-wrapper::after {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background-image: radial-gradient(circle, rgba(255,255,255,0.15) 2px, transparent 2px);
  background-size: 60px 60px;
  animation: moveParticles 60s linear infinite;
  top: -50%;
  left: -50%;
  z-index: 0;
}

.auth-wrapper::after {
  animation-duration: 90s;
  opacity: 0.5;
}

@keyframes moveParticles {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(200px, 200px);
  }
}

/* Ensure glass box stays above particles */
.glass-box {
  position: relative;
  z-index: 1;
}
.users{
  color: #ffffff;
}

.glass-box {
  width: 400px;
  padding: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
  color: #fff;
}

.glass-box h2 {
  margin-bottom: 30px;
}

.input-field {
  position: relative;
  margin: 20px 0;
  border-bottom: 2px solid rgba(255,255,255,0.5);
}

.input-field input {
  width: 100%;
  height: 45px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 16px;
  color: #fff;
}

.input-field label {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  transition: 0.3s;
  pointer-events: none;
  color: rgba(255,255,255,0.7);
}

.input-field input:focus ~ label,
.input-field input:valid ~ label {
  top: 0;
  font-size: 12px;
  color: #fff;
}

.glass-box button {
  width: 100%;
  padding: 12px;
  margin-top: 20px;
  border: none;
  border-radius: 5px;
  background: #fff;
  color: #000;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.glass-box button:hover {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}

.switch-link {
  margin-top: 20px;
}

.switch-link a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.switch-link a:hover {
  text-decoration: underline;
}

/* =========================
   HIDDEN CLASS
   ========================= */

.hidden {
  display: none;
}

/* =========================
   RESPONSIVE DESIGN
   ========================= */





/* Smooth Animations */
* {
  transition: background 0.2s ease, color 0.2s ease;
}/* =========================
   GLASS POPUP NOTIFICATION SYSTEM
   ========================= */

.glass-popup-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.glass-popup {
  min-width: 280px;
  max-width: 360px;
  padding: 18px 22px;
  border-radius: 16px;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 20px 45px rgba(0,0,0,0.15);
  color: var(--text-dark);
  animation: slideIn 0.4s ease forwards;
  position: relative;
  overflow: hidden;
}

.glass-popup.success { border-left: 5px solid #10b981; }
.glass-popup.error { border-left: 5px solid var(--danger); }
.glass-popup.warning { border-left: 5px solid var(--warning); }
.glass-popup.info { border-left: 5px solid var(--primary); }

.glass-popup h4 {
  margin: 0 0 5px 0;
  font-size: 15px;
}

.glass-popup p {
  margin: 0;
  font-size: 14px;
  color: var(--text-dark);
}

.glass-popup .close-popup {
  position: absolute;
  top: 8px;
  right: 12px;
  cursor: pointer;
  font-weight: bold;
  color: var(--text-light);
}

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

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}
/* ==========================
   POPUP STYLES
========================== */

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.popup-box {
  background: #fff;
  padding: 25px;
  width: 90%;
  max-width: 420px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  animation: slideUp 0.3s ease;
}

/* TYPES */
.popup-box.success { border-top: 6px solid #28a745; }
.popup-box.error { border-top: 6px solid #dc3545; }
.popup-box.warning { border-top: 6px solid #ffc107; }
.popup-box.info { border-top: 6px solid #007bff; }

.popup-actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.popup-actions button {
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.popup-actions button.secondary {
  background: #ccc;
}

.popup-actions button:not(.secondary) {
  background: #007bff;
  color: white;
}

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

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

/* =========================
   HAMBURGER MENU (MOBILE)
   ========================= */



/* Mobile Navbar Drawer */
@media (max-width: 768px) {

  .navbar {
    justify-content: flex-start;
    padding-left: 60px;
  }

  .hamburger {
    display: flex;
  }

  .navbar-buttons {
    position: fixed;
    top: 0;
    left: -260px;
    height: 100%;
    width: 240px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    display: flex;
    flex-direction: column;
    padding: 80px 20px;
    gap: 15px;
    transition: 0.3s ease;
    box-shadow: 10px 0 40px rgba(0,0,0,0.2);
  }

  .navbar-buttons.active {
    left: 0;
  }

  .navbar button {
    width: 100%;
    text-align: left;
  }
}

/* =========================
   MODERN BADGE
   ========================= */

[id^="badge_"] {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 30px;
  background: linear-gradient(135deg, #ef4444, #f87171);
  box-shadow: 0 5px 15px rgba(239,68,68,0.3);
}

/* =========================
   IMPROVED CARD INTERACTION
   ========================= */

.card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px) scale(1.01);
}

/* =========================
   SMOOTH BUTTON EFFECT
   ========================= */

button:active {
  transform: scale(0.96);
}

/* =========================
   SMOOTH TAB FADE
   ========================= */

#qrsTab,
#messagesTab,
#sosTab,
#alertEmailTab {
  animation: fadeTab 0.25s ease;
}

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