* {
  box-sizing: border-box;
}

body {
  background: #1f6bcf url('/images/windows-xp-bliss-hd-wallpaper.jpg') no-repeat center center fixed;
  background-size: cover;
  margin: 0;
  padding: 0;
  height: 100vh;
  font-family: Tahoma, "Segoe UI", Geneva, Verdana, sans-serif;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Skrivbordsikoner */
.desktop {
  padding: 20px;
  display: flex;
  gap: 25px;
  flex-direction: column;
  align-items: flex-start;
  flex-grow: 1;
}

.icon {
  width: 80px;
  text-align: center;
  color: white;
  text-shadow: 1px 1px 2px black;
  cursor: pointer;
  font-size: 11px;
  padding: 5px;
  border-radius: 3px;
  user-select: none;
}

.icon:hover {
  background-color: rgba(11, 97, 230, 0.4);
  border: 1px dotted rgba(255, 255, 255, 0.7);
}

.icon img {
  width: 32px;
  height: 32px;
  display: block;
  margin: 0 auto 5px auto;
}

/* Fönster & Flikar */
.window-container {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 540px;
  max-width: 92vw;
}

.content-tab {
  display: none;
}

.content-tab.active {
  display: block;
}

/* Aktivitetsfält */
.taskbar {
  height: 30px;
  background: linear-gradient(to bottom, #245edb 0%, #3f8cf3 9%, #245edb 18%, #245edb 92%, #1941a5 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #00227b;
  position: relative;
  z-index: 1000;
}

.start-button {
  background: linear-gradient(to bottom, #388038 0%, #63b363 12%, #388038 24%, #285e28 100%);
  border: 1px solid #1c411c;
  border-radius: 0 8px 8px 0;
  color: white;
  font-weight: bold;
  font-style: italic;
  font-size: 14px;
  padding: 3px 15px 3px 10px;
  cursor: pointer;
  box-shadow: inset 1px 1px 1px rgba(255,255,255,0.4);
  user-select: none;
}

.start-button:hover {
  background: linear-gradient(to bottom, #449c44 0%, #78cb78 12%, #449c44 24%, #285e28 100%);
}

.system-tray {
  background: linear-gradient(to bottom, #0c8aea 0%, #0972c4 100%);
  border-left: 1px solid #09599a;
  color: white;
  padding: 0 12px;
  height: 100%;
  display: flex;
  align-items: center;
  font-size: 11px;
  cursor: pointer;
}

.system-tray:hover {
  background: #0972c4;
}

/* Startmeny Design */
.start-menu {
  display: none;
  position: absolute;
  bottom: 30px;
  left: 0;
  width: 320px;
  background: white;
  border: 2px solid #0053e1;
  border-radius: 5px 5px 0 0;
  box-shadow: 3px 3px 10px rgba(0,0,0,0.5);
  z-index: 2000;
  flex-direction: column;
}

.start-menu.open {
  display: flex;
}

.start-header {
  background: linear-gradient(to bottom, #1c52bd, #0a3690);
  color: white;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
}

.start-header img {
  width: 28px;
  height: 28px;
  border-radius: 3px;
  border: 1px solid white;
}

.start-body {
  display: flex;
  background: white;
}

.start-left {
  width: 50%;
  border-right: 1px solid #d3d3d3;
  padding: 5px 0;
}

.start-right {
  width: 50%;
  background: #d3e5fa;
  padding: 5px 0;
}

.start-item {
  padding: 6px 10px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #000;
}

.start-item:hover {
  background: #2f71cd;
  color: white;
}

.start-item img {
  width: 18px;
  height: 18px;
}

.start-footer {
  background: linear-gradient(to bottom, #4282d6, #215ecf);
  padding: 6px 10px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Kalender Pop-up */
.calendar-popup {
  display: none;
  position: absolute;
  bottom: 35px;
  right: 10px;
  z-index: 2000;
  width: 250px;
}

.calendar-popup.open {
  display: block;
}

.cal-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-weight: bold;
  font-size: 12px;
}

.cal-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 11px;
}

.cal-table th {
  color: #555;
  padding-bottom: 4px;
}

.cal-table td {
  padding: 4px 2px;
}

.cal-table td.today {
  background: #0a246a;
  color: white;
  border-radius: 2px;
  font-weight: bold;
}