/* ===== GLOBAL SCROLL FIX ===== */
@tailwind base;
@tailwind components;
@tailwind utilities;

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background-color: #0b1220; /* Ensure background matches app */
}

/* ===== APP ROOT ===== */
#root {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.app-container {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* ===== HEADER FIX ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #1e293b; /* Match existing header color */
}

/* ===== BOTTOM NAV FIX ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

/* ===== MAIN CONTENT SCROLL ===== */
.main-content {
  flex: 1;
  width: 100%;
  /* Removed overflow-y: auto from here to let body scroll */
}

/* ===== PACKAGE LIST FIX ===== */
.package-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

/* ===== PACKAGE CARD ===== */
.package-card {
  width: 100%;
  min-height: 120px;
}

/* ===== LAN PACKAGES SECTION ===== */
.lan-packages {
  width: 100%;
}

.add-btn {
  /* Inherit tailwind styles via @apply or class composition in component */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.scrollbar-hide {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
