* {
  border: 0;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: "Inter", serif;
}

html {
  font-size: 14px; /* Base font size - scaled down from 16px */
  -webkit-text-size-adjust: 100%;
}
.password-required .card {
  background: #ffffff;
  border-radius: 20px;
  padding: 45px 40px !important;
  transition: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
  min-height: auto;
  margin-left: auto;
  margin-right: auto;
  box-shadow: unset;
}
.password-required .card-body.p-4 {
  padding: 0 !important;
}
.password-required .card:hover {
  box-shadow: unset;
}
.password-required main.content {
  background: #e7e7e7;
  background: #fafafa;
  background: linear-gradient(90deg, rgba(250, 250, 250, 1) 0%, rgb(244 255 248) 54%, rgba(250, 250, 250, 1) 100%);
  height: 100vh;
}
.password-required .form-control {
  padding: 16px 18px;
  font-size: 1rem;
  font-weight: 400;
  color: #212529;
  border: 2px solid #ddd;
  border-radius: 8px;
  border-left: none;
  transition: all 0.3s ease;
  background-color: #ffffff;
  height: auto;
}
.password-required span.input-group-text {
  background-color: #f8f9fa;
  border: 2px solid #ddd;
  border-right: none;
  color: #008362;
  padding: 16px 18px;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}
.password-required button#togglePasswordBtn {
  border: 2px solid #ddd;
  border-left: none;
  color: #6c757d;
  padding: 16px 18px;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}
.password-required label.form-label {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.password-required button#submitPasswordBtn {
  background: linear-gradient(135deg, #008362 0%, #007f60 100%);
  color: #ffffff;
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0.3px;
  min-height: 56px;
}
.password-required button#togglePasswordBtn:hover {
  background-color: #f8f9fa;
  border-color: #41d8b3;
  color: #008362;
}
/* Responsive base font size scaling */
@media (min-width: 1920px) {
  html {
    font-size: 14px; /* Optimal for 1920px screens */
  }
}

@media (min-width: 1600px) and (max-width: 1919px) {
  html {
    font-size: 13.5px;
  }
}

