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

body {
  font-family: 'Malgun Gothic', 'Arial', sans-serif;
  background-color: #007700;
  overflow: hidden;
}

#desktop {
  width: 100vw;
  height: 100vh;
  position: relative;
}

.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(to bottom, #cc0000, #990000);
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-top: 2px solid #ff0000;
}

#start-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(to bottom, #ff0000, #cc0000);
  border: 1px solid #ffffff;
  color: white;
  padding: 5px 15px;
  cursor: pointer;
}

#start-btn:hover {
  background: linear-gradient(to bottom, #ff2222, #dd0000);
}

.time {
  margin-left: auto;
  color: white;
  font-weight: bold;
}

#start-menu {
  position: fixed;
  bottom: 40px;
  left: 0;
  width: 300px;
  background: #cc0000;
  border: 2px solid #ffffff;
  border-bottom: none;
  color: white;
}

.menu-header {
  padding: 20px;
  background: #990000;
  display: flex;
  align-items: center;
  gap: 10px;
}

.emblem {
  width: 50px;
  height: 50px;
}

.menu-items {
  padding: 10px 0;
}

.menu-item {
  padding: 10px 20px;
  cursor: pointer;
}

.menu-item:hover {
  background: #ff0000;
}

.window {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  background: #f0f0f0;
  border: 2px solid #cc0000;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.title-bar {
  background: linear-gradient(to bottom, #ff0000, #cc0000);
  color: white;
  padding: 5px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-btn {
  background: #cc0000;
  border: 1px solid white;
  color: white;
  cursor: pointer;
}

.window-content {
  padding: 20px;
}

.desktop-icons {
  padding: 20px;
}

.icon {
  text-align: center;
  color: white;
  cursor: pointer;
  width: 80px;
}

.icon span {
  display: block;
  margin-top: 5px;
  text-shadow: 1px 1px 2px black;
}

.hidden {
  display: none;
}

#error-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ff0000;
  border: 2px solid #ffffff;
  padding: 20px;
  color: white;
  text-align: center;
  animation: shake 0.5s ease-in-out;
  z-index: 1000;
}

@keyframes shake {
  0%, 100% { transform: translate(-50%, -50%); }
  25% { transform: translate(-53%, -50%); }
  75% { transform: translate(-47%, -50%); }
}

#activity-monitor {
  position: fixed;
  top: 10px;
  right: 10px;
  width: 300px;
  transform: none;
  z-index: 1000;
  opacity: 0.9;
}

.browser-window {
  height: 400px;
  display: flex;
  flex-direction: column;
}

.browser-toolbar {
  padding: 10px;
  background: #dddddd;
  display: flex;
  gap: 10px;
  align-items: center;
}

.address-bar {
  flex-grow: 1;
  background: white;
  padding: 5px;
  border: 1px solid #999;
}

.browser-content {
  padding: 20px;
  flex-grow: 1;
  background: white;
  overflow-y: auto;
}

.site-list {
  list-style: none;
  margin-top: 20px;
}

.site-list li {
  margin: 10px 0;
  padding: 10px;
  background: #f5f5f5;
  border: 1px solid #ddd;
}

.site-list a {
  color: #cc0000;
  text-decoration: none;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #cc0000;
}

.form-group textarea,
.form-group input {
  width: 100%;
  padding: 8px;
  border: 1px solid #cc0000;
}

.form-group textarea {
  height: 80px;
}

#activity-log {
  height: 150px;
  overflow-y: auto;
  font-family: monospace;
  font-size: 12px;
  background: #000;
  color: #0f0;
  padding: 10px;
}

.log-entry {
  margin: 5px 0;
}

.log-entry.alert {
  color: #ff0000;
  font-weight: bold;
  animation: blink 1s infinite;
}

#active-programs {
  display: flex;
  gap: 5px;
  margin-left: 10px;
}

.active-program {
  background: #990000;
  color: white;
  padding: 2px 10px;
  border: 1px solid white;
  font-size: 12px;
}

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

.monitoring {
  animation: blink 1s infinite;
  color: #ff0000;
  font-weight: bold;
}

.document-editor {
  background: #fff;
  padding: 10px;
}

.toolbar {
  background: #eee;
  padding: 5px;
  margin-bottom: 10px;
  display: flex;
  gap: 5px;
}

.toolbar button {
  background: #cc0000;
  color: white;
  border: 1px solid #990000;
  padding: 5px 10px;
  cursor: pointer;
}

.toolbar button:hover {
  background: #ff0000;
}

.compliance-meter {
  margin-top: 10px;
  padding: 10px;
  background: #f5f5f5;
}

.meter {
  height: 20px;
  background: #ddd;
  border: 1px solid #999;
  margin-top: 5px;
}

