/* --- RESET & BASICS --- */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 0;
  background: url("https://i.imgur.com/Zk6TR5k.jpg") no-repeat center center
    fixed;
  background-size: cover;
  font-family: "Tahoma", sans-serif;
  overflow: hidden;
  height: 100vh;
  user-select: none;
  cursor: default;
}

/* --- ICONS (Desktop & General) --- */
.desktop-icons {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  z-index: 1;
}
.icon {
  width: 75px;
  text-align: center;
  color: white;
  text-shadow: 1px 1px 3px black;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.icon img {
  width: 48px;
  height: 48px;
  margin-bottom: 5px;
}
.icon span {
  font-size: 11px;
  padding: 2px 4px;
  line-height: 1.4;
  background: rgba(0, 0, 0, 0);
  border-radius: 2px;
}
.icon:hover span {
  background-color: #0054e3;
  border: 1px dotted #ccc;
}

/* --- WINDOW SYSTEM --- */
.window {
  position: absolute;
  background-color: #ece9d8;
  border: 1px solid #0054e3;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  min-width: 300px;
}

.title-bar {
  background: linear-gradient(
    180deg,
    #0058ee 0%,
    #3593ff 4%,
    #288eff 18%,
    #127dff 44%,
    #0369fd 50%,
    #0a5aea 100%
  );
  padding: 6px 10px;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  font-weight: bold;
  font-size: 13px;
  text-shadow: 1px 1px #0f1089;
  cursor: default;
}

.title-bar-text {
  display: flex;
  align-items: center;
  gap: 5px;
}
.title-bar-text img {
  width: 16px;
  height: 16px;
}

.title-bar-controls {
  display: flex;
  gap: 3px;
}
.btn {
  width: 21px;
  height: 21px;
  border: 1px solid white;
  border-radius: 3px;
  font-family: sans-serif;
  font-weight: bold;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.2);
}
.btn-min {
  background: #288eff;
  color: white;
  align-items: flex-end;
}
.btn-max {
  background: #288eff;
  color: white;
}
.btn-close {
  background: #e44b36;
  color: white;
  border-color: #fff;
}
.btn-close:hover {
  background: #ff6042;
}

.menu-bar {
  background: #ece9d8;
  padding: 2px 5px;
  border-bottom: 1px solid #d1d1d1;
  font-size: 11px;
  display: flex;
  gap: 10px;
}
.menu-bar span {
  padding: 2px 5px;
  cursor: pointer;
}
.menu-bar span:hover {
  background: #316ac5;
  color: white;
}

.window-body {
  padding: 10px;
  font-size: 12px;
  color: black;
  background: white;
  flex-grow: 1;
  overflow: auto;
  border: 1px solid #999;
  margin: 3px;
}