@media (min-width: 1200px) and (max-width: 1599px) {
  html {
    font-size: 13px;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  html {
    font-size: 13px; /* iPad */
  }
}

@media (max-width: 767px) {
  html {
    font-size: 14px; /* Mobile */
  }
}

body {
  font-size: 1rem; /* Uses html base size */
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
  overflow-y: auto;
}

html {
  overflow-x: hidden;
  overflow-y: auto;
}

/* QR Code Page Layout - Flexbox for proper footer positioning */
body.qr-code-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

/* body.qr-code-page #main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 0;
} */

body.qr-code-page .public-main-content {
  overflow-x: hidden;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

h1 {
  font-family: "Oswald", serif;
}

main.content {
  padding-top: 60px;
  padding-bottom: 60px;
  background: #f2f2f2;
  min-height: calc(100vh - 200px);
}

/* Remove padding for login page */
.peplink-login ~ *,
section.peplink-login ~ * {
  /* This will be handled by .peplink-login itself */
}

body:has(section.peplink-login) main.content {
  padding-top: 0;
  padding-bottom: 0;
  background: transparent;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
  width: 100%;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

a {
  text-decoration: none;
}

.wifi-header {
  background: #ffffff;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid #e9ecef;
  position: relative; /* Not sticky - header scrolls with page */
}

/* Remove sticky for QR code pages */
.public-header-minimal {
  position: relative; /* Not sticky - header scrolls with page */
  z-index: 1;
}

.wifi-header .logo {
  display: flex;
  align-items: center;
}

.wifi-header .logo img {
  height: 50px;
  width: auto;
  transition: transform 0.3s ease;
}

.wifi-header .logo img:hover {
  transform: scale(1.05);
}

.wifi-header nav.navbar {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.wifi-header .navbar-brand {
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
}

/* Navbar Toggler */
.navbar-toggler {
  border: none;
  padding: 8px 12px;
  background: transparent;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 5px;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.navbar-toggler-icon {
  width: 25px;
  height: 3px;
  background-color: #000;
  display: block;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.navbar-toggler-icon:nth-child(2) {
  width: 20px;
}

.navbar-toggler-icon:nth-child(3) {
  width: 15px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
  width: 25px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:nth-child(2) {
  opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
  width: 25px;
}

/* Navigation Menu */
.top-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
  flex-wrap: wrap;
}

.top-menu .nav-item {
  position: relative;
}

.top-menu .nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  color: #000000;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border-radius: 6px;
  min-width: 80px;
  gap: 6px;
  position: relative;
}

.top-menu .nav-link i {
  font-size: 20px;
  margin-bottom: 2px;
  transition: all 0.3s ease;
}

.top-menu .nav-link span {
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.top-menu .nav-link:hover {
  color: #41d8b3;
  background-color: rgba(65, 216, 179, 0.1);
}

.top-menu .nav-item.active .nav-link {
  color: #41d8b3;
  background-color: rgba(65, 216, 179, 0.15);
}

.top-menu .nav-item.active .nav-link i {
  color: #41d8b3;
  transform: scale(1.1);
}

/* Logout Button */
.top-menu .logout .logout-btn {
  background: #000000;
  color: #ffffff !important;
  padding: 10px 20px;
  border-radius: 6px;
  min-width: auto;
  margin-left: 8px;
}

.top-menu .logout .logout-btn i {
  color: #ffffff;
  font-size: 18px;
}

.top-menu .logout .logout-btn:hover {
  background: #41d8b3;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(65, 216, 179, 0.3);
}

.top-menu .logout .logout-btn:hover i {
  color: #ffffff;
}

/* Collapse Menu */
.navbar-collapse {
  flex-grow: 0;
}

@media (max-width: 991px) {
  .navbar-collapse {
    width: 100%;
    margin-top: 15px;
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
  }
  
  .top-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
  }
  
  .top-menu .nav-link {
    flex-direction: row;
    justify-content: flex-start;
    padding: 12px 16px;
    min-width: auto;
    text-align: left;
    border-radius: 8px;
  }
  
  .top-menu .nav-link i {
    margin-right: 12px;
    margin-bottom: 0;
    font-size: 18px;
    width: 20px;
    text-align: center;
  }
  
  .top-menu .nav-link span {
    font-size: 14px;
  }
  
  .top-menu .nav-item.active .nav-link {
    background-color: rgba(65, 216, 179, 0.15);
    border-left: 3px solid #41d8b3;
  }
  
  .top-menu .logout {
    margin-left: 0;
    margin-top: 8px;
  }
  
  .top-menu .logout .logout-btn {
    width: 100%;
    justify-content: center;
    margin-left: 0;
    padding: 12px 20px;
  }
}




.page-header h1 {
  font-size: 42px;
  text-transform: uppercase;
  line-height: 1.2;
  color: #000;
  margin-bottom: 30px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Dashboard Welcome Card */
.dashboard-welcome-card {
  background: linear-gradient(135deg, #008362 0%, #007f60 100%);
  border-radius: 12px;
  padding: 50px 40px;
  text-align: center;
  box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.1);
  margin-top: 20px;
}

.welcome-title {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.welcome-description {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 35px;
  line-height: 1.6;
}

.support-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.support-btn {
  background: #ffffff;
  color: #008362;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.support-btn i {
  font-size: 18px;
}

.support-btn:hover {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.support-btn-call:hover {
  background: rgba(255, 255, 255, 0.1);
}

.support-btn-sms:hover {
  background: rgba(255, 255, 255, 0.1);
}

.support-btn-email:hover {
  background: rgba(255, 255, 255, 0.1);
}

.production-network {
  width: 100%;
}

.production-network span {
  font-size: 16px;
  font-weight: 700;
  color: #007f60;
}

.wifi-card {
  background-color: #fff;
  color: #000000;
  border-radius: 8px;
  padding: 20px;
  width: 100%;
  height: 100%;
  box-shadow: 0px 10px 40px #8686865c;
  position: relative;
}

.wifi-card .network-col * {
  margin: 0;
  letter-spacing: .3px;
}

.wifi-card .network-name {
  color: #007f60;
  font-weight: bold;
  letter-spacing: 0px;
}

.wifi-card .network-col h5 {
  font-size: 22px;
}

.wifi-card .network-col .password {
  color: #007f60;
  margin-top: 15px;
}

.production-network .data-card {
  background-color: #ffffff;
  color: #000000;
  border-radius: 8px;
  padding: 40px;
  position: relative;
  box-shadow: 0px 10px 40px #8686865c;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: start;
  padding-bottom: 25px;
}

.production-network .progress {
  height: 40px;
  border-radius: 10px;
  margin-top: 90px;
}

.production-network .data-card .percentage {
  font-size: 2.5rem;
  color: #007f60;
  font-weight: 500;
}

.production-network .data-card h4 {
  font-weight: 600;
}

.production-network .data-card .progress-bar {
  background-color: #2AA78A;
}

.production-network .data-card .top-up-btn {
  background-color: #24a082;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 0.9rem;
}

.production-network .data-card .start-end {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  margin-bottom: 10px;
}

.production-network .start-end span {
  font-size: 14px;
  font-weight: 300;
  color: #007f60;
}

.production-network .acess-point img {
  width: 120px;
  height: 120px;
  position: absolute;
  top: 20px;
  right: 20px;
  object-fit: contain;
}

.production-network .acess-point h6 {
  color: #007f60;
  font-size: 18px;
}

.production-network .acess-point ul li {
  font-weight: 300;
  font-size: 15px;
}

.unit-setup-card {
  background-image: url(../images/bg-gradient-wave.svg);
  background-size: 300%;
  width: 100%;
  border-radius: 8px;
  padding: 20px;
  height: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  box-shadow: 0px 10px 40px #8686865c;
  color: #000;
}

.unit-setup-card h2 {
  font-weight: bold;
}

.unit-setup-card a {
  color: #007f60;
  text-decoration: underline;
}

.network-img {
  position: absolute;
  top: 50px;
  right: 30px;
  bottom: 0;
}

.network-img img {
  width: 100%;
  height: 200px;
  object-fit: contain;
}

.network-information table td img {
  height: 16px;
  margin-right: 5px;
  vertical-align: middle;
}

.network-information table th,
.network-information table td {
  padding: 10px 15px;
}

.network-information table th {
  font-size: 14px;
  letter-spacing: 1px;
  background: #41d8b3;
  color: #000000;
  text-transform: capitalize;
  border: none;
  border-right: 1px solid #ccc;
}

.network-information table th:last-child {
  border: none;
}

.network-information table td {
  font-size: 14px;
  background: #fff;
  color: #000;
  border-color: #ccc;
}

.network-information table {
  margin: 0;
  box-shadow: 0px 10px 40px #8686865c;
}

.network-information .unit-setup-card {
  text-align: center;
}

.network-information .unit-setup-card h2 {
  text-transform: capitalize;
}

.production-delivery .network-col {
  margin-bottom: 15px;
}

.production-delivery .date-name {
  color: #41d8b3;
}

.production-delivery .network-col .date {
  font-size: 18px;
}

.production-delivery .unit-setup-card {
  align-items: baseline;
  justify-content: space-between;
}

.production-delivery .unit-setup-card h2 {
  padding-bottom: 50px;
}

.production-delivery .unit-setup-card h4 {
  color: #0fd4a4;
  letter-spacing: 1px;
  font-size: 26px;
  line-height: 38px;
  text-transform: uppercase;
}

.network-information .btn-secondary {
  background: #41d8b3;
  text-transform: uppercase;
  color: #000;
  padding: 10px 20px;
  border-radius: 3px;
  font-size: 16px;
  border: 1px solid transparent;
  transition: 0.3s;
}

.network-information .btn-secondary:hover {
  border: 1px solid #41d8b3;
  background: #41d8b200;
  color: #41d8b3;
}

.network-information .modal-content table {
  box-shadow: none;
}

.network-information .modal-dialog {
  max-width: 1000px;
}
.network-information .modal-dialog .modal-body {
  overflow: auto;
}
.network-information .modal-dialog .table tbody td:first-child {
  min-width: max-content;
  max-width: max-content;
}
tbody#device-list .modal-body ul {
  column-count: 2;
}
tbody#device-list .modal-body ul li h6 {
  font-size: 18px;
}
.network-information .modal-dialog h3 {
  font-size: 22px;
  font-weight: 600;
  font-family: 'Oswald';
}

/* Login Page - White Background Design */
div#main {
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  padding: 0;
  overflow: hidden;
  position: relative;
  min-height: 100vh;
}

.peplink-login {
  min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
    overflow: hidden;
    background: #e7e7e7;
    background: #fafafa;
    background: linear-gradient(90deg, rgba(250, 250, 250, 1) 0%, rgb(244 255 248) 54%, rgba(250, 250, 250, 1) 100%);
}

.login-container {
  width: 100%;
  max-width: 500px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  background: #ffffff;
  border-radius: 20px;
  /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); */
  padding: 45px 40px;
  transition: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: auto;
}

.login-brand {
  text-align: center;
  display: block;
  margin-bottom: 25px;
}

.login-brand a {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.login-brand a:hover {
  transform: scale(1.05);
}

.login-logo {
  height: 65px;
  width: auto;
  object-fit: contain;
}

.login-header {
  text-align: center;
  margin-bottom: 35px;
}

.login-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 12px;
  font-family: inherit;
  letter-spacing: -0.5px;
}

.login-header p {
  font-size: 1rem;
  color: #6c757d;
  margin: 0;
  font-weight: 400;
}

/* Form Styling */
.peplink-login .form-group {
  margin-bottom: 24px;
  min-height: 90px;
  display: flex;
  flex-direction: column;
}

.peplink-login .form-label {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.peplink-login .form-label i {
  color: #008362;
  font-size: 1.1rem;
}

.peplink-login .form-label .text-danger {
  color: #dc3545;
  font-weight: 700;
  margin-left: 3px;
}

.peplink-login .input-group {
  position: relative;
}

.peplink-login .input-group-text {
  background-color: #f8f9fa;
  border: 2px solid #ddd;
  border-right: none;
  color: #008362;
  padding: 16px 18px;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.peplink-login .input-group:focus-within .input-group-text {
  background-color: #f0fdfa;
  border-color: #41d8b3;
  color: #008362;
}

.peplink-login .form-control {
  padding: 16px 18px;
  font-size: 1rem;
  font-weight: 400;
  color: #212529;
  border: 2px solid #ddd;
  border-radius: 8px;
  border-left: none;
  transition: all 0.3s ease;
  background-color: #ffffff;
  height: auto;
}

.peplink-login .input-group:focus-within .form-control {
  border-color: #41d8b3;
  box-shadow: 0 0 0 0.2rem rgba(65, 216, 179, 0.15);
  outline: none;
}

.peplink-login .form-control:focus {
  border-color: #41d8b3;
  box-shadow: 0 0 0 0.2rem rgba(65, 216, 179, 0.15);
  outline: none;
}

.peplink-login .form-control.is-valid {
  border-color: #41d8b3;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2341d8b3' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.peplink-login .form-control.is-invalid {
  border-color: #dc3545;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6 .4.4.4-.4m0 4.8-.4-.4-.4.4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.peplink-login .input-group .btn-outline-secondary {
  border: 2px solid #ddd;
  border-left: none;
  color: #6c757d;
  padding: 16px 18px;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.peplink-login .input-group:focus-within .btn-outline-secondary {
  border-color: #41d8b3;
  color: #008362;
}

.peplink-login .input-group .btn-outline-secondary:hover {
  background-color: #f8f9fa;
  border-color: #41d8b3;
  color: #008362;
}

.peplink-login .invalid-feedback {
  display: block;
  width: 100%;
  margin-top: 8px;
  font-size: 0.9rem;
  color: #dc3545;
  font-weight: 500;
  min-height: 22px;
  line-height: 1.4;
  visibility: visible;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.peplink-login .invalid-feedback:empty {
  visibility: hidden;
  opacity: 0;
  min-height: 22px;
  display: block;
}

.peplink-login .text-danger.small {
  font-size: 0.9rem;
  margin-top: 8px;
  display: block;
  font-weight: 500;
  min-height: 22px;
  line-height: 1.4;
  visibility: visible;
  opacity: 1;
}

.peplink-login .text-danger.small:empty {
  visibility: hidden;
  opacity: 0;
  min-height: 22px;
  display: block;
}

/* Button Styling */
.btn-login {
  background: linear-gradient(135deg, #008362 0%, #007f60 100%);
  border: none;
  color: #ffffff;
  padding: 18px 32px;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  /* box-shadow: 0 6px 20px rgba(0, 131, 98, 0.4); */
  min-height: 56px;
}

.btn-login i {
  font-size: 1.2rem;
}

.btn-login:hover {
  background: linear-gradient(135deg, #007f60 0%, #006b50 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 131, 98, 0.4);
  color: #ffffff;
}

.btn-login:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 131, 98, 0.3);
}

.btn-login:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-login .spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.15em;
}

/* Alert Styling */
.peplink-login .alert {
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 0;
  font-size: 0.95rem;
  border-left: 4px solid;
  line-height: 1.5;
  min-height: 56px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.peplink-login .alert-danger {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
  color: #721c24;
  border-left-color: #dc3545;
}

.peplink-login .alert i {
  margin-right: 10px;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Alert Container - Reserve space to prevent layout shift */
/* .peplink-login .alert-container {
  min-height: 80px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: min-height 0.2s ease;
} */

.peplink-login .alert-container:empty {
  min-height: 0;
  margin-bottom: 0;
}

/* When alerts are hidden, still reserve space */
.peplink-login .alert-container .alert.d-none {
  display: none !important;
  min-height: 0;
  margin-bottom: 0;
  padding: 0;
}

/* Ensure consistent input group height */
.peplink-login .input-group {
  position: relative;
  min-height: 56px;
  display: flex;
  align-items: stretch;
}
table.bsn-users tbody td:first-child {
  min-width: max-content;
  max-width: max-content;
}
.form-control, select {
  font-size: 16px !important;
  padding: 8px 16px !important;
}
/* Responsive Design */
@media (min-width: 1920px) {
  .login-container {
    max-width: 550px;
  }

  .login-card {
    padding: 50px 45px;
  }

  .login-logo {
    height: 70px;
  }

  .login-header h2 {
    font-size: 2.2rem;
  }

  .login-header p {
    font-size: 1.1rem;
  }

  .peplink-login .form-label {
    font-size: 1.1rem;
  }

  .peplink-login .form-control {
    font-size: 1.1rem;
    padding: 18px 20px;
  }

  .btn-login {
    font-size: 1.15rem;
    padding: 20px 36px;
  }
}

@media (min-width: 1200px) and (max-width: 1919px) {
  .login-container {
    max-width: 500px;
  }

  .login-card {
    padding: 45px 40px;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .login-container {
    max-width: 480px;
  }

  .login-card {
    padding: 40px 35px;
  }

  .login-logo {
    height: 60px;
  }

  .login-header h2 {
    font-size: 1.85rem;
  }
}

@media (max-width: 767px) {
  .peplink-login {
    padding: 20px;
    min-height: 100vh;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .login-container {
    max-width: 100%;
  }

  .login-card {
    padding: 35px 30px;
    border-radius: 16px;
  }

  .login-logo {
    height: 55px;
  }

  .login-header h2 {
    font-size: 1.75rem;
  }

  .login-header p {
    font-size: 0.95rem;
  }

  .login-header {
    margin-bottom: 30px;
  }

  .login-brand {
    margin-bottom: 25px;
  }

  .peplink-login .form-group {
    margin-bottom: 22px;
    min-height: 85px;
  }

  .peplink-login .form-label {
    font-size: 0.95rem;
    margin-bottom: 10px;
  }

  .peplink-login .form-control {
    padding: 14px 16px;
    font-size: 0.95rem;
  }

  .peplink-login .input-group-text {
    padding: 14px 16px;
    font-size: 1rem;
  }

  .peplink-login .input-group {
    min-height: 52px;
  }

  .peplink-login .input-group .btn-outline-secondary {
    padding: 14px 16px;
    font-size: 1rem;
  }

  /* .peplink-login .alert-container {
    min-height: 70px;
    margin-bottom: 22px;
  } */

  .peplink-login .invalid-feedback,
  .peplink-login .text-danger.small {
    min-height: 20px;
    font-size: 0.85rem;
  }

  .btn-login {
    padding: 16px 28px;
    font-size: 1rem;
    min-height: 52px;
  }

  .btn-login i {
    font-size: 1.1rem;
  }

  tbody#device-list .modal-body ul {
    column-count: 1;
  }
  .production-network .device-usage {
    margin-bottom: 0 !important;
  }
  .password-required .card {
    padding: 30px 25px !important;
    border-radius: 14px !important;
}
.password-required span.input-group-text {
  padding: 12px 14px;
}
}

@media (max-width: 480px) {
  .peplink-login {
    padding: 15px;
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .login-card {
    padding: 30px 25px;
    border-radius: 14px;
  }

  .login-logo {
    height: 50px;
  }

  .login-header h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  .login-header p {
    font-size: 0.9rem;
  }

  .login-header {
    margin-bottom: 25px;
  }

  .login-brand {
    margin-bottom: 20px;
  }

  .peplink-login .form-group {
    margin-bottom: 20px;
    min-height: 80px;
  }

  .peplink-login .form-label {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }

  .peplink-login .form-control {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  .peplink-login .input-group-text {
    padding: 12px 14px;
    font-size: 0.95rem;
  }

  .peplink-login .input-group {
    min-height: 48px;
  }

  .peplink-login .input-group .btn-outline-secondary {
    padding: 12px 14px;
    font-size: 0.95rem;
  }

  /* .peplink-login .alert-container {
    min-height: 65px;
    margin-bottom: 20px;
  } */

  .peplink-login .invalid-feedback,
  .peplink-login .text-danger.small {
    min-height: 18px;
    font-size: 0.8rem;
  }

  .btn-login {
    padding: 14px 24px;
    font-size: 0.95rem;
    min-height: 48px;
  }

  .btn-login i {
    font-size: 1rem;
  }
}

@media (max-width: 360px) {
  .login-card {
    padding: 25px 20px;
  }

  .login-header h2 {
    font-size: 1.35rem;
  }

  .peplink-login .form-control {
    padding: 10px 12px;
    font-size: 0.875rem;
  }

  .peplink-login .input-group-text {
    padding: 10px 12px;
  }

  .peplink-login .input-group .btn-outline-secondary {
    padding: 10px 12px;
  }
}

/* Footer CTA Section (Green Bar) */
.footer-cta {
  background: #008362;
  padding: 50px 0;
  color: #fff;
  text-align: center;
  position: relative;
}

.footer-cta h2 {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-cta p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.95;
}

.footer-cta .group-cta {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.footer-cta .cta-button {
  background: #ffffff;
  text-transform: uppercase;
  color: #008362;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.footer-cta .cta-button i {
  font-size: 16px;
}

.footer-cta .cta-button:hover {
  background: transparent;
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Footer Main Section */
.footer-main {
  background: #ffffff;
  padding: 50px 0 0;
  position: relative;
}

.footer-main .container {
  padding-bottom: 30px;
}

.footer-logo {
  text-align: center;
  margin-bottom: 40px;
}

.footer-logo .navbar-brand {
  display: inline-block;
  padding: 0;
  margin: 0;
}

.footer-logo img {
  height: 50px;
  width: auto;
  transition: transform 0.3s ease;
}

.footer-logo img:hover {
  transform: scale(1.05);
}

.footer-copyright {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: #666;
}

.copyright-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.copyright-menu a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 14px;
}

.copyright-menu a:hover {
  color: #41d8b3;
}

.copyright-text {
  color: #666;
  font-size: 14px;
}

.copyright-text a {
  color: #008362;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.copyright-text a:hover {
  color: #41d8b3;
}

/* Footer Bottom Line */
.footer-bottom-line {
  height: 3px;
  background: #87CEEB;
  width: 100%;
  margin-top: 30px;
}

/* Removed duplicate .top-menu styles - now using improved version above */

.client-connection {
  height: 100%;
  max-height: 200px;
  overflow-y: auto;
}

/* ===== Scrollbar CSS ===== */

/* Chrome, Edge, and Safari */
.client-connection::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.client-connection::-webkit-scrollbar-track {
  background: #ffffff;
}

.client-connection::-webkit-scrollbar-thumb {
  background-color: #4CB49B;
  border-radius: 0px;
  border: 3px solid #ffffff;
}

span.circle-online {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 500px;
  background: rgb(25 135 84);
  margin-right: 3px;

}

span.circle-danger {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 500px;
  background: #dc3545;
  margin-right: 3px;
}

span.circle-warning {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 500px;
  background: #ffc107;
  margin-right: 3px;
}

/* Group View Form Styling - Matching User Forms */
.group-view {
  padding: 20px 0;
}

.group-view .card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.group-view .card-header.user-form-header {
  background: linear-gradient(135deg, #008362 0%, #007f60 100%);
  color: #ffffff;
  border-radius: 12px 12px 0 0;
  padding: 20px 30px;
  border-bottom: none;
}

.group-view .card-header.user-form-header h4 {
  color: #ffffff;
  font-weight: 600;
  margin: 0;
}

.group-view form {
  margin: 0;
  background: transparent;
  padding: 0;
}

.group-view form input[type="text"],
.group-view form input[type="date"],
.group-view form input[type="number"],
.group-view form select {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  transition: all 0.3s ease;
}

.group-view form input[type="text"]:focus,
.group-view form input[type="date"]:focus,
.group-view form input[type="number"]:focus,
.group-view form select:focus {
  border-color: #41d8b3;
  box-shadow: 0 0 0 0.2rem rgba(65, 216, 179, 0.25);
  outline: none;
}

.group-view form .form-label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.group-view form .form-check-input[type=radio] {
  padding: 8px;
  accent-color: #008362;
  cursor: pointer;
  margin-right: 8px;
}

.group-view form .form-check-label {
  cursor: pointer;
  font-weight: 500;
  color: #555;
}

.group-view form .form-check {
  margin-bottom: 8px;
}

.group-view form .card {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.group-view form .card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #41d8b3;
}

.group-view form span.device-index,
.group-view form .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #008362 0%, #007f60 100%);
  color: #fff;
  text-align: center;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  padding: 0 8px;
}

.group-view .alert {
  border-radius: 8px;
  border: none;
  padding: 15px 20px;
  margin-bottom: 20px;
}

.group-view .alert i {
  margin-right: 8px;
}

.group-view .input-group-text {
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-right: none;
  color: #6c757d;
}

.group-view .input-group .form-control {
  border-left: none;
}

.group-view .input-group:focus-within .input-group-text {
  border-color: #41d8b3;
  background: #f0fdfa;
  color: #008362;
}

.group-view .input-group:focus-within .form-control {
  border-color: #41d8b3;
}

/* devices css  */

.record-display {
  position: relative;
  height: 300px;
  /* Adjust the height for each record */
  overflow: hidden;
}

.record {
  display: none;
  /* Hide all records by default */
}

.record.active {
  display: block;
  /* Only show the active record */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: #7f7f7f !important;
}

.sr-only {
  display: none;
}


.data-card {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
}

.carousel-indicators li {
  list-style: none;

}

.carousel-indicators [data-bs-target] {
  background-color: rgba(0, 127, 96, 0.5);

}

#wificardCarousel .data-card img {
  width: 70px;
  margin-bottom: 30px;
  margin-top: 30px;
}



#wificardCarousel .wifi-info {

  margin-bottom: 20px;
}

.wificardNodata .data-card img {
  width: 100px;
  margin-bottom: 30px;
  margin-top: 30px;
}

.wificardNodata .wifi-info {

  margin-bottom: 20px;
}



.carousel-indicators .active {
  background-color: #007f60;
  /* Active color */
}

div#cardCarousel {
  height: 100%;
}

div#cardCarousel .carousel-inner {
  height: 100%;
}

div#cardCarousel .carousel-inner .carousel-item {
  height: 100%;
}

div#wificardCarousel {
  height: 100%;
}

div#wificardCarousel .carousel-inner {
  height: 100%;
}

div#wificardCarousel .carousel-inner .carousel-item {
  height: 100%;
}

.production-network .data-card span.percentage {
  display: block;
  text-align: left;
  font-weight: bold;
  margin-top: 20px;
}

.production-network .data-card .text-end p {
  font-weight: 600;
  margin-top: 0 !important;
}

.device-loader {
  display: none;
}

.client-loader {
  display: none;
}

.network-information table tr td img.download-icon {
  filter: brightness(0) saturate(100%) invert(68%) sepia(56%) saturate(422%) hue-rotate(115deg) brightness(93%) contrast(97%);
}

.network-information table tr td img.upload-icon {
  filter: brightness(0) saturate(100%) invert(28%) sepia(90%) saturate(4005%) hue-rotate(209deg) brightness(91%) contrast(105%);
}

/* DataTables Wrapper Styling */
div#bsn-datatable_wrapper {
  margin-top: 20px;
}

div#bsn-datatable_wrapper .row {
  margin-bottom: 20px;
  align-items: center;
}

/* DataTables Length Menu */
div#bsn-datatable_wrapper .dataTables_length {
  margin-bottom: 0;
}

div#bsn-datatable_wrapper .dataTables_length label {
  font-weight: 500;
  color: #495057;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

div#bsn-datatable_wrapper .dataTables_length select {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 14px;
  color: #495057;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 8px;
  min-width: 60px;
}

div#bsn-datatable_wrapper .dataTables_length select:focus {
  border-color: #41d8b3;
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(65, 216, 179, 0.25);
}

