:root{
  --primary:#0d6efd;
  --primary-dark:#0b5ed7;
  --bg:#0e2a47;
  --bg-2:#113455;
  --text:#ffffff;
}
body{
  background: linear-gradient(180deg,var(--bg),var(--bg-2));
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-y: scroll; /* Force scrollbar */
}
/* Desktop App Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-2);
}
::-webkit-scrollbar-thumb {
  background: #4a6fa5;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}
.navbar{
  background: var(--primary) !important;
}
.navbar .navbar-brand, .navbar .nav-link, .navbar .btn{
  color: var(--text);
}
.navbar .nav-link {
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.1s ease-in-out;
  border: 1px solid transparent; /* Transparent border by default */
  border-bottom-width: 3px;
  border-right-width: 2px;
}
.navbar .nav-link:hover {
  color: #fff !important;
  background-color: rgba(255,255,255,0.1);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  border-color: rgba(255,255,255,0.2); /* Visible bevel on hover */
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.1);
}
.navbar .nav-link:active {
  border-bottom-width: 1px;
  border-right-width: 1px;
  transform: translateY(2px) translateX(1px);
}
.card{
  background-color: #ffffff;
  border: none;
  border-radius: .75rem;
}
.btn {
  border: 1px solid rgba(0,0,0,0.2);
  border-bottom-width: 3px;
  border-right-width: 2px;
  box-shadow: 
    inset 1px 1px 0 rgba(255,255,255,0.2),
    0 2px 4px rgba(0,0,0,0.15);
  transition: all 0.1s ease-in-out;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 6px;
}
.btn:active {
  border-bottom-width: 1px;
  border-right-width: 1px;
  transform: translateY(2px) translateX(1px);
  box-shadow: inset 2px 2px 5px rgba(0,0,0,0.2);
}
.btn-primary {
  background-color: var(--primary);
  border-color: #0a58ca;
}
.btn-primary:hover {
  background-color: var(--primary-dark);
  filter: brightness(110%);
}
.btn-outline-secondary, .btn-outline-primary, .btn-outline-danger, .btn-outline-warning, .btn-outline-success {
  border-width: 1px;
  border-bottom-width: 3px;
  border-right-width: 2px;
}
.btn-outline-light:hover, .btn-outline-light:active, .btn-outline-light:focus, .show > .btn-outline-light.dropdown-toggle {
  background-color: rgba(255,255,255,0.15) !important;
  color: #fff !important;
  border-color: #fff !important;
  box-shadow: 0 0 10px rgba(255,255,255,0.3) !important;
}
.btn-outline-light {
  color: #fff;
  border-color: #fff;
}
.hero{
  background: #ffffff;
  color: #0e2a47;
  border-radius: .75rem;
}
.brand-logo{
  height: 48px;
  width: auto;
}
.hero-banner{
  background: radial-gradient(ellipse at center, rgba(13,110,253,.15), rgba(17,52,85,.6)), url('/assets/img/banner.jpg');
  background-size: cover;
  background-position: center;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.hero-banner .text h2, .hero-banner .text p{
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.loading-overlay{
  position: fixed;
  inset: 0;
  background: rgba(14,42,71,.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.loading-overlay.show{ display: flex; }
.loading-inner{ text-align: center; }
.gear{
  animation: pulse 1s infinite alternate;
}
@keyframes pulse{
  from{ transform: scale(1) rotate(0deg); }
  to{ transform: scale(1.2) rotate(45deg); }
}
.led{
  display:inline-block;
  width:12px;
  height:12px;
  border-radius:50%;
  box-shadow: 0 0 6px rgba(0,0,0,.3);
}
.led-red{ background:#dc3545; }
.led-yellow{ background:#ffc107; }
.led-green{ background:#28a745; }
