



* {
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f0f0f0;
  color: #333333;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}


.hidden {
  display: none;
}


.screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e8e8e8;
}

.card {
  background-color: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 5px;
  padding: 30px;
  width: 320px;
  text-align: center;
  box-shadow: 2px 2px 5px #cccccc;
}

.login-card .logo {
  font-size: 48px;
  margin-bottom: 10px;
}

.card h1 {
  font-size: 22px;
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  color: #666666;
  margin-bottom: 16px;
}


.card input[type="password"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  margin-bottom: 10px;
  font-size: 14px;
}

.btn {
  width: 100%;
  padding: 8px;
  border: 1px solid #cccccc;
  background-color: #f9f9f9;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  color: #333333;
}

.btn:hover {
  background-color: #eeeeee;
}

.hint {
  margin-top: 12px;
  font-size: 12px;
  color: #999999;
}


.desktop {
  width: 100vw;
  height: 100vh;
  position: relative;
  background: radial-gradient(ellipse at top left, #dbeafe, #e0e7ff, #f5f3ff, #fdf2f8);
}


.desktop-icons {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 1; 
}

.desktop-icon {
  display: block;
  width: 80px;
  text-align: center;
  padding: 8px 4px;
  border-radius: 5px;
  cursor: pointer;
  border: 1px solid transparent;
  margin-bottom: 5px;
}

.desktop-icon:hover {
  background-color: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.desktop-icon .icon {
  font-size: 28px;
  color: #2563eb;
}

.desktop-icon .label {
  font-size: 12px;
  color: #1f2937;
  font-weight: bold;
}


#windows-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% - 42px);
  pointer-events: none; 
}
.window {
  position: absolute;
  background-color: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 5px;
  box-shadow: 2px 2px 8px #aaaaaa;
  min-width: 300px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  pointer-events: auto; 
}

.window-header {
  height: 36px;
  background-color: #f5f5f5;
  border-bottom: 1px solid #cccccc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 10px;
  padding-right: 10px;
  cursor: grab;
  border-radius: 5px 5px 0 0;
}

.window-title {
  font-size: 14px;
  font-weight: bold;
  color: #333333;
}


.window-controls {
  display: flex;
  height: 100%;
}

.window-controls button {
  width: 40px;
  height: 36px;
  border: none;
  background-color: transparent;
  color: #444444;
  font-size: 16px;
  font-family: monospace;
  cursor: pointer;
  line-height: 36px;
  text-align: center;
}

.window-controls button:hover {
  background-color: #dddddd;
}

.window-controls .btn-close:hover {
  background-color: #e81123;
  color: #ffffff;
}

.window-body {
  flex: 1;
  padding: 12px;
  overflow: auto;
  background-color: #ffffff;
  color: #333333;
}


.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 42px;
  background-color: #2c3e50;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 10px;
  padding-right: 10px;
  z-index: 1000;
}

.taskbar-left button,
.taskbar-right button {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.taskbar-left button:hover,
.taskbar-right button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.taskbar-center {
  display: flex;
  flex: 1;
  margin-left: 12px;
  margin-right: 12px;
  overflow-x: auto;
}


.taskbar-app {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  margin-right: 6px;
}

.taskbar-app:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.taskbar-app.active {
  background-color: rgba(255, 255, 255, 0.25);
}

.taskbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

#clock {
  font-size: 13px;
  min-width: 70px;
  text-align: right;
}


.start-menu {
  position: fixed;
  bottom: 42px;
  left: 10px;
  width: 220px;
  background-color: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 5px;
  box-shadow: 2px 2px 8px #aaaaaa;
  z-index: 1001;
}

.start-menu ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.start-menu li {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  border-bottom: 1px solid #eeeeee;
  color: #333333;
}

.start-menu li i {
  width: 18px;
  display: inline-block;
  color: #4a90d9;
}

.start-menu li:hover {
  background-color: #f0f0f0;
}

.start-menu hr {
  border: none;
  border-top: 1px solid #cccccc;
  margin: 0;
}

.shutdown {
  color: #c0392b;
}

.shutdown i {
  color: #c0392b;
}


.calendar-popup {
  position: fixed;
  bottom: 42px;
  right: 10px;
  width: 260px;
  background-color: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 5px;
  box-shadow: 2px 2px 8px #aaaaaa;
  z-index: 1001;
  padding: 12px;
}

.cal-table {
  width: 100%;
  border-collapse: collapse;
}

.cal-table td {
  width: 14.28%;
  text-align: center;
  padding: 6px;
  font-size: 13px;
  color: #333333;
}

.cal-table th {
  width: 14.28%;
  text-align: center;
  padding: 6px;
  font-size: 13px;
  font-weight: bold;
  color: #666666;
}

.cal-table td.today {
  background-color: #4a90d9;
  color: #ffffff;
  border-radius: 50%;
}


.notepad-area {
  width: 100%;
  height: 250px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  padding: 8px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  resize: none;
}

.notepad-bar {
  margin-bottom: 8px;
}

