* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: monospace;
  background: #000;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  color: #0f0;
}

.os-container {
  position: relative;
  width: 95vw;
  height: 95vh;
  background: #001200;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0,128,0,0.2);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.taskbar {
  background: #0a1f0a;
  height: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  border-bottom: 1px solid #0f0;
}

.logo {
  font-size: 14px;
  font-weight: bold;
  color: #8b8;
}

.system-info {
  display: flex;
  gap: 20px;
  font-size: 12px;
}

.desktop {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 15px;
  padding: 15px;
  position: relative;
  overflow: auto;
}

.window {
  background: #0a1f0a;
  border-radius: 8px;
  border: 1px solid #0f0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 10px rgba(0,128,0,0.3);
  min-height: 240px;
  height: 100%;
}

.window-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px;
  background: #0a1f0a;
  border-bottom: 1px solid #0f0;
}

.window-title {
  color: #8b8;
  font-size: 14px;
}

.window-controls {
  display: flex;
  gap: 6px;
}

.control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #666;
  cursor: pointer;
}

.control.red {
  background: #f66;
}

.window-content {
  flex: 1;
  position: relative;
  background: #001800;
  overflow: hidden;
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scan-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(0,0,0,0) 50%,
    rgba(0,0,0,0.25) 50%
  );
  background-size: 100% 4px;
  pointer-events: none;
}

.terminal-text {
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: #0f0;
  font-size: 12px;
  font-family: monospace;
  opacity: 0.7;
}

.log-window .window-content {
  padding: 10px;
  font-size: 12px;
  line-height: 1.4;
  overflow-y: auto;
}

.status-window .window-content {
  display: flex;
  flex-direction: column;
  padding: 10px;
}

.status-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
  border-bottom: 1px dashed rgba(0, 255, 0, 0.2);
  padding-bottom: 4px;
}

.status-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 5px;
}

.status-active {
  background: #0f0;
}

.status-warning {
  background: #ff0;
}

.status-danger {
  background: #f00;
}

.map-window .window-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

#securityMap {
  width: 100%;
  height: 100%;
}

.blinking {
  animation: blink 1s infinite;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}

.glitch {
  animation: glitch 0.5s infinite;
}

@keyframes glitch {
  0% { transform: translateX(0); }
  25% { transform: translateX(2px); }
  50% { transform: translateX(-2px); }
  75% { transform: translateX(1px); }
  100% { transform: translateX(0); }
}

.small-cam {
  grid-column: span 1;
  grid-row: span 1;
}

.main-cam {
  grid-column: span 2;
  grid-row: span 2;
  z-index: 5;
}

.log-window {
  grid-column: span 2;
  grid-row: span 2;
}

.status-window {
  grid-column: span 2;
  grid-row: span 1;
}

.map-window {
  grid-column: span 2;
  grid-row: span 1;
}

.volume-control {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 18, 0, 0.7);
  padding: 5px 8px;
  border-radius: 4px;
  border: 1px solid #0f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-label {
  font-size: 12px;
  color: #0f0;
}

.volume-button {
  background: #0f0;
  color: #001200;
  border: none;
  padding: 3px 8px;
  border-radius: 3px;
  font-family: monospace;
  font-weight: bold;
  cursor: pointer;
}

.volume-button.muted {
  background: #444;
  color: #ccc;
}