/* Premium Health-Tech Emerald + Deep Navy Design System */
:root {
  /* Primary Brand Colors */
  --primary-color: #059669; /* Emerald */
  --primary-hover: #047857; /* Dark Emerald */
  --primary-dark: #047857;
  --secondary-color: #10B981; /* Green Accent */
  --mint: #D1FAE5; /* Mint */
  --light-mint: #F0FDFA;
  --light-emerald: #ECFDF5;
  --dark-navy: #0F172A; /* Deep Navy */
  --navy-hover: #1E293B;

  /* Global Surface & Layout */
  --dark-bg: #F8FAFC; /* Clean Light Healthcare Background */
  --darker-bg: #FFFFFF;
  --card-bg: #FFFFFF;
  --bg-main: #F8FAFC;
  --glass-bg: #FFFFFF;
  --glass-border: #E2E8F0;
  --glass-glow: rgba(5, 150, 105, 0.12);
  --header-bg: #0F172A; /* Deep Navy Header */
  --nav-mobile-bg: #0F172A;
  --footer-bg: #0F172A;
  --sidebar-bg: #0F172A;

  /* Typography & Text */
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --accent: #059669;

  /* Form & Layout */
  --form-input-bg: #FFFFFF;
  --border-radius: 16px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --hero-heading-gradient: linear-gradient(135deg, #0F172A 30%, #059669 100%);
  --shadow-color: rgba(15, 23, 42, 0.06);

  /* Status Colors */
  --success: #16A34A;
  --success-bg: #DCFCE7;
  --warning: #F59E0B;
  --warning-bg: #FEF3C7;
  --error: #DC2626;
  --error-bg: #FEE2E2;
  --info: #2563EB;
  --info-bg: #DBEAFE;
}

/* Dark Mode Theme Overrides */
[data-theme="dark"] {
  --dark-bg: #020617;
  --darker-bg: #0F172A;
  --card-bg: #0F172A;
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --glass-bg: #0F172A;
  --glass-border: #1E293B;
  --glass-glow: rgba(16, 185, 129, 0.15);
  --header-bg: #0F172A;
  --nav-mobile-bg: #0F172A;
  --footer-bg: #020617;
  --sidebar-bg: #0F172A;
  --form-input-bg: #1E293B;
  --hero-heading-gradient: linear-gradient(135deg, #FFFFFF 30%, #10B981 100%);
  --shadow-color: rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] body {
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(16, 185, 129, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 90% 85%, rgba(5, 150, 105, 0.08) 0%, transparent 45%);
}

[data-theme="dark"] select,
[data-theme="dark"] select option {
  background-color: #0F172A;
  color: #F8FAFC;
}

input::placeholder,
textarea::placeholder {
  color: #94A3B8;
  opacity: 1;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: #94A3B8;
  opacity: 1;
}

[data-theme="dark"] table tr {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] th {
  color: #F8FAFC;
}

[data-theme="dark"] td {
  color: #CBD5E1;
}

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

body, input, button, select, textarea {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}

/* Ensure FontAwesome icons inherit proper icon font family */
.fas, .far, .fab, .fa, .feature-icon, i[class*="fa-"] {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome" !important;
  font-weight: 900;
  font-style: normal;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--dark-bg);
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(5, 150, 105, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 90% 85%, rgba(16, 185, 129, 0.05) 0%, transparent 45%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video, iframe {
  max-width: 100%;
  height: auto;
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 32px 0 var(--shadow-color);
}

/* Header/Nav */
header {
  padding: 1.1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  width: 100%;
  transition: var(--transition);
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #10B981, #6EE7B7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.5px;
  filter: drop-shadow(0 2px 8px rgba(16, 185, 129, 0.3));
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  font-size: 1.1rem;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: rgba(5, 150, 105, 0.2);
  border-color: #059669;
  color: #10B981;
  transform: scale(1.05);
}

/* Hamburger Toggle Button */
.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  font-size: 1.2rem;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
}

.nav-toggle:hover, .nav-toggle:active {
  background: rgba(5, 150, 105, 0.25);
  border-color: #059669;
  color: #fff;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: #CBD5E1;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  font-size: 0.95rem;
}

nav a:hover {
  color: #10B981;
}

/* Buttons System */
.btn {
  padding: 0.65rem 1.6rem;
  border-radius: 30px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  max-width: 100%;
  white-space: nowrap;
  font-size: 0.95rem;
}

.btn-primary {
  background: #059669;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.25);
}

.btn-primary:hover {
  background: #047857;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.35);
}

.btn-primary:active {
  transform: translateY(0) scale(0.97);
}

/* Instant Tap & Touch Visual Feedback System */
.btn:active, 
button:active, 
.mobile-nav-item:active, 
.sidebar-menu a:active, 
.nav-toggle:active, 
.theme-toggle:active, 
.card:active, 
.feature-card:active,
.dashboard-card:active,
a.btn:active,
.tap-active {
  transform: scale(0.97) !important;
  opacity: 0.88 !important;
  transition: transform 0.04s ease-out, opacity 0.04s ease-out !important;
}

.btn-secondary {
  background: #D1FAE5;
  color: #047857;
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.btn-secondary:hover {
  background: #A7F3D0;
  color: #047857;
}

.btn-outline {
  background: transparent;
  border: 1px solid #059669;
  color: #059669;
}

.btn-outline:hover {
  background: #059669;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.25);
}

.btn-dark {
  background: #0F172A;
  color: #ffffff;
}

.btn-dark:hover {
  background: #1E293B;
  color: #ffffff;
}

/* Main Layout */
main {
  flex-grow: 1;
  padding: 2.5rem 5%;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 75vh;
  gap: 3rem;
  padding: 2rem 0;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--hero-heading-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  word-wrap: break-word;
}

.hero-text p {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.65;
  max-width: 600px;
}

.hero-image {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 480px;
  padding: 2.5rem !important;
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 15px 35px var(--shadow-color), 0 0 40px rgba(74, 144, 226, 0.1);
  transition: var(--transition);
}

.hero-image:hover {
  border-color: rgba(80, 227, 194, 0.3);
  box-shadow: 0 20px 40px var(--shadow-color), 0 0 50px rgba(80, 227, 194, 0.15);
}

.hero-image i {
  color: var(--primary-color);
  filter: drop-shadow(0 0 20px rgba(74, 144, 226, 0.4));
  transition: var(--transition);
}

.hero-image:hover i {
  transform: scale(1.05);
  color: var(--secondary-color);
  filter: drop-shadow(0 0 25px rgba(80, 227, 194, 0.5));
}

/* Features Component styles */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3.5rem;
  width: 100%;
}

.feature-card {
  padding: 2.2rem;
  text-align: left;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  width: 100%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0%;
  background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  background: var(--glass-bg);
  border-color: var(--primary-color);
  box-shadow: 0 12px 35px var(--shadow-color);
}

.feature-card:hover::before {
  height: 100%;
}

.feature-icon {
  font-size: 2.4rem;
  margin-bottom: 1.25rem;
  color: var(--primary-color);
  filter: drop-shadow(0 0 10px rgba(74, 144, 226, 0.3));
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Form Styles */
.form-container {
  max-width: 440px;
  width: 100%;
  margin: 3.5rem auto;
  padding: 2.5rem;
  box-shadow: 0 15px 35px var(--shadow-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: var(--form-input-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-primary);
  transition: var(--transition);
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  background: var(--glass-bg);
  box-shadow: 0 0 15px rgba(74, 144, 226, 0.25);
}

/* Footer */
footer {
  text-align: center;
  padding: 2.5rem 5%;
  border-top: 1px solid var(--glass-border);
  margin-top: 4rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  width: 100%;
  background: var(--footer-bg);
}

/* Dashboard Layout */
.dashboard-layout {
  display: flex;
  gap: 2rem;
  width: 100%;
}

.sidebar {
  width: 260px;
  flex-shrink: 0;
  min-height: 70vh;
  padding: 1.5rem;
}

.sidebar-menu {
  list-style: none;
}

.sidebar-menu li {
  margin-bottom: 0.5rem;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 10px;
  transition: var(--transition);
  font-weight: 500;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
  background: #059669;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.dashboard-content {
  flex: 1;
  min-width: 0;
}

/* Table Responsive Wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--border-radius);
}

/* Custom Scrollbar for tables */
.table-responsive::-webkit-scrollbar {
  height: 6px;
}
.table-responsive::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}
.table-responsive::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

/* Sidebar Toggle Button for Mobile/Tablet */
.sidebar-toggle {
  display: none;
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: var(--form-input-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  outline: none;
  user-select: none;
}

.sidebar-toggle:hover, .sidebar-toggle:active {
  background: rgba(74, 144, 226, 0.15);
  border-color: var(--primary-color);
}

.sidebar-toggle .toggle-icon {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-toggle.active .toggle-icon {
  transform: rotate(180deg);
}

/* ==================================================
   RESPONSIVE MEDIA QUERIES
   ================================================== */

/* Desktop Screens */
@media (min-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Medium Tablets & Laptops */
@media (max-width: 1199px) and (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile & Tablet Toggle (< 992px) */
@media (max-width: 991px) {
  .dashboard-layout {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    min-height: auto;
  }

  .sidebar-toggle {
    display: flex;
  }

  .sidebar-title {
    display: none;
  }
  
  .sidebar-menu {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
    width: 100%;
  }

  .sidebar-menu.active {
    display: flex;
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .sidebar-menu li {
    margin-bottom: 0;
    width: 100%;
  }

  .sidebar-menu a {
    width: 100%;
  }
}

/* Mobile Devices & Small Tablets (< 768px) */
@media (max-width: 767px) {
  header {
    padding: 0.9rem 4%;
  }

  .nav-toggle {
    display: block;
  }

  header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--nav-mobile-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.25rem 5%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    z-index: 999;
  }

  header nav.active {
    display: block;
    animation: slideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }

  header nav ul {
    flex-direction: column;
    gap: 0.85rem;
    align-items: stretch;
    text-align: center;
  }

  nav ul li {
    width: 100%;
  }

  nav ul li a {
    display: block;
    padding: 0.85rem 1rem;
    width: 100%;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1rem;
  }

  nav ul li a:hover, nav ul li a:active {
    background: rgba(74, 144, 226, 0.15);
    border-color: var(--primary-color);
  }

  nav ul li a.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 0.4rem;
    padding: 0.8rem 1rem;
  }

  main {
    padding: 1.5rem 4%;
  }

  /* Hero Section Stacking for Mobile */
  .hero {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    min-height: auto;
    gap: 2.25rem;
    padding: 1.25rem 0;
  }

  .hero-text {
    width: 100%;
  }

  .hero-text h1 {
    font-size: clamp(2rem, 7vw, 2.7rem);
    margin-bottom: 1rem;
  }

  .hero-text p {
    font-size: 1rem;
    margin-bottom: 1.75rem;
  }

  .hero-text .btn {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    font-size: 1.05rem;
    padding: 0.85rem 1.8rem;
  }

  .hero-image {
    width: 100%;
    max-width: 100%;
    padding: 2rem 1.25rem !important;
    border-radius: 20px;
  }

  .hero-image i {
    font-size: 5rem !important;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2.5rem;
  }

  .feature-card {
    padding: 1.6rem;
    border-radius: 16px;
  }

  .form-container {
    padding: 1.75rem 1.25rem;
    margin: 1.75rem auto;
    border-radius: 20px;
  }

  .sidebar-menu li {
    flex: 1 1 100%;
  }
}

/* Extra Small Mobile Devices (< 480px) */
@media (max-width: 479px) {
  .logo {
    font-size: 1.35rem;
  }

  .hero-text h1 {
    font-size: 1.85rem;
  }

  .hero-text p {
    font-size: 0.92rem;
  }

  .btn {
    padding: 0.7rem 1.3rem;
    font-size: 0.92rem;
  }

  .feature-card h3 {
    font-size: 1.15rem;
  }

  .feature-icon {
    font-size: 2.1rem;
    margin-bottom: 1rem;
  }
}

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

/* Notification Component Responsive & Readability Enhancements */
.notif-panel {
  display: none;
  position: absolute;
  right: 0;
  top: 48px;
  width: 350px;
  max-width: calc(100vw - 20px);
  max-height: 480px;
  z-index: 10000;
  padding: 1rem;
  border-radius: 16px;
  background: var(--nav-mobile-bg, rgba(18, 18, 18, 0.98));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--glass-border);
  overflow-y: auto;
}

[data-theme="light"] .notif-panel {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.notif-item {
  padding: 0.8rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  border: 1px solid transparent;
}

.notif-item.unread {
  background: rgba(74, 144, 226, 0.12);
  border-left: 3px solid var(--primary-color);
}

.notif-item.read {
  background: rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .notif-item.read {
  background: rgba(0, 0, 0, 0.03);
}

.notif-item:hover {
  background: rgba(74, 144, 226, 0.18);
}

.notif-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.notif-message {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0.25rem 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.notif-time {
  font-size: 0.72rem;
  color: var(--text-secondary);
  opacity: 0.85;
  margin-top: 0.2rem;
}

@media (max-width: 575px) {
  .notif-panel {
    position: fixed !important;
    top: 60px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: calc(100vw - 24px) !important;
    max-height: 80vh !important;
    z-index: 999999 !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8) !important;
  }

  #notifToastContainer {
    bottom: 15px !important;
    right: 12px !important;
    left: 12px !important;
    max-width: calc(100vw - 24px) !important;
  }
}

@media (max-width: 360px) {
  .notif-panel {
    left: 8px !important;
    right: 8px !important;
    top: 56px !important;
    padding: 0.75rem !important;
    max-width: calc(100vw - 16px) !important;
  }
}

/* ==================================================
   MOBILE-ONLY BOTTOM NAVIGATION (STRICT IMPLEMENTATION)
   ================================================== */

/* Mobile Devices Only (< 768px) */
@media (max-width: 767px) {
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 60px !important;
    background: var(--darker-bg, #121826) !important;
    border-top: 1px solid var(--glass-border, rgba(255, 255, 255, 0.12)) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 999999 !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    align-items: center !important;
    justify-content: space-around !important;
    padding: 0 0.25rem !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.5) !important;
  }

  .mobile-nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 !important;
    height: 100% !important;
    color: var(--text-secondary, #94a3b8) !important;
    text-decoration: none !important;
    font-size: 0.68rem !important;
    font-weight: 500 !important;
    position: relative !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    z-index: 10 !important;
    cursor: pointer !important;
    transition: color 0.2s ease, transform 0.15s ease !important;
    padding: 0.25rem 0 !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .mobile-nav-item i {
    font-size: 1.15rem !important;
    margin-bottom: 0.25rem !important;
    transition: color 0.2s ease, transform 0.2s ease !important;
  }

  .mobile-nav-profile-img {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: inline-block !important;
    margin-bottom: 0.25rem !important;
    border: 1.5px solid var(--primary-color, #4a90e2) !important;
    transition: transform 0.2s ease, border-color 0.2s ease !important;
  }

  .mobile-nav-item.active .mobile-nav-profile-img {
    border-color: #10B981 !important;
    transform: scale(1.08) !important;
  }

  .mobile-nav-item.active {
    color: #10B981 !important;
    font-weight: 700 !important;
  }

  .mobile-nav-item.active i {
    color: #10B981 !important;
    transform: translateY(-1px) !important;
  }

  .mobile-nav-badge {
    position: absolute !important;
    top: 5px !important;
    right: calc(50% - 15px) !important;
    background: #ff4757 !important;
    color: #ffffff !important;
    font-size: 0.62rem !important;
    font-weight: 700 !important;
    min-width: 16px !important;
    height: 16px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 4px !important;
    line-height: 1 !important;
    box-shadow: 0 2px 6px rgba(255, 71, 87, 0.4) !important;
    border: 1px solid rgba(0, 0, 0, 0.3) !important;
  }
}

/* Tablet, Laptop, and Desktop Devices (>= 768px) - MUST BE HIDDEN */
@media (min-width: 768px) {
  .mobile-bottom-nav {
    display: none !important;
  }
}



