body 
  {
  background: linear-gradient(180deg, 
  #56c1d3 0%, 
  #d0f1fa 25%, 
  #8cd9e3 50%, 
  #eaf8fb 75%, 
  #3ab7c9 100%
);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height:100vh;
  margin:0px;
  padding:20px;
  }

a {text-decoration:none;}

.container
 {
   display: flex;
   gap:25px;
   flex-wrap: wrap;
   padding-top:75px;
   padding-left:30px;
 }

.patrol
 {
   border: solid 1px skyblue;
   border-radius:30px;
   background:rgba(13,206,235, 0.50) ;
   width:150px;
   height: 150px;
 }

.access_control
 {
   border: solid 1px purple;
   border-radius:30px;
   background:rgba(128,0,128, 0.50);
   width:150px;
   height: 150px;
 }

.ob_book
 {
   border: solid 1px green;
   border-radius:30px;
   background:rgba(34,139,34, 0.50);
   width:150px;
   height: 150px;
 }

.sos_button
 {
   border: solid 1px red;
   border-radius:30px;
   background: rgba(255,0,0,0.55);
   width:150px;
   height: 150px;
 }


.heading_text
  {
    color:white;
    padding-top:5px;
  }

.nav_icon
  {
    padding-top:20px;
    width:80px;
    height:auto;
  }


/* Clock */
#liveClock 
 {
  border: solid 1px silver;
  border-radius:15px;
  background: rgba(255, 255, 255, 0.50);
  font-size: 50px;
  font-weight: bold;
  font-family:arial;
  color: white;
  text-align: center;
  margin: 10px 0;
}

/* Alarm Button */
#enableBtn 
{
  width: 100%;
  padding: 12px;
  background: #FF4444;
  color: white;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
}

#alarmStatus 
 {
  text-align: center;
  color: white;
  font-size: 12px;
  margin-top: 5px;
 }

/* Alarm Popup - full red screen */
#alarmPopup
 {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 0, 0, 0.9);
  z-index: 999;
  text-align: center;
  padding-top: 100px;
  color: white;
 }

#alarmPopup h1 
 {
  font-size: 48px;
 }

#alarmPopup button 
 {
  padding: 15px 40px;
  font-size: 20px;
  margin-top: 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
 }


#dimOverlay 
 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  opacity: 0;
  pointer-events: none;
  z-index: 998;
  transition: opacity 2s;
}


#dimOverlay.dim 
{
  opacity: 0.65; /* 65% dim after 22:00 */
  pointer-events: none;
}

/* ===== PATROL SCAN - MINIMAL ===== */
.scan-page {
  padding: 0 !important;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
#video-container {
  flex: 1;
  position: relative;
  background: #000;
  overflow: hidden;
  width: 100%;
  height: 100vh;
}
#qr-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Big Flash Button - Bottom Center */
.scan-fab-wrap {
  position: fixed;
  bottom: 28px;
  left: 0; right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 100;
}
#flash-btn {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 5px solid #fff;
  background: rgba(0,0,0,0.60);
  color: #fff;
  font-size: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.40);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#flash-btn.flash-on {
  background: #FFCC00;
  color: #111;
  border-color: #fff;
  box-shadow: 0 0 30px rgba(255,204,0,0.80);
}
#flash-label {
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
}