/*--------------------------------------------------------------
# Enhanced Mugshot Overlay System
--------------------------------------------------------------*/

.mugshot-camera-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  z-index: 2000;
  display: none;
}

.jailhouse-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(90deg, #333 0%, #333 2%, transparent 2%, transparent 8%, #333 8%, #333 10%, transparent 10%),
    linear-gradient(0deg, #222 0%, #444 50%, #222 100%);
  background-size: 50px 100%, 100% 100%;
  opacity: 0.3;
}

.mugshot-camera-view {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  filter: grayscale(100%) contrast(1.2);
}

.mugshot-frame-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 400px;
  height: 60%;
  border: 4px solid #04aa6d;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.booking-board {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  border: 3px solid #04aa6d;
  border-radius: 8px;
  padding: 15px 20px;
  color: #04aa6d;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 0 20px rgba(4, 170, 109, 0.5);
}

.booking-header {
  font-size: 14px;
  margin-bottom: 10px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.booking-info {
  display: grid;
  grid-template-columns: auto auto;
  gap: 10px 20px;
  font-size: 12px;
  text-align: left;
}

.booking-label {
  color: #ccc;
  text-transform: uppercase;
}

.booking-value {
  color: #04aa6d;
  font-weight: bold;
}

.live-datetime {
  font-size: 16px;
  color: #04aa6d;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #04aa6d;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.5; }
}

.height-lines {
  position: absolute;
  right: 20px;
  top: 20%;
  bottom: 20%;
  width: 30px;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 19px,
    #04aa6d 19px,
    #04aa6d 21px
  );
  opacity: 0.6;
}

.height-numbers {
  position: absolute;
  right: 55px;
  top: 20%;
  bottom: 20%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #04aa6d;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  font-weight: bold;
}

.mugshot-controls {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 2001;
}

.mugshot-btn {
  background: rgba(4, 170, 109, 0.9);
  color: #000;
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 12px;
  white-space: nowrap;
}

.mugshot-btn:hover {
  background: #04aa6d;
  transform: scale(1.05);
}

.mugshot-btn:disabled {
  background: #666 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

.mugshot-instructions {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #04aa6d;
  padding: 15px 20px;
  border-radius: 8px;
  text-align: center;
  max-width: 300px;
  font-size: 14px;
  border: 1px solid #04aa6d;
}

@media (max-width: 480px) {
  .mugshot-frame-overlay {
    width: 90%;
    height: 50%;
  }
  
  .booking-board {
    width: 90%;
    padding: 10px 15px;
  }
  
  .booking-info {
    font-size: 10px;
    gap: 5px 15px;
  }
  
  .height-lines {
    right: 10px;
    width: 20px;
  }
  
  .height-numbers {
    right: 35px;
    font-size: 10px;
  }
  
  .mugshot-controls {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .mugshot-btn {
    padding: 8px 12px;
    font-size: 10px;
    min-width: 80px;
  }
}

.camera-flash {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 2002;
}

.camera-flash.active {
  animation: flash 0.3s ease-out;
}

@keyframes flash {
  0% { opacity: 0; }
  50% { opacity: 0.8; }
  100% { opacity: 0; }
}