/* DataTables Search */
div#bsn-datatable_wrapper .dataTables_filter {
  text-align: right;
  margin-bottom: 0;
}

div#bsn-datatable_wrapper .dataTables_filter label {
  font-weight: 500;
  color: #495057;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

div#bsn-datatable_wrapper .dataTables_filter input {
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 14px;
  width: 250px;
  transition: all 0.3s ease;
  margin-left: 8px;
}

div#bsn-datatable_wrapper .dataTables_filter input:focus {
  border-color: #41d8b3;
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(65, 216, 179, 0.25);
}

/* DataTables Info */
div#bsn-datatable_wrapper .dataTables_info {
  padding-top: 12px;
  color: #6c757d;
  font-size: 14px;
}

/* DataTables Pagination */
div#bsn-datatable_wrapper .dataTables_paginate {
  padding-top: 12px;
  text-align: right;
}

div#bsn-datatable_wrapper ul.pagination {
  margin: 0;
  justify-content: flex-end;
}

div#bsn-datatable_wrapper ul.pagination li.paginate_button {
  margin: 0 4px;
}

div#bsn-datatable_wrapper ul.pagination li.paginate_button a {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 8px 14px;
  color: #495057;
  background-color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  min-width: 38px;
  text-align: center;
  display: inline-block;
}

