* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Tahoma", "MS Sans Serif", Geneva, sans-serif;
    font-size: 11px;
  }
  
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    
    min-height: 100vh;
    margin: 0;
  
    background-image:
      url('../images/o.gif'), 
      linear-gradient(180deg, rgba(201, 0, 0, 0.4), rgba(19, 0, 0, 0.9));
  
    background-repeat: repeat,no-repeat;
    background-size: 20% 30%, auto;
    background-blend-mode: multiply; 
  }
  

  .window {
    width: 70vw;
    height: 75vh;
    background: #c6ece8;
    border: 2px solid;
    border-color: #e7fffd #000000 #000000 #e7fffd;
    box-shadow: 1px 1px 0px #001431 inset, -1px -1px 0px #e7fffd inset;
    padding: 2px;
    box-sizing: border-box; 
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    padding: 3px;
    z-index: 1;
  }
  

  .window-header {
    background: linear-gradient(90deg, #007153, #00ffbb);
    padding: 3px 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    flex-shrink: 0; 
  }
  
  .header-text {
    color:#fff;
    display: flex;
    align-items: center;
    gap: 4px;
  }
  
  .title-bar-controls {
    display: flex;
    gap: 2px;
  }
  
  .title-bar-controls button {
    width: 3vw;
    height:3vh;
    background-color: #c6ece8;
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-right: 1px solid #000000;
    border-bottom: 1px solid #000000;
    font-size: 9px;
    font-weight: bold;
    line-height: 10px;
    cursor: pointer;
  }
  

  .menu-bar {
    display: flex;
    gap: 12px;
    padding: 4px 6px;
    background-color: #c6ece8;
    border-bottom: 1px solid #003d29;
  }
  
  .menu-item {
    cursor: pointer;
    color: #000;
  }
  

  .app-body {
    flex: 1;
    display: flex;
    gap: 6px;
    padding: 6px;
    background-color: #c6ece8;
  }
  

  .camera-single-container {
    flex: 3;
    display: flex;
  }
  
  .cam-box.single-feed {
    width: 100%;
    height: 100%;
    background-color: #c6ece8;
    border-top: 1px solid #000;
    border-left: 1px solid #000;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    padding: 2px;
    display: flex;
    flex-direction: column;
  }
  
  .cam-header {
    background-color: #00885f;
    color: white;
    padding: 2px 4px;
    font-size: 10px;
    font-weight: bold;
  }
  
  .cam-feed {
    flex: 1;
    background-color: #000;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 6px;
    border: 1px solid #c6ece8;
  }
  

  .camera-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: contrast(1.1) brightness(0.95);
  }
  
  .scanlines {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.15),
      rgba(0, 0, 0, 0.15) 1px,
      transparent 1px,
      transparent 2px
    );
    pointer-events: none;
  }
  
  .cam-overlay {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    color: #00ffd0;
    font-family: "Courier New", monospace;
    font-weight: bold;
    font-size: 12px;
    text-shadow: 1px 1px 2px #000;
  }
  
  .cam-label {
    position: relative;
    z-index: 3;
    color: #00ffd0;
    font-family: "Courier New", monospace;
    font-size: 11px;
    text-shadow: 1px 1px 2px #000;
  }
  
  .control-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .win-fieldset {
    border: 2px groove #ffffff;
    padding: 6px;
  }
  
  .win-fieldset legend {
    padding: 0 4px;
    color: #000;
  }
  
  .win-btn {
    width: 100%;
    padding: 4px;
    margin-bottom: 4px;
    background-color: #c6ece8;
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-right: 1px solid #000000;
    border-bottom: 1px solid #000000;
    box-shadow: 1px 1px 0px #c6ece8;
    cursor: pointer;
    text-align: center;
  }
  
  .win-btn:active, .win-btn.active {
    border-top: 1px solid #000000;
    border-left: 1px solid #000000;
    border-right: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
    box-shadow: none;
    padding: 5px 3px 3px 5px;
  }
  
  .ptz-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
  }
  
  .ptz-grid .win-btn {
    margin: 0;
    height: 24px;
  }
  
  .status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
  }
  
  .led {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid #000;
  }
  
  .led.green { background-color: #00ffd0; box-shadow: 0 0 3px #00ffd0; }
  .led.red { background-color: #ff008c; box-shadow: 0 0 3px #ff008c; }
  
  .flashing {
    animation: blink 1s infinite;
  }
  
  @keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
  }

  
  @keyframes blink2 {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
  }

    
  .red-btn {
    background-color: #c6ece8;
    color: #bb0067;
    font-weight: bold;
  }
  
  .status-bar {
    display: flex;
    gap: 2px;
    padding-top: 2px;
  }
  
  .status-cell {
    flex: 1;
    background-color: #c6ece8;
    border-top: 1px solid #c6ece8;
    border-left: 1px solid #c6ece8;
    border-right: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
    padding: 2px 4px;
    color: #007771;
  }
  
  .dark-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 21, 255, 0.15);
    pointer-events: none;
    z-index: 9999;
    
    mix-blend-mode: multiply;
  }