body {
  margin: 0;
  padding: 0;
  height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow: hidden;
}

#desktop {
  height: 100vh;
  background: url('fin-windows-7.jpeg') center/cover;
}

#icons {
  padding: 20px;
}

.icon {
  width: 75px;
  text-align: center;
  margin-bottom: 20px;
  cursor: pointer;
  position: absolute;
  user-select: none;
}

.icon img {
  width: 48px;
  height: 48px;
}

.win7-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  background-size: contain;
  background-repeat: no-repeat;
  filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.3));
}

.computer-icon {
  background-image: url('File_Explorer.png');
}

.recycle-icon {
  background-image: url('Recycle_Bin_Empty.png');
}

.ie-icon {
  background-image: url('Internet_Explorer.png');
}

.notepad-icon {
  background-image: url('notepad.png');
}

.paint-icon {
  background-image: url('Paint.png');
}

.calculator-icon {
  background-image: url('calculator.png');
}

.folder-icon {
  background-image: url('File_Explorer.png');
}

.icon span {
  color: white;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
  font-size: 12px;
  display: block;
  margin-top: 8px;
  background: rgba(0,0,0,0.5);
  padding: 2px 4px;
  border-radius: 3px;
}

#taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, #2584e4 0%, #0f5dc5 100%);
  display: flex;
  align-items: center;
  padding: 0 10px;
  justify-content: flex-start;
  gap: 10px;
}

#start-button {
  background: linear-gradient(to bottom, #45a3ff 0%, #2584e4 100%);
  border: none;
  color: white;
  padding: 5px 15px;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

#start-button img {
  width: 20px;
  height: 20px;
  content: url('windows-7-logo-6718525_1280.png');
}

#time {
  position: absolute;
  right: 10px;
  color: white;
}

.taskbar-items {
  display: flex;
  gap: 5px;
  margin-left: 10px;
}