div#bsn-datatable_wrapper ul.pagination li.paginate_button a:hover {
  background: linear-gradient(135deg, #41d8b3 0%, #008362 100%);
  color: #ffffff;
  border-color: #41d8b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(65, 216, 179, 0.3);
}

div#bsn-datatable_wrapper ul.pagination li.paginate_button.active a {
  background: linear-gradient(135deg, #008362 0%, #007f60 100%);
  color: #ffffff;
  border-color: #008362;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 131, 98, 0.3);
}

div#bsn-datatable_wrapper ul.pagination li.paginate_button.previous a,
div#bsn-datatable_wrapper ul.pagination li.paginate_button.next a {
  background-color: #ffffff;
  font-weight: 600;
}

div#bsn-datatable_wrapper ul.pagination li.paginate_button.previous a:hover,
div#bsn-datatable_wrapper ul.pagination li.paginate_button.next a:hover {
  background: linear-gradient(135deg, #41d8b3 0%, #008362 100%);
  color: #ffffff;
  border-color: #41d8b3;
}

div#bsn-datatable_wrapper ul.pagination li.paginate_button.disabled a {
  background-color: #f8f9fa;
  color: #adb5bd;
  border-color: #e9ecef;
  cursor: not-allowed;
  opacity: 0.6;
}

div#bsn-datatable_wrapper ul.pagination li.paginate_button.disabled a:hover {
  background-color: #f8f9fa;
  color: #adb5bd;
  border-color: #e9ecef;
  transform: none;
  box-shadow: none;
}
.production-network .wificardNodata {
  height: 100%;
}

.production-network .wificardNodata .data-card {
  justify-content: center;
}

.wifi-network ul {
  background-color: #e9ecef;
  padding: 15px;
  list-style: none;
  border-radius: 8px;
  overflow: auto;
  max-height: 201px;
  margin-bottom: 0;
}
.wifi-network ul li {
  text-align: left;
  border-bottom: 1px solid #bfbfbf;
}
.wifi-network h5 {
  text-align: left;
}
.wifi-network ul li span.text-secondary {
  color: #000000 !important;
  font-weight: 400;
  font-size: 14px;
  width: 100%;
  display: inline-block;
}
.wifi-network ul li i.bi-wifi {
  position: unset;
  font-size: 18px;
  margin-right: 5px;
}
.wifi-network ul li.no-wifinetwork {
  border: unset;
  font-size: 14px;
  color: #000000 !important;
}
.wifi-network ul li span {
  font-size: 14px;
}
.wifi-network ul li:last-child {
  margin-bottom: 0 !important;
}
.device-network h2 {
  text-align: center;
}
.wifi-network ul::-webkit-scrollbar {
width: 12px;
height: 12px;
}
.wifi-network ul::-webkit-scrollbar-track {
background: #ffffff;
}
.wifi-network ul::-webkit-scrollbar-thumb {
background-color: #4CB49B;
border-radius: 0px;
border: 3px solid #ffffff;
}

.device-usage .carousel-control-next, .device-usage .carousel-control-prev {
  width:4%;
}
.wifi-network ul li {
   position: relative;
}
.wifi-network ul li i {
    position: absolute;
    right: 0;
    cursor: pointer;
    bottom: 15px;
}
.wifi-network ul li span {
   font-weight: 400;
}


/*Signal Bars   */
    /* Bars container styling */
    #bars {
      position: relative;
      margin-top: 0;
      width: 25px;
      height: 5px;
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      flex-direction: row;
      column-gap: 3px;
      margin-left: 10px;
    }

    /* Individual bar styling */
    .bar {
      width: 10px;
      background-color: black;
      transition: height 0.3s ease-in-out;
    }

    /* Use CSS Variables to dynamically adjust the heights */
    /* The height values are controlled by --signal-strength */
    .bar:nth-child(1) {
      height: var(--signal-strength, 10px);
    }
    .bar:nth-child(2) {
      height: var(--signal-strength, 15px);
    }
    .bar:nth-child(3) {
      height: var(--signal-strength, 20px);
    }
    .bar:nth-child(4) {
      height: var(--signal-strength, 25px);
    }
    .bar:nth-child(5) {
      height: var(--signal-strength, 30px);
    }
    .cellular-span {
      display: flex;
      align-items: center;
      margin-bottom: 15px;
  }
  .modal-body ul li h6 {
    margin-top: 10px;
    font-weight: 600;
  }
  .modal-body ul li {
    list-style: none;
}

.modal-body ul {
  padding-left: 0;
}

/* Footer Responsive - Medium Screens */
@media (max-width: 991px) and (min-width: 768px) {
  .footer-cta h2 {
    font-size: 32px;
  }

  .footer-cta p {
    font-size: 17px;
  }

  .footer-cta .group-cta {
    gap: 12px;
  }

  .footer-copyright {
    gap: 15px;
  }
}