/* --- CONTENT STYLES --- */
.explorer-layout {
  display: flex;
  height: 100%;
  background: #fff;
}
.sidebar {
  width: 180px;
  background: linear-gradient(to bottom, #7ba2e7 0%, #6375d6 100%);
  padding: 10px;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.sidebar-section {
  background: white;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  overflow: hidden;
}
.sidebar-header {
  background: linear-gradient(to right, #fff, #cceeff);
  padding: 5px;
  color: #215dc6;
  font-weight: bold;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}
.sidebar-content {
  padding: 10px;
  color: #215dc6;
  font-size: 11px;
  background: #d6dff7;
}
.sidebar-content a {
  display: block;
  color: #215dc6;
  text-decoration: none;
  margin-bottom: 3px;
  padding-left: 15px;
  background: url("https://win98icons.alexmeub.com/icons/png/arrow_right-0.png")
    no-repeat left center;
  background-size: 10px;
}
.sidebar-light {
  background: linear-gradient(to bottom, #fff 0%, #ece9d8 100%);
  color: black;
  border-right: 1px solid #ccc;
}

.main-view {
  flex-grow: 1;
  padding: 15px;
  overflow-y: auto;
  background: white;
}

.file-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.file-item {
  width: 80px;
  text-align: center;
  cursor: pointer;
  padding: 5px;
}
.file-item:hover {
  background-color: #e8f0fa;
  border: 1px solid #c0d0e8;
  border-radius: 3px;
}
.file-item img {
  width: 48px;
  height: 48px;
}
.file-item span {
  display: block;
  font-size: 11px;
  margin-top: 5px;
  word-wrap: break-word;
}

.section-heading {
  margin-top: 0;
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
  color: #666;
  font-weight: bold;
}

/* Resume / Word Style */
.doc-paper {
  background: white;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  padding: 30px;
  max-width: 800px;
  margin: 0 auto;
  font-family: "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.5;
}
.doc-header {
  border-bottom: 2px solid #333;
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.doc-header h1 {
  margin: 0;
  font-size: 24px;
  text-transform: uppercase;
}
.section-title {
  font-weight: bold;
  border-bottom: 1px solid #ccc;
  margin-top: 20px;
  text-transform: uppercase;
  font-size: 14px;
  color: #444;
}
.job-title {
  font-weight: bold;
  font-size: 15px;
  margin-top: 10px;
}
.job-meta {
  font-style: italic;
  color: #666;
  font-size: 13px;
  margin-bottom: 5px;
}

/* Outlook Express / Contact */
.outlook-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.outlook-toolbar {
  padding: 5px;
  border-bottom: 1px solid #ccc;
  background: #ece9d8;
  display: flex;
  gap: 10px;
}
.outlook-form {
  padding: 15px;
  background: #fff;
  flex-grow: 1;
}
.form-group {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}
.form-group label {
  width: 80px;
  font-size: 12px;
  color: #666;
}
.form-group input,
.form-group textarea {
  flex-grow: 1;
  padding: 4px;
  border: 1px solid #7f9db9;
  font-family: Tahoma;
}
.form-group textarea {
  height: 150px;
  resize: none;
}
.outlook-send {
  background: #ece9d8;
  border: 1px solid #fff;
  border-right-color: #666;
  border-bottom-color: #666;
  padding: 5px 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
}
.outlook-send:active {
  border: 1px solid #666;
  border-right-color: #fff;
  border-bottom-color: #fff;
}

/* --- TASKBAR & START MENU --- */
.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background: linear-gradient(to bottom, #245dda 0%, #1941a5 100%);
  border-top: 2px solid #3482f6;
  display: flex;
  align-items: center;
  z-index: 1000;
}

.start-btn {
  height: 100%;
  background: radial-gradient(circle, #3e9d2c 0%, #368826 100%);
  border: none;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  color: white;
  font-style: italic;
  font-weight: bold;
  font-size: 14px;
  padding: 0 15px 0 10px;
  margin-right: 10px;
  box-shadow: inset 1px 1px 0px rgba(255, 255, 255, 0.3),
    2px 0 5px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
.start-btn:hover {
  background: radial-gradient(circle, #4eb637 0%, #368826 100%);
}
.start-btn img {
  height: 20px;
}

.taskbar-items {
  display: flex;
  gap: 2px;
  flex-grow: 1;
  padding-right: 10px;
}

.task-item {
  width: 150px;
  background: #3c81f3;
  color: white;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid #164099;
}
.task-item:hover {
  background: #5394ff;
}
.task-item.active {
  background: #1e52b7;
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.5);
}
.task-item img {
  width: 16px;
  height: 16px;
}

.tray {
  width: 80px;
  height: 100%;
  background: #1290e3;
  border-left: 1px solid #0f76bd;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 11px;
  padding: 0 10px;
}

/* --- START MENU DROPDOWN --- */
.start-menu {
  position: fixed;
  bottom: 30px;
  left: 0;
  width: 300px;
  background: #fff;
  border: 1px solid #0054e3;
  border-top-right-radius: 8px;
  border-top-left-radius: 8px;
  display: none;
  z-index: 1001;
  box-shadow: 2px -2px 10px rgba(0, 0, 0, 0.5);
}

.start-header {
  background: linear-gradient(180deg, #166ae4 0%, #104eaa 100%);
  padding: 10px;
  color: white;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}
.start-header img {
  width: 40px;
  border: 2px solid white;
  border-radius: 3px;
}

.start-body {
  display: flex;
  height: 350px;
}
.start-left {
  width: 50%;
  background: white;
  padding: 5px;
  border-right: 1px solid #d3d3d3;
}
.start-right {
  width: 50%;
  background: #d3e5fa;
  padding: 5px;
  border-left: 1px solid #fff;
}

.start-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  font-size: 11px;
  color: #333;
  cursor: pointer;
  margin-bottom: 2px;
}
.start-item:hover {
  background: #316ac5;
  color: white;
}
.start-item img {
  width: 24px;
  height: 24px;
}
.start-right .start-item {
  font-weight: bold;
  color: #153e87;
}
.start-right .start-item:hover {
  color: white;
}

.start-footer {
  background: linear-gradient(180deg, #3883f8 0%, #1c5ec6 100%);
  padding: 8px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 11px;
}
.start-separator {
  margin-top: auto;
  border-top: 1px solid #ccc;
  padding-top: 5px;
}
.start-group {
  margin-top: 10px;
  border-top: 1px solid #8fafd7;
  padding-top: 5px;
}

/* --- NEW ADDITIONS: CMD, BSOD, BALLOON --- */
#cmd-input {
  background: black;
  border: none;
  color: white;
  outline: none;
  flex-grow: 1;
  font-family: monospace;
  font-size: 14px;
}
.cmd-body {
  background: black;
  color: #c0c0c0;
  border: none;
  font-family: monospace;
  font-size: 13px;
}
#bsod {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0000aa;
  color: white;
  z-index: 9999;
  font-family: "Courier New", monospace;
  padding: 50px;
  font-size: 20px;
}
#xp-balloon {
  display: none;
  position: fixed;
  bottom: 40px;
  right: 10px;
  width: 250px;
  background: #ffffe1;
  border: 1px solid black;
  border-radius: 5px;
  padding: 10px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  font-size: 11px;
  animation: popUp 0.5s ease-out;
}
.balloon-header {
  font-weight: bold;
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
}
@keyframes popUp {
  from {
    bottom: -100px;
    opacity: 0;
  }
  to {
    bottom: 40px;
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 600px) {
  .window {
    width: 95% !important;
    left: 2.5% !important;
    top: 10px !important;
  }
  .desktop-icons {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .sidebar {
    display: none;
  }
}