.taskbar-item {
  background: linear-gradient(to bottom, #3598fe 0%, #1b7ce8 100%);
  width: 40px;
  height: 32px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.taskbar-item:hover {
  background: linear-gradient(to bottom, #45a3ff 0%, #2584e4 100%);
}

.taskbar-item .win7-icon {
  width: 24px;
  height: 24px;
}

.document-icon, .picture-icon {
  background-image: url('File_Explorer.png');
}

.file-explorer {
  display: flex;
  height: 100%;
}

.sidebar {
  width: 200px;
  background: #f0f0f0;
  padding: 10px;
  border-right: 1px solid #ddd;
}

.sidebar-item {
  padding: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.sidebar-item:hover {
  background: #e0e0e0;
}

.sidebar-item .win7-icon {
  width: 16px;
  height: 16px;
}

.files-container {
  flex: 1;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 20px;
  align-content: start;
}

.file-item {
  text-align: center;
  cursor: pointer;
}

.file-item:hover {
  background: rgba(0,0,0,0.1);
}

.file-item span {
  font-size: 12px;
  display: block;
  margin-top: 5px;
}

#start-menu {
  position: fixed;
  bottom: 40px;
  left: 0;
  width: 380px;
  height: 480px;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
  display: flex;
  border: 1px solid rgba(255,255,255,0.1);
}

.hidden {
  display: none !important;
}

.start-menu-left {
  flex: 2;
  padding: 20px;
}

.start-menu-left input {
  width: 100%;
  padding: 5px;
  border-radius: 3px;
  border: 1px solid #666;
  margin-bottom: 20px;
}

.menu-items {
  color: white;
}

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

.menu-item:hover {
  background: rgba(255,255,255,0.1);
}

.start-menu-right {
  flex: 1;
  background: rgba(255,255,255,0.05);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

:root {
  --theme-color: #2584e4;
}

.user-profile {
  text-align: center;
  color: white;
  margin-bottom: 20px;
  cursor: pointer;
  padding: 10px;
  border-radius: 5px;
}

.user-profile:hover {
  background: rgba(255, 255, 255, 0.1);
}

.user-pic {
  width: 64px;
  height: 64px;
  background: url('defaultuser.jpg') center/cover;
  border-radius: 5px;
  margin: 0 auto;
  overflow: hidden;
}

.user-name {
  margin-top: 5px;
  text-align: center;
  color: white;
  font-size: 14px;
}

.profile-window input[type="text"],
.profile-window input[type="password"] {
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.profile-window button {
  padding: 5px 10px;
  background: var(--theme-color);
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

.profile-window button:hover {
  opacity: 0.9;
}

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

.browser-toolbar {
  display: flex;
  gap: 5px;
  padding: 5px;
  background: #f0f0f0;
  border-bottom: 1px solid #ddd;
}

.browser-toolbar button {
  padding: 5px 10px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 3px;
  cursor: pointer;
}

.browser-toolbar button:hover {
  background: #f5f5f5;
}

.url-bar {
  flex: 1;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 3px;
  margin: 0 5px;
}

.browser-frame {
  flex: 1;
  border: none;
  width: 100%;
}

.window {
  position: absolute;
  background: white;
  border: 1px solid #999;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  min-width: 400px;
  min-height: 200px;
  resize: both;
  overflow: auto;
}

.window.maximized {
  width: 100% !important;
  height: calc(100vh - 40px) !important;
  top: 0 !important;
  left: 0 !important;
  resize: none;
  border-radius: 0;
}

.window-title {
  background: linear-gradient(to bottom, #2584e4 0%, #0f5dc5 100%);
  color: white;
  padding: 8px;
  cursor: move;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.window-button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 16px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.window-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.resize-handle {
  position: absolute;
  width: 10px;
  height: 10px;
  bottom: 0;
  right: 0;
  cursor: se-resize;
}

.system-tray {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  height: 100%;
  position: absolute;
  right: 0;
  background: rgba(0,0,0,0.1);
}

.system-tray > div {
  cursor: pointer;
  padding: 0 5px;
}

.system-tray > div:hover {
  background: rgba(255,255,255,0.1);
}

#notifications {
  position: fixed;
  bottom: 50px;
  right: 10px;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  pointer-events: none;
}

.notification {
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 15px;
  border-radius: 5px;
  backdrop-filter: blur(10px);
  max-width: 300px;
  animation: slideIn 0.3s ease-out;
  pointer-events: all;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

#context-menu {
  position: fixed;
  background: white;
  border: 1px solid #ccc;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
  padding: 5px 0;
  min-width: 200px;
}

#context-menu .menu-item {
  padding: 5px 20px;
  cursor: pointer;
}

#context-menu .menu-item:hover {
  background: #e8e8e8;
}

#context-menu .separator {
  height: 1px;
  background: #ccc;
  margin: 5px 0;
}

.window.notepad .window-content {
  padding: 0;
}

.notepad-editor {
  width: 100%;
  height: 100%;
  border: none;
  resize: none;
  padding: 10px;
  font-family: Consolas, monospace;
}

.paint-canvas {
  border: 1px solid #ccc;
}

.paint-toolbar {
  padding: 10px;
  display: flex;
  gap: 10px;
  background: #f0f0f0;
  border-bottom: 1px solid #ddd;
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  padding: 10px;
}

.calculator-display {
  grid-column: 1 / -1;
  background: #f0f0f0;
  padding: 10px;
  text-align: right;
  font-size: 24px;
  margin-bottom: 10px;
}

.calculator-button {
  padding: 10px;
  border: 1px solid #ccc;
  background: white;
  cursor: pointer;
}

.calculator-button:hover {
  background: #f0f0f0;
}

.system-links {
  flex: 1;
}

.power-button, .shutdown-button {
  width: 100%;
  padding: 10px;
  margin: 5px 0;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.power-button {
  background: #2584e4;
  color: white;
}

.shutdown-button {
  background: #c42b1c;
  color: white;
}

.power-icon {
  font-size: 16px;
}

.close-button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 16px;
}

.media-player {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #1a1a1a;
  color: white;
}

.player-controls {
  padding: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  background: #2a2a2a;
}

.player-controls button {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 5px 10px;
}

.player-controls button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.volume-slider {
  width: 100px;
}

.playlist {
  flex: 1;
  overflow-y: auto;
}

.playlist-item {
  padding: 10px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #333;
  cursor: pointer;
}

.playlist-item:hover {
  background: #333;
}

.playlist-item.playing {
  background: #3598fe;
}

.media-container {
  min-height: 50px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.folder-view {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.folder-toolbar {
  padding: 10px;
  display: flex;
  gap: 10px;
  background: #f0f0f0;
  border-bottom: 1px solid #ddd;
}

.folder-path {
  flex: 1;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.folder-content {
  flex: 1;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 20px;
  overflow-y: auto;
}

.settings-panel {
  padding: 20px;
  overflow-y: auto;
}

.settings-section {
  margin-bottom: 30px;
}

.setting-item {
  margin: 15px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.setting-item label {
  min-width: 150px;
}

.media-icon {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23333" d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 14.5c-2.49 0-4.5-2.01-4.5-4.5S9.51 7.5 12 7.5s4.5 2.01 4.5 4.5-2.01 4.5-4.5 4.5z"/></svg>');
}

.messenger-icon {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23333" d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H6l-2 2V4h16v12z"/></svg>');
}

.contact-item:hover {
  background: rgba(0,0,0,0.1);
}

.message {
  animation: messageSlide 0.3s ease-out;
}

@keyframes messageSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-landscape {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30vh;
  z-index: -1;
}

.landscape-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30vh;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 100%);
  z-index: -1;
}