/* Responsive-media-device */
@media (max-width: 991px) {

  .production-network .row>*,
  .network-information .row>*,
  .production-delivery .row>* {
    width: 100%;
    margin-bottom: 20px;
  }

  .page-header h1 {
    font-size: 36px;
    line-height: 1.2;
  }

  .dashboard-welcome-card {
    padding: 40px 30px;
  }

  .welcome-title {
    font-size: 28px;
  }

  .welcome-description {
    font-size: 17px;
  }

  .production-network span {
    font-size: 16px;
  }

  .client-connection {
    overflow-x: auto;
  }

  .footer-cta {
    padding: 40px 0;
  }

  .footer-cta h2 {
    font-size: 28px;
    margin-bottom: 10px;
  }

  .footer-cta p {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .footer-cta .group-cta {
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
  }

  .footer-cta .cta-button {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
    font-size: 14px;
  }

  .navbar-toggler {
    display: flex;
  }
  
  .wifi-header nav.navbar {
    flex-wrap: wrap;
  }

  .group-view .col-6 {
    width: 100%;
  }

  .group-view .col-5 {
    width: 80%;
  }

  .group-view .col-1 {
    width: 20%;
  }


}

@media (max-width: 767px) {
  .page-header h1 {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 20px;
  }

  .dashboard-welcome-card {
    padding: 35px 25px;
    margin-top: 15px;
  }

  .welcome-title {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .welcome-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .support-buttons {
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
  }

  .support-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
    font-size: 15px;
  }

  .production-network .data-card h4 {
    font-weight: 600;
    font-size: 18px;
  }

  .production-network .data-card p {
    font-size: 14px;
  }

  .production-network .data-card .start-end {
    flex-wrap: wrap;
  }

  .production-network .data-card .percentage {
    font-size: 2rem;
  }

  .production-network .acess-point img {
    width: 90px;
    height: 90px;
    position: absolute;
    top: 10px;
    right: 10px;
  }

  .production-network .acess-point h6 {
    color: #007f60;
    font-size: 16px;
  }

  .network-img img {
    width: 100%;
    height: 90px;
    object-fit: contain;
  }

  .production-delivery .unit-setup-card h4 {
    font-size: 20px;
    line-height: 28px;
  }

  .production-delivery .container.mt-5,
  .network-information .container.mt-5 {
    margin-top: 0 !important;
  }

  main.content {
    padding-top: 40px;
    padding-bottom: 40px;
    background: #f2f2f2;
    padding-left: 0;
    padding-right: 0;
  }

  .footer-cta {
    padding: 35px 0;
  }

  .footer-cta h2 {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .footer-cta p {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .footer-cta .group-cta {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }

  .footer-cta .cta-button {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 13px;
  }

  .footer-main {
    padding: 40px 0 0;
  }

  .footer-logo {
    margin-bottom: 30px;
  }

  .footer-logo img {
    height: 45px;
  }

  .footer-copyright {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    align-items: center;
  }

  .copyright-menu {
    flex-direction: column;
    gap: 12px;
  }

  .footer-bottom-line {
    margin-top: 20px;
  }

  .wifi-header {
    padding: 12px 0;
  }

  .wifi-header .logo img {
    height: 45px;
  }

  .navbar-toggler {
    display: flex;
  }

  .wifi-header nav.navbar {
    padding: 0;
  }

  table#bsn-datatable tr td ul {
    width: 100%;
    margin-top: 6px;
  }

  div.dataTables_wrapper div.dataTables_paginate ul.pagination .page-item a {
    padding: 2px 7px;
    font-size: 14px;
  }

  .production-network .data-card div {
    flex-wrap: wrap;
    text-align: start !important;
  }

  .production-network .data-card div h5 {
    font-size: 16px !important;
  }

  .wificardNodata .data-card .wifi-info {
    text-align: center !important;
    margin-bottom: 0;
  }

  .wificardNodata .data-card img {
    width: 60px;
    margin-bottom: 20px;
    margin-top: 20px;
  }

  .unit-setup-card {
    background: unset;
    background-color: transparent !important;
    box-shadow: none;
    padding: 0;
    min-height: fit-content;
    margin-top: 10px;
  }

  .production-network .data-card {
    padding: 20px;
  }

  .client-connection table {
    text-wrap: nowrap;
  }

  .group-view form .form-group .row .col-3:first-child {
    width: 100%;
  }

  .group-view form .form-group .row .form-check-inline {
    display: flex;
    flex-direction: row-reverse;
    padding: 0;
    margin-left: 25px;
    align-items: center;
    gap: 3px;
  }

  .group-view form .form-group .row .form-check-inline input {
    float: unset !important;
    margin-left: 0 !important;
  }

  .group-view form .col-5 {
    width: 100%;
  }

  .group-view .form-group.view-btn {
    margin-top: 0;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .production-network .acess-point img {
    width: 70px;
    height: 70px;
    position: absolute;
    top: 10px;
    right: 10px;
  }

  .group-view .col-5 {
    width: 70%;
  }

  .group-view .col-1 {
    width: 30%;
  }

  .group-view h3.text-center {
    text-transform: uppercase;
    margin-bottom: 20px;
    font-size: 24px;
  }

  .page-header h1 {
    font-size: 24px;
  }

  .dashboard-welcome-card {
    padding: 30px 20px;
  }

  .welcome-title {
    font-size: 20px;
  }

  .welcome-description {
    font-size: 14px;
  }

  .support-btn {
    font-size: 14px;
    padding: 10px 20px;
  }

  .wifi-header {
    padding: 10px 0;
  }

  .wifi-header .logo img {
    height: 40px;
  }

  .top-menu .nav-link {
    padding: 10px 14px;
    font-size: 13px;
  }

  .top-menu .nav-link i {
    font-size: 16px;
    margin-right: 10px;
  }

  .top-menu .nav-link span {
    font-size: 13px;
  }

}

/* User Management Styles */
.user-avatar {
  font-size: 28px;
  color: #41d8b3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(65, 216, 179, 0.1) 0%, rgba(0, 131, 98, 0.1) 100%);
  border-radius: 50%;
}

.card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 6px 25px rgba(0, 131, 98, 0.15);
}

.card-header {
  border-bottom: none;
  padding: 20px;
  font-weight: 600;
}

/* User Form Header - Matching Table Header Colors */
.user-form-header {
  background: linear-gradient(135deg, #008362 0%, #007f60 100%);
  color: #ffffff;
  border-radius: 12px 12px 0 0;
}

.user-form-header h4 {
  color: #ffffff;
  font-weight: 600;
}

.user-form-header .btn-light {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transition: all 0.3s ease;
}

.user-form-header .btn-light:hover {
  background-color: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
  transform: translateX(-3px);
}

.card-body {
  padding: 30px;
}

.card-body .border-top {
  border-color: #e9ecef !important;
  margin-top: 16px; /* Reduced */
  padding-top: 16px; /* Reduced */
}

/* Form Section Separator */
hr.my-4 {
  border-color: #e9ecef;
  opacity: 0.5;
  margin: 16px 0; /* Reduced from 25px */
}

h6.mb-3 {
  color: #008362;
  font-weight: 600;
  font-size: 15px;
}

/* Form Text Styling */
.form-text {
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

.form-text.text-muted {
  color: #6c757d;
  font-style: italic;
}

.form-text.text-success {
  color: #41d8b3;
  font-weight: 500;
}

.form-text.text-danger {
  color: #dc3545;
  font-weight: 500;
}

.form-text.text-info {
  color: #41d8b3;
  font-weight: 500;
}

.form-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 6px; /* Reduced */
  font-size: 0.875rem; /* ~12.25px */
  letter-spacing: 0.2px; /* Reduced */
}

.form-label .text-danger {
  color: #dc3545;
  font-weight: 700;
}

.form-control,
.form-select {
  border: 1px solid #ddd;
  border-radius: 6px; /* Slightly smaller */
  padding: 9px 12px; /* Reduced for compact layout */
  font-size: 0.875rem; /* ~12.25px */
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: #41d8b3;
  box-shadow: 0 0 0 0.2rem rgba(65, 216, 179, 0.25);
  outline: none;
}

.form-control:focus-visible,
.form-select:focus-visible {
  border-color: #008362;
  box-shadow: 0 0 0 0.2rem rgba(0, 131, 98, 0.25);
}

.form-control.is-valid,
.form-select.is-valid {
  border-color: #41d8b3;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2341d8b3' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #dc3545;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6 .4.4.4-.4m0 4.8-.4-.4-.4.4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.input-group-text {
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  color: #666;
  transition: all 0.3s ease;
}

.input-group:focus-within .input-group-text {
  border-color: #41d8b3;
  background-color: #f0fdfa;
  color: #008362;
}

.password-strength {
  margin-top: 8px; /* Reduced */
  padding: 10px; /* Reduced */
  background-color: #f8f9fa;
  border-radius: 6px; /* Slightly smaller */
  border: 1px solid #e9ecef;
}

.password-strength .progress {
  border-radius: 4px;
  background-color: #e9ecef;
  height: 6px;
  overflow: hidden;
}

.password-strength .progress-bar {
  transition: all 0.3s ease;
}

.password-strength .progress-bar.bg-danger {
  background: linear-gradient(90deg, #dc3545 0%, #c82333 100%) !important;
}

.password-strength .progress-bar.bg-warning {
  background: linear-gradient(90deg, #ffc107 0%, #e0a800 100%) !important;
}

.password-strength .progress-bar.bg-info {
  background: linear-gradient(90deg, #41d8b3 0%, #2aa78a 100%) !important;
}

.password-strength .progress-bar.bg-success {
  background: linear-gradient(90deg, #008362 0%, #007f60 100%) !important;
}

.password-strength ul {
  margin-top: 10px;
  padding-left: 0;
}

.password-strength li {
  margin-bottom: 5px;
  font-size: 13px;
}

.password-strength li i {
  margin-right: 8px;
  font-size: 14px;
}

.password-strength li i.bi-check-circle.text-success {
  color: #41d8b3 !important;
}

.password-strength li i.bi-x-circle.text-danger {
  color: #dc3545 !important;
}

/* Standardized Button Styles - Consistent Across Portal */
.btn {
  border-radius: 8px;
  padding: 8px 16px; /* Reduced from 10px 20px */
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px; /* Reduced from 6px */
  text-decoration: none;
  cursor: pointer;
  font-size: 0.875rem; /* ~12.25px at base 14px, reduced from 14px */
  line-height: 1.5;
}

@media (min-width: 1920px) {
  .btn {
    padding: 9px 18px;
    font-size: 0.9rem;
  }
}

.btn i {
  font-size: 14px; /* Reduced from 16px */
}

@media (min-width: 1920px) {
  .btn i {
    font-size: 15px;
  }
}

/* Primary Button - Standard Green Gradient */
.btn-primary {
  background: linear-gradient(135deg, #008362 0%, #007f60 100%);
  color: #ffffff;
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #006d4f 0%, #005a42 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 131, 98, 0.4);
  color: #ffffff;
}

.btn-primary:active {
  background: linear-gradient(135deg, #008362 0%, #007f60 100%);
  box-shadow: 0 2px 8px rgba(0, 131, 98, 0.3);
  transform: translateY(0);
}

/* Secondary Button */
.btn-secondary {
  background: #6c757d;
  color: #ffffff;
  border: none;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: #5a6268;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Success Button - Use Primary Style */
.btn-success {
  background: linear-gradient(135deg, #008362 0%, #007f60 100%);
  color: #ffffff;
  border: none;
  font-weight: 600;
}

.btn-success:hover,
.btn-success:focus {
  background: linear-gradient(135deg, #006d4f 0%, #005a42 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 131, 98, 0.4);
}

/* Outline Primary Button */
.btn-outline-primary {
  border: 2px solid #008362;
  color: #008362;
  background: transparent;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: linear-gradient(135deg, #008362 0%, #007f60 100%);
  color: #ffffff;
  border-color: #008362;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 131, 98, 0.3);
}

/* Outline Danger Button */
.btn-outline-danger {
  border: 2px solid #dc3545;
  color: #dc3545;
  background: transparent;
  font-weight: 600;
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
  background: #dc3545;
  color: #ffffff;
  border-color: #dc3545;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Small Buttons */
.btn-sm {
  padding: 5px 10px; /* Reduced */
  font-size: 0.8rem; /* ~11.2px at base 14px */
}

@media (min-width: 1920px) {
  .btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
}

.btn-sm i {
  font-size: 12px; /* Reduced from 14px */
}

@media (min-width: 1920px) {
  .btn-sm i {
    font-size: 13px;
  }
}

/* Light Button */
.btn-light {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}

.badge.bg-info {
  background-color: #41d8b3 !important;
  color: #ffffff;
}

.badge.bg-secondary {
  background-color: #6c757d !important;
  color: #ffffff;
}

.badge.bg-light {
  background-color: #f8f9fa !important;
  color: #495057 !important;
  border: 1px solid #dee2e6;
  font-weight: 600;
}

.alert {
  border-radius: 6px; /* Reduced */
  border: none;
  padding: 10px 14px; /* Reduced for compact layout */
  margin-bottom: 12px; /* Reduced */
  font-size: 0.875rem; /* ~12.25px */
}

.alert-success {
  background: linear-gradient(135deg, rgba(65, 216, 179, 0.1) 0%, rgba(0, 131, 98, 0.1) 100%);
  color: #155724;
  border-left: 3px solid #41d8b3; /* Thinner */
  border-radius: 6px;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border-left: 3px solid #dc3545; /* Thinner */
}

.alert i {
  margin-right: 6px; /* Reduced */
}

.table {
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.table thead th {
  background: linear-gradient(135deg, #008362 0%, #007f60 100%);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem; /* ~11.2px at base 14px */
  letter-spacing: 0.5px; /* Reduced */
  border: none;
  color: #ffffff;
  padding: 10px 12px; /* Reduced for compact layout */
  position: relative;
  white-space: nowrap;
}

@media (min-width: 1920px) {
  .table thead th {
    font-size: 0.85rem;
    padding: 11px 14px;
  }
}

@media (max-width: 767px) {
  .table thead th {
    font-size: 0.75rem;
    padding: 8px 10px;
  }
}

.table thead th:first-child {
  border-top-left-radius: 8px;
}

.table thead th:last-child {
  border-top-right-radius: 8px;
}

.table thead th.sorting,
.table thead th.sorting_asc,
.table thead th.sorting_desc {
  cursor: pointer;
  position: relative;
  padding-right: 30px;
}

/* Override DataTables default padding for sorting */
table.dataTable thead th.sorting,
table.dataTable thead th.sorting_asc,
table.dataTable thead th.sorting_desc {
  padding-right: 30px !important;
}

/* Hide DataTables default sorting icons - keep only our custom ones */
table.dataTable thead th.sorting:before,
table.dataTable thead th.sorting_asc:before,
table.dataTable thead th.sorting_desc:before,
table.dataTable thead th.sorting_asc_disabled:before,
table.dataTable thead th.sorting_desc_disabled:before {
  display: none !important;
  content: none !important;
}

/* Hide DataTables default :after icons but we'll add our own */
table.dataTable thead th.sorting:after,
table.dataTable thead th.sorting_asc:after,
table.dataTable thead th.sorting_desc:after,
table.dataTable thead th.sorting_asc_disabled:after,
table.dataTable thead th.sorting_desc_disabled:after {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
}

/* Custom single sorting icon - only one icon on top */
.table thead th.sorting:after,
.table thead th.sorting_asc:after,
.table thead th.sorting_desc:after,
table.dataTable thead th.sorting:after,
table.dataTable thead th.sorting_asc:after,
table.dataTable thead th.sorting_desc:after {
  content: '' !important;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  display: block !important;
  opacity: 1 !important;
}

.table thead th.sorting:after,
table.dataTable thead th.sorting:after {
  border-top: 7px solid rgba(255, 255, 255, 0.7);
  border-bottom: none;
  margin-top: -3px;
}

.table thead th.sorting_asc:after,
table.dataTable thead th.sorting_asc:after {
  border-bottom: 7px solid #ffffff;
  border-top: none;
  margin-top: 3px;
}

.table thead th.sorting_desc:after,
table.dataTable thead th.sorting_desc:after {
  border-top: 7px solid #ffffff;
  border-bottom: none;
  margin-top: -3px;
}

.table tbody tr {
  transition: all 0.2s ease;
  border-bottom: 1px solid #e9ecef;
  background-color: #ffffff;
}

.table tbody tr:hover {
  background-color: #f0fdfa;
  box-shadow: 0 1px 4px rgba(0, 131, 98, 0.08); /* Reduced shadow */
}

.table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 8px;
}

.table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 8px;
}

.table td {
  vertical-align: middle;
  padding: 10px 12px; /* Reduced for compact layout */
  color: #333;
  font-size: 0.875rem; /* ~12.25px at base 14px */
}

@media (min-width: 1920px) {
  .table td {
    padding: 11px 14px;
    font-size: 0.9rem;
  }
}

@media (max-width: 767px) {
  .table td {
    padding: 8px 10px;
    font-size: 0.85rem;
  }
}

.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.15em;
}

/* Group Actions Styling */
.group-actions {
  font-size: 13px;
  margin-top: 8px;
  line-height: 1.8;
}

.group-action-link {
  color: #008362;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 2px 4px;
  display: inline-block;
}

.group-action-link:hover {
  color: #006d4f;
  text-decoration: underline;
  background-color: rgba(0, 131, 98, 0.05);
  border-radius: 4px;
}

.action-separator {
  color: #ddd;
  margin: 0 8px;
  font-weight: 300;
  user-select: none;
}

/* Group Name Column Styling */
.table tbody td:first-child {
  min-width: 250px;
  max-width: 400px;
}

.table tbody td:first-child strong {
  color: #333;
  font-size: 15px;
  font-weight: 600;
}

/* Responsive adjustments for user management */
@media (max-width: 767px) {
  .card-body {
    padding: 20px;
  }

  .card-header {
    padding: 15px;
  }

  .card-header h4 {
    font-size: 18px;
  }

.table-responsive {
  border-radius: 8px;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
}

.table-responsive::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.table-responsive {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

/* Remove scrollbar from DataTables wrapper */
div#bsn-datatable_wrapper {
  overflow-x: hidden !important;
}

div#bsn-datatable_wrapper .dataTables_scrollBody {
  overflow-x: hidden !important;
}


/* Users Table ID Column Styling - Reduced Width */
table.bsn-users tbody td:first-child {
  min-width: 50px;
  max-width: 80px;
}

div#bsn-datatable_wrapper .dataTables_scroll {
  overflow-x: hidden !important;
}

  .btn-sm {
    padding: 5px 10px;
    font-size: 12px;
  }

  .d-md-flex {
    flex-direction: column;
  }

  .d-md-flex .btn {
    width: 100%;
    margin-bottom: 10px;
  }

  div#bsn-datatable_wrapper .dataTables_length,
  div#bsn-datatable_wrapper .dataTables_filter {
    text-align: left;
    margin-bottom: 15px;
  }

  div#bsn-datatable_wrapper .dataTables_filter input {
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
  }

  div#bsn-datatable_wrapper .dataTables_paginate {
    text-align: center;
    margin-top: 15px;
  }

  div#bsn-datatable_wrapper ul.pagination {
    justify-content: center;
    flex-wrap: wrap;
  }

  div#bsn-datatable_wrapper .dataTables_info {
    text-align: center;
    margin-bottom: 10px;
  }
}

/* Additional Table Enhancements */
.table tbody tr td strong {
  color: #212529;
  font-weight: 600;
}

.table tbody tr td .text-muted {
  color: #6c757d;
  font-style: italic;
}

/* Empty State Styling */
.table tbody tr td.text-center {
  padding: 40px 20px;
}

.table tbody tr td.text-center i {
  opacity: 0.3;
}

.table tbody tr td.text-center a {
  color: #41d8b3;
  text-decoration: none;
  font-weight: 600;
}

.table tbody tr td.text-center a:hover {
  color: #008362;
  text-decoration: underline;
}

/* ============================================
   SIDEBAR ADMIN LAYOUT STYLES
   ============================================ */

/* Admin Layout Body */
body.admin-layout {
  overflow-x: hidden;
}

/* Sidebar Styles */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px; /* Reduced from 280px for better scaling */
  height: 100vh;
  background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #ffffff;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Responsive Sidebar Width */
@media (min-width: 1920px) {
  .sidebar {
    width: 260px;
  }
}

@media (min-width: 1200px) and (max-width: 1919px) {
  .sidebar {
    width: 250px;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .sidebar {
    width: 240px;
  }
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Sidebar Header */
.sidebar-header {
  padding: 16px 18px; /* Reduced padding */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.2);
}

.sidebar-logo {
  display: flex;
  align-items: center;
}

.sidebar-logo img {
  height: 38px; /* Reduced from 45px */
  width: auto;
  max-width: 100%;
}

@media (min-width: 1920px) {
  .sidebar-logo img {
    height: 40px;
  }
}

@media (max-width: 767px) {
  .sidebar-logo img {
    height: 35px;
  }
}

.sidebar-toggle {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
  display: none;
  transition: transform 0.3s ease;
}

.sidebar-toggle:hover {
  transform: rotate(90deg);
}

/* Sidebar User Info */
.sidebar-user {
  padding: 16px 18px; /* Reduced padding */
  display: flex;
  align-items: center;
  gap: 10px; /* Reduced gap */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.1);
}

.sidebar-user-avatar {
  width: 42px; /* Reduced from 50px */
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #008362 0%, #007f60 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px; /* Reduced from 24px */
  color: #ffffff;
  flex-shrink: 0;
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.sidebar-user-name {
  font-weight: 600;
  font-size: 0.95rem; /* ~13.3px at base 14px */
  color: #ffffff;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 0.8rem; /* ~11.2px at base 14px */
  color: rgba(255, 255, 255, 0.7);
  text-transform: capitalize;
}

/* Sidebar Content */
.sidebar-content {
  flex: 1;
  padding: 15px 0;
  overflow-y: auto;
}

/* Sidebar Navigation */
.sidebar-nav {
  padding: 0;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu-item {
  margin: 4px 0;
}

.sidebar-menu-link {
  display: flex;
  align-items: center;
  padding: 10px 18px; /* Reduced padding */
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem; /* ~12.6px at base 14px */
  font-weight: 500;
  border-left: 3px solid transparent;
  position: relative;
}

.sidebar-menu-link i {
  font-size: 16px; /* Reduced from 18px */
  margin-right: 10px; /* Reduced margin */
  width: 18px;
  text-align: center;
  transition: transform 0.3s ease;
}

.sidebar-menu-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-left-color: #008362;
  padding-left: 22px;
}

.sidebar-menu-link:hover i {
  transform: scale(1.1);
}

.sidebar-menu-item.active .sidebar-menu-link {
  background: linear-gradient(90deg, rgba(0, 131, 98, 0.2) 0%, rgba(0, 131, 98, 0.1) 100%);
  color: #41d8b3;
  border-left-color: #008362;
  font-weight: 600;
}

.sidebar-menu-item.active .sidebar-menu-link i {
  color: #41d8b3;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 15px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.sidebar-logout {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.2);
}

.sidebar-logout i {
  font-size: 18px;
  margin-right: 12px;
  width: 20px;
  text-align: center;
}

.sidebar-logout:hover {
  background: rgba(220, 53, 69, 0.2);
  color: #ff6b7a;
  border-color: rgba(220, 53, 69, 0.4);
  transform: translateX(3px);
}

/* Sidebar Overlay (Mobile) */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Main Wrapper */
.main-wrapper {
  margin-left: 260px; /* Match sidebar width */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f5f7fa;
  transition: margin-left 0.3s ease;
}

/* Responsive Main Wrapper Margin */
@media (min-width: 1920px) {
  .main-wrapper {
    margin-left: 260px;
  }
}

@media (min-width: 1200px) and (max-width: 1919px) {
  .main-wrapper {
    margin-left: 250px;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .main-wrapper {
    margin-left: 240px;
  }
}

.main-content {
  flex: 1;
  padding: 16px 20px; /* Reduced for compact layout */
  width: 100%;
  max-width: 100%;
}

/* Responsive Main Content Padding */
@media (min-width: 1920px) {
  .main-content {
    padding: 18px 24px;
  }
}

@media (min-width: 1200px) and (max-width: 1919px) {
  .main-content {
    padding: 16px 20px;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .main-content {
    padding: 14px 18px;
  }
}

@media (max-width: 767px) {
  .main-content {
    padding: 12px 14px;
  }
}

/* Admin Footer */
.admin-footer {
  background: #ffffff;
  border-top: 1px solid #e9ecef;
  padding: 12px 24px; /* Reduced padding */
  margin-top: auto;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

@media (min-width: 1920px) {
  .admin-footer {
    padding: 14px 32px;
  }
}

@media (max-width: 767px) {
  .admin-footer {
    padding: 10px 16px;
  }
}

.admin-footer-text {
  font-size: 0.85rem; /* ~11.9px at base 14px */
  color: #6c757d;
  margin: 0;
}

.admin-footer-text a {
  color: #008362;
  text-decoration: none;
  font-weight: 600;
}

.admin-footer-text a:hover {
  color: #006d4f;
  text-decoration: underline;
}

.admin-footer-links {
  font-size: 0.85rem;
}

.admin-footer-links a {
  color: #6c757d;
  text-decoration: none;
  transition: color 0.3s ease;
}

.admin-footer-links a:hover {
  color: #008362;
  text-decoration: underline;
}

.admin-footer-links .separator {
  margin: 0 8px; /* Reduced margin */
  color: #dee2e6;
}

/* Content Adjustments for Admin Layout */
body.admin-layout main.content {
  padding-top: 0;
  padding-bottom: 0;
  background: transparent;
  min-height: auto;
}

body.admin-layout .container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

body.admin-layout .page-header {
  margin-bottom: 16px; /* Reduced for compact layout */
  padding-bottom: 10px; /* Reduced */
  border-bottom: 1px solid #e9ecef; /* Thinner border */
}

body.admin-layout .page-header h1 {
  font-size: 1.8rem; /* ~25.2px at base 14px, reduced from 28px */
  font-weight: 700;
  color: #212529;
  margin: 0;
}

@media (min-width: 1920px) {
  body.admin-layout .page-header h1 {
    font-size: 2rem; /* ~28px at base 14px */
  }
}

@media (max-width: 767px) {
  body.admin-layout .page-header h1 {
    font-size: 1.5rem; /* ~21px at base 14px */
  }
}

/* Public Layout (Keep existing styles) */
body.public-layout .wifi-header {
  display: block;
}

body.admin-layout .wifi-header {
  display: none;
}

body.public-layout .sidebar {
  display: none;
}

body.public-layout .main-wrapper {
  margin-left: 0;
}

body.public-layout .admin-footer {
  display: none;
}

/* Responsive Styles - Tablet (iPad) */
@media (max-width: 1199.98px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .sidebar-toggle {
    display: block;
  }

  .main-wrapper {
    margin-left: 0;
  }
}

/* Responsive Styles - Mobile */
@media (max-width: 767.98px) {
  .sidebar {
    width: 260px;
  }

  .sidebar-header {
    padding: 14px 16px;
  }

  .sidebar-user {
    padding: 14px 16px;
  }

  .sidebar-user-avatar {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .sidebar-menu-link {
    padding: 9px 16px;
    font-size: 0.9rem;
  }

  .sidebar-menu-link i {
    font-size: 15px;
    margin-right: 10px;
  }

  .sidebar-footer {
    padding: 12px 16px;
  }
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1001;
  background: linear-gradient(135deg, #008362 0%, #007f60 100%);
  color: #ffffff;
  border: none;
  width: 40px; /* Reduced from 45px */
  height: 40px;
  border-radius: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 18px; /* Reduced from 20px */
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 131, 98, 0.3);
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 131, 98, 0.4);
}

@media (max-width: 1199.98px) {
  .mobile-menu-toggle {
    display: flex;
  }

  body.admin-layout .main-content {
    padding-top: 60px; /* Reduced from 70px */
  }
}

@media (max-width: 767.98px) {
  .mobile-menu-toggle {
    width: 38px;
    height: 38px;
    font-size: 16px;
    top: 10px;
    left: 10px;
  }

  body.admin-layout .main-content {
    padding-top: 58px;
  }
}

/* Admin Layout Specific Styles */
body.admin-layout .dashboard-welcome-card {
  margin: 0;
}

body.admin-layout .welcome-title {
  font-size: 1.7rem; /* ~23.8px at base 14px */
}

@media (min-width: 1920px) {
  body.admin-layout .welcome-title {
    font-size: 1.9rem; /* ~26.6px */
  }
}

@media (max-width: 767px) {
  body.admin-layout .welcome-title {
    font-size: 1.4rem; /* ~19.6px */
  }
}

body.admin-layout .welcome-description {
  font-size: 0.95rem; /* ~13.3px at base 14px */
}

body.admin-layout .support-btn {
  padding: 10px 20px; /* Reduced */
  font-size: 0.85rem; /* ~11.9px */
}

body.admin-layout .support-btn i {
  font-size: 14px; /* Reduced from 16px */
}

/* Card styling in admin layout */
body.admin-layout .card {
  border: none;
  border-radius: 10px; /* Slightly smaller */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); /* Lighter shadow */
  margin-bottom: 16px; /* Reduced */
}

body.admin-layout .card-body {
  padding: 16px 20px; /* Reduced for compact layout */
}

@media (min-width: 1920px) {
  body.admin-layout .card-body {
    padding: 18px 24px;
  }
}

@media (max-width: 767px) {
  body.admin-layout .card-body {
    padding: 14px 16px;
  }
}

/* Page header subtitle styling */
body.admin-layout .page-header p {
  margin-top: 4px; /* Reduced */
  color: #6c757d;
  font-size: 0.875rem; /* ~12.25px at base 14px */
}

/* Minimal Public Header/Footer for QR Code Pages */
.public-header-minimal {
  padding: 8px 0;
  background: #ffffff;
  border-bottom: 1px solid #e9ecef;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
}

.public-header-minimal .public-navbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 60px;
  width: 100%;
  flex-wrap: wrap;
  gap: 15px;
}

.public-header-minimal .logo-section {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.public-header-minimal .logo-section img {
  height: 40px;
  width: auto;
  max-width: 100%;
}

.public-header-minimal .title-section {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 15px;
}

.public-header-minimal .title-section > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  flex: 1;
  min-width: 0;
}

.public-header-minimal .title-section .logout-section {
  flex-shrink: 0;
}

.public-header-minimal .title-section .logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 12px;
  font-size: 0.875rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: 44px;
  min-height: 44px;
}

.public-header-minimal .title-section .logout-btn i {
  font-size: 30px;
  line-height: 1;
}

.public-header-minimal .title-section .logout-btn:hover {
  background-color: #dc3545;
  border-color: #dc3545;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.public-header-minimal .page-title-text {
  font-family: "Oswald", serif;
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 5px 0;
  color: #000;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.2;
}

.public-header-minimal .timezone-display-header {
  font-size: 0.875rem;
  font-weight: 700;
  color: #007f60;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.public-footer-wrapper {
  margin-top: auto;
}

.public-footer {
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  padding: 12px 0;
  width: 100%;
}

.public-footer .container {
  padding: 0 15px;
}

.public-footer p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.public-footer a {
  color: #008362;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.public-footer a:hover {
  color: #006b4f;
  text-decoration: underline;
}

/* Improved main content spacing for QR pages */
/* body.public-layout #main {
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
}

body.public-layout .public-main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
} */

/* body.public-layout main.content {
  flex: 1;
  padding-top: 20px;
  padding-bottom: 20px;
  background: #f2f2f2;
  overflow-x: hidden;
  overflow-y: visible;
  min-height: 0;
} */

/* Better spacing for production-network on QR pages */
/* body.public-layout .production-network {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: visible;
} */

/* body.public-layout .production-network .container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  padding-left: 15px;
  padding-right: 15px;
} */

/* body.public-layout .production-network .row {
  margin-left: -10px;
  margin-right: -10px;
  width: calc(100% + 20px);
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: visible;
} */

/* body.public-layout .production-network .row > * {
  box-sizing: border-box;
  max-width: 100%;
  padding-left: 10px;
  padding-right: 10px;
  overflow-x: visible;
} */

body.public-layout .production-network .page-header {
  margin-bottom: 15px;
}

body.public-layout .production-network .page-header h1 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

body.public-layout .production-network span {
  font-size: 0.875rem;
  display: block;
  margin-bottom: 15px;
}

body.public-layout .production-network .timezone-display {
  font-size: 0.875rem;
  font-weight: 700;
  color: #007f60;
  display: block;
  margin-bottom: 15px;
}

/* Add bottom margin before footer */
body.public-layout main.content {
  margin-bottom: 30px;
}

body.public-layout .production-network {
  margin-bottom: 20px;
}

/* Responsive adjustments for QR code pages */
@media (min-width: 768px) and (max-width: 1199px) {
  /* iPad */
  .public-header-minimal {
    padding: 10px 0;
  }
  
  .public-header-minimal .logo-section img {
    height: 38px;
  }
  
  .public-header-minimal .page-title-text {
    font-size: 1.6rem;
  }
  
  .public-header-minimal .public-navbar {
    gap: 18px;
  }
  
  body.public-layout main.content {
    padding-top: 25px;
    padding-bottom: 25px;
    margin-bottom: 35px;
  }
  
  body.public-layout .production-network span {
    font-size: 0.9375rem;
  }
  
  .public-footer {
    padding: 14px 0;
  }
}

@media (max-width: 767px) {
  /* Mobile */
  .public-header-minimal {
    padding: 8px 0;
  }
  
  .public-header-minimal .public-navbar {
    min-height: auto;
    align-items: flex-start;
    gap: 10px;
  }
  
  .public-header-minimal .logo-section {
    flex-shrink: 0;
  }
  
  .public-header-minimal .logo-section img {
    height: 32px;
  }
  
  .public-header-minimal .title-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .public-header-minimal .title-section > div:first-child {
    align-items: flex-start;
    text-align: left;
    width: 100%;
  }
  
  .public-header-minimal .title-section .logout-section {
    width: 100%;
  }
  
  .public-header-minimal .title-section .logout-btn {
    width: 100%;
    justify-content: center;
    min-width: auto;
    min-height: auto;
  }
  
  .public-header-minimal .title-section .logout-btn i {
    font-size: 24px;
  }
  
  .public-header-minimal .page-title-text {
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin-bottom: 4px;
  }
  
  .public-header-minimal .timezone-display-header {
    font-size: 0.75rem;
  }

  /* If title is too long, allow wrapping on very small screens */
  @media (max-width: 400px) {
    .public-header-minimal .page-title-text {
      font-size: 0.95rem;
      white-space: normal;
      line-height: 1.2;
    }
    
    .public-header-minimal .public-navbar {
      flex-direction: column;
      align-items: flex-start;
    }
    
    .public-header-minimal .title-section {
      align-items: flex-start;
      text-align: left;
      width: 100%;
    }
  }
  
  body.public-layout main.content {
    padding-top: 15px;
    padding-bottom: 25px;
    margin-bottom: 0px;
  }
  body.public-layout .production-network {
    margin-bottom: 0px;
}
.production-network .d-flex.justify-content-end.p-3 {
  margin-bottom: 0;
}

  /* body.public-layout .production-network .container {
    padding-left: 10px;
    padding-right: 10px;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
  } */
  
  /* body.public-layout .production-network .row {
    margin-left: -5px;
    margin-right: -5px;
    overflow-x: visible;
    max-width: 100%;
    width: calc(100% + 10px);
  } */
  
  /* body.public-layout .production-network .row > * {
    padding-left: 5px;
    padding-right: 5px;
    max-width: 100%;
    box-sizing: border-box;
  } */
  
  .public-footer {
    padding: 10px 0;
  }
  
  .public-footer p {
    font-size: 0.75rem;
    padding: 0 10px;
  }
  
  .public-footer a {
    font-size: 0.75rem;
  }
}

/* Desktop - Large screens */
@media (min-width: 1200px) {
  .public-header-minimal {
    padding: 12px 0;
  }
  
  .public-header-minimal .logo-section img {
    height: 45px;
  }
  
  .public-header-minimal .page-title-text {
    font-size: 2rem;
  }
  
  .public-header-minimal .public-navbar {
    gap: 25px;
  }
  
  .public-header-minimal .timezone-display-header {
    font-size: 0.9375rem;
  }
  
  body.public-layout main.content {
    padding-top: 30px;
    padding-bottom: 56px;
    margin-bottom: 0px;
  }
  
  body.public-layout .production-network span {
    font-size: 1rem;
  }
  
  .public-footer {
    padding: 15px 0;
  }
}

/* Ensure proper container spacing */
body.public-layout .container {
  max-width: 100%;
  padding-left: 15px;
  padding-right: 15px;
}

@media (min-width: 576px) {
  body.public-layout .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  body.public-layout .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  body.public-layout .container {
    max-width: 960px;
  }
  #deviceCell1 .modal-body ul {
    column-count: 1;
  }
}

@media (min-width: 1200px) {
  body.public-layout .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  body.public-layout .container {
    max-width: 1420px;
  }
}