.meter-fill {
  width: 75%;
  height: 100%;
  background: linear-gradient(to right, #cc0000, #ff0000);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.warning-banner {
  background: #ffeb3b;
  color: #cc0000;
  padding: 10px;
  margin: 10px 0;
  border: 2px solid #cc0000;
  text-align: center;
  font-weight: bold;
}

.media-player {
  padding: 15px;
  background: #f5f5f5;
}

.player-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.player-controls button {
  background: #cc0000;
  color: white;
  border: none;
  padding: 8px 15px;
  cursor: pointer;
}

.player-controls button:hover {
  background: #ff0000;
}

.playlist {
  background: white;
  padding: 15px;
  border: 1px solid #cc0000;
  margin-bottom: 15px;
}

.playlist ul {
  list-style: none;
  margin-top: 10px;
}

.playlist li {
  padding: 5px 0;
  border-bottom: 1px solid #eee;
}

.compliance-notice {
  background: #fff3cd;
  color: #856404;
  padding: 10px;
  border: 1px solid #ffeeba;
  margin-top: 15px;
  text-align: center;
  font-family: 'Malgun Gothic', sans-serif;
}

.menu-header h2,
.window-content h2,
.form-group label,
.menu-item span {
  font-family: 'Malgun Gothic', 'Arial', sans-serif;
}

select {
  width: 100%;
  padding: 8px;
  border: 1px solid #cc0000;
  margin-top: 5px;
}

.food-ordering {
  padding: 20px;
  background: #fff;
}

.food-ordering h2 {
  color: #cc0000;
  margin-bottom: 20px;
  text-align: center;
}

.food-notice {
  margin: 20px 0;
  padding: 15px;
  background: #fff3cd;
  border: 1px solid #cc0000;
  color: #cc0000;
  font-size: 0.9em;
  line-height: 1.5;
}

#food-order-form button[type="submit"] {
  width: 100%;
  padding: 10px;
  background: #cc0000;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
  margin-top: 20px;
}

#food-order-form button[type="submit"]:hover {
  background: #ff0000;
}

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000080;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  z-index: 9999;
}

.loading-logo {
  width: 200px;
  height: 200px;
  margin-bottom: 20px;
}

.loading-bar-container {
  width: 300px;
  height: 20px;
  background: #000040;
  border: 2px solid white;
  margin-top: 20px;
}

.loading-bar {
  width: 0%;
  height: 100%;
  background: #cc0000;
  transition: width 3s linear;
}

.login-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #cc0000 0%, #990000 100%);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9998;
}

.login-container {
  background: rgba(255, 255, 255, 0.9);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.user-option {
  display: flex;
  align-items: center;
  padding: 15px;
  margin: 10px 0;
  cursor: pointer;
  border: 1px solid #ddd;
  border-radius: 5px;
  transition: background-color 0.2s;
}

.user-option:hover {
  background-color: #f0f0f0;
}

.user-avatar {
  width: 50px;
  height: 50px;
  margin-right: 15px;
  background: #cc0000;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.user-name {
  font-size: 18px;
  color: #333;
}

.execution-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #cc0000;
  color: white;
  padding: 30px;
  border: 2px solid white;
  text-align: center;
  z-index: 10000;
  display: none;
  animation: shake 0.5s ease-in-out infinite;
}

.virus-effect {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 0, 0, 0.3);
  z-index: 9999;
  pointer-events: none;
  animation: virusFlash 0.5s infinite;
}

@keyframes virusFlash {
  0% { opacity: 0.3; }
  50% { opacity: 0.6; }
  100% { opacity: 0.3; }
}

#secret-recorder-icon {
  opacity: 0.3;
  cursor: not-allowed;
}

#secret-recorder-icon .recording-dot {
  animation: blink 1s infinite;
}

#secret-recorder-icon:hover span {
  color: #ff0000;
}

.secret-recorder {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 0, 0, 0.9);
  color: white;
  padding: 10px;
  border-radius: 5px;
  font-size: 12px;
  display: none;
  animation: pulse 1s infinite;
}

.takeover-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: #ff0000;
  text-align: center;
}

.takeover-screen img {
  width: 200px;
  margin-bottom: 20px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.virus-window {
  position: fixed;
  background: #ff0000;
  color: white;
  padding: 20px;
  border: 2px solid white;
  z-index: 9999;
  animation: virusMove 5s infinite linear;
}

@keyframes virusMove {
  0% { transform: translate(0, 0); }
  25% { transform: translate(100px, 100px); }
  50% { transform: translate(200px, 0); }
  75% { transform: translate(100px, -100px); }
  100% { transform: translate(0, 0); }
}