.notepad-bar button,
.notepad-bar select {
  padding: 4px 8px;
  margin-right: 6px;
  border: 1px solid #cccccc;
  background-color: #f9f9f9;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}


.terminal-box {
  background-color: #1e1e1e;
  color: #00ff00;
  font-family: "Courier New", monospace;
  font-size: 13px;
  padding: 10px;
  height: 250px;
  overflow-y: auto;
  border-radius: 4px;
}

.terminal-line {
  margin-bottom: 4px;
}

.terminal-input-line {
  display: flex;
  gap: 6px;
}

.terminal-prompt {
  color: #00ff00;
}

.terminal-input {
  background-color: transparent;
  border: none;
  outline: none;
  color: #00ff00;
  font-family: "Courier New", monospace;
  font-size: 13px;
  flex: 1;
}


.calc-screen {
  background-color: #f5f5f5;
  border: 1px solid #cccccc;
  border-radius: 4px;
  padding: 12px;
  font-size: 24px;
  text-align: right;
  margin-bottom: 10px;
  color: #333333;
}

.calc-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 6px;
}

.calc-table td {
  padding: 0;
}

.calc-table button {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #cccccc;
  background-color: #f9f9f9;
  border-radius: 4px;
  cursor: pointer;
}

.calc-table button:hover {
  background-color: #eeeeee;
}

.calc-table .equals {
  background-color: #4a90d9;
  color: #ffffff;
}

.calc-table .equals:hover {
  background-color: #357abd;
}


.fm-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fm-file {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  background-color: #fafafa;
}

.fm-file button {
  padding: 3px 8px;
  border: 1px solid #cccccc;
  background-color: #f0f0f0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  margin-left: 4px;
}


.snake-canvas {
  border: 1px solid #cccccc;
  border-radius: 4px;
  background-color: #f0f0f0;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.snake-score {
  text-align: center;
  margin-bottom: 8px;
  font-weight: bold;
}

.snake-controls {
  text-align: center;
  margin-top: 10px;
}

.snake-controls button {
  padding: 6px 14px;
  border: 1px solid #cccccc;
  background-color: #f9f9f9;
  border-radius: 4px;
  cursor: pointer;
}


.browser-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.browser-bar input {
  flex: 1;
  padding: 6px;
  border: 1px solid #cccccc;
  border-radius: 4px;
}

.browser-bar button {
  padding: 6px 12px;
  border: 1px solid #cccccc;
  background-color: #f9f9f9;
  border-radius: 4px;
  cursor: pointer;
}

.browser-msg {
  text-align: center;
  color: #999999;
  margin-top: 40px;
}


.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eeeeee;
}

.settings-row label {
  font-size: 14px;
}

.wp-buttons {
  margin-top: 8px;
}

.wp-buttons button {
  padding: 5px 10px;
  border: 1px solid #cccccc;
  background-color: #f9f9f9;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  margin-right: 6px;
}




body.dark-mode .desktop {
  background: radial-gradient(ellipse at top left, #0f172a, #1e1b4b, #172554);
}

body.dark-mode .desktop-icon .label {
  color: #e5e7eb;
}

body.dark-mode .window {
  background-color: #1e1e2e;
  border-color: #444444;
}

body.dark-mode .window-header {
  background-color: #252536;
  border-color: #444444;
}

body.dark-mode .window-title {
  color: #eeeeee;
}

body.dark-mode .window-body {
  background-color: #1e1e2e;
  color: #cccccc;
}

body.dark-mode .window-controls button {
  color: #bbbbbb;
}

body.dark-mode .window-controls button:hover {
  background-color: #333333;
}

body.dark-mode .window-controls .btn-close:hover {
  background-color: #e81123;
  color: #ffffff;
}

body.dark-mode .start-menu {
  background-color: #1e1e2e;
  border-color: #444444;
}

body.dark-mode .start-menu li {
  color: #eeeeee;
  border-color: #333333;
}

body.dark-mode .start-menu li:hover {
  background-color: #2a2a3c;
}

body.dark-mode .calendar-popup {
  background-color: #1e1e2e;
  border-color: #444444;
}

body.dark-mode .cal-table td {
  color: #cccccc;
}

body.dark-mode .cal-table th {
  color: #888888;
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
  background-color: #2a2a3c;
  color: #dddddd;
  border-color: #444444;
}

body.dark-mode .card {
  background-color: #1e1e2e;
  border-color: #444444;
}

body.dark-mode .card p,
body.dark-mode .hint {
  color: #aaaaaa;
}

body.dark-mode .btn,
body.dark-mode .notepad-bar button,
body.dark-mode .calc-table button,
body.dark-mode .snake-controls button,
body.dark-mode .browser-bar button,
body.dark-mode .wp-buttons button,
body.dark-mode .fm-file button {
  background-color: #2a2a3c;
  color: #dddddd;
  border-color: #444444;
}

body.dark-mode .calc-screen {
  background-color: #252536;
  color: #eeeeee;
  border-color: #444444;
}

body.dark-mode .fm-file {
  background-color: #252536;
  border-color: #444444;
}

body.dark-mode .settings-row {
  border-color: #333333;
}

body.dark-mode .settings-row label {
  color: #dddddd;
}

body.dark-mode .browser-msg {
  color: #666666;
}
