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

body {
  font-family: Arial, sans-serif;
  overflow: hidden;
}

/* ========== WELCOME SCREEN ========== */
#welcome-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.basketball-icon {
  font-size: 80px;
  margin-bottom: 20px;
}

.boot-clock {
  font-family: 'Courier New', monospace;
  color: #fff;
  font-size: 24px;
  margin-bottom: 14px;
}

.boot-instruction {
  font-family: 'Courier New', monospace;
  color: #fff;
  font-size: 18px;
  margin-bottom: 22px;
  letter-spacing: 0.05em;
}

h1 {
  color: #fff;
  font-size: 64px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.enter-button {
  padding: 15px 40px;
  font-size: 18px;
  color: #ff6b35;
  background: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.2s;
}

.enter-button:hover {
  transform: scale(1.05);
}

/* ========== DESKTOP ========== */
#desktop {
  display: none;
  width: 100%;
  height: 100vh;
  background: url('https://img.freepik.com/free-photo/low-angle-basketball-asphalt_23-2148239415.jpg') center/cover no-repeat;
  position: relative;
}

/* Subtle dark overlay so icons are readable */
#desktop::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

/* ========== TASKBAR RIGHT ========== */
.taskbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
  flex-shrink: 0;
  border-left: 1px solid rgba(255,255,255,0.1);
  margin-left: auto;
}

.taskbar-clock {
  font-size: 14px;
  font-weight: 500;
  color: white;
  white-space: nowrap;
}

/* ========== TASKBAR ========== */
.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  padding: 0 10px;
  z-index: 2000;
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.5);
}

.start-button {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: all 0.3s ease;
  margin-right: 10px;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
  flex-shrink: 0;
}

.start-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

.start-button.active {
  background: linear-gradient(135deg, #f7931e, #ff6b35);
}

.taskbar-apps {
  display: flex;
  gap: 8px;
  flex: 1;
  overflow-x: auto;
  padding: 0 10px;
  min-width: 0;
}

.taskbar-app {
  min-width: 160px;
  max-width: 200px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: white;
}

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

.taskbar-app.active {
  background: rgba(255, 107, 53, 0.3);
  border-color: #ff6b35;
}

.taskbar-app-icon {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.taskbar-app-title {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========== START MENU ========== */
.start-menu {
  position: fixed;
  bottom: 70px;
  left: 10px;
  width: 450px;
  max-height: 600px;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  display: none;
  z-index: 3000;
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

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

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

.start-menu-header {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.start-menu-user {
  color: white;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

.start-menu-subtitle {
  color: #999;
  font-size: 13px;
}

.start-menu-apps {
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
}

.start-menu-app {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.start-menu-app:hover {
  background: rgba(255, 107, 53, 0.2);
  border-color: #ff6b35;
  transform: translateY(-2px);
}

.start-menu-app-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  overflow: hidden;
}

.start-menu-app-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.start-menu-app-name {
  color: white;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

/* ========== DESKTOP ICONS ========== */
.desktop-icons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: flex-start;
  padding: 15px;
  gap: 12px;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  position: relative;
  z-index: 1;
}

.icon {
  width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.icon:hover { transform: scale(1.05); }

.icon-img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  margin-bottom: 8px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
}
.icon-label {
  color: white;
  font-size: 14px;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* ========== WINDOWS ========== */
.window {
  position: absolute;
  min-width: 400px;
  min-height: 300px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.4);
  display: none;
  overflow: hidden;
  z-index: 100;
  animation: windowOpen 0.3s ease;
}

@keyframes windowOpen {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

.window.open { display: flex; flex-direction: column; }
.window.minimized { display: none; }

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

.window-header {
  height: 45px;
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  cursor: move;
  user-select: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.window-title {
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.window-title img {
  width: 20px;
  height: 20px;
  object-fit: cover;
  border-radius: 3px;
}

.window-buttons { display: flex; gap: 8px; }

.window-button {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid rgba(0, 0, 0, 0.3);
}

.window-button:hover { transform: scale(1.2); filter: brightness(1.2); }
.close    { background: #ff5f56; }
.minimize { background: #ffbd2e; }
.maximize { background: #27c93f; }

.window-content {
  padding: 14px 16px;
  flex: 1;
  overflow-y: auto;
  background: linear-gradient(to bottom, #ffffff, #f8f9fa);
}

/* ========== PLAYER CARDS ========== */
.player-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.player-card {
  padding: 10px 12px;
  background: #f5f5f5;
  border-radius: 8px;
  border-left: 4px solid #ff6b35;
  transition: all 0.3s ease;
}

.player-card:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

.player-name  { font-size: 17px; font-weight: bold; color: #333; margin-bottom: 2px; }
.player-league { font-size: 11px; color: #ff6b35; font-weight: bold; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 1px; }
.player-stats { font-size: 13px; color: #555; margin-bottom: 4px; font-weight: 600; }
.player-info  { font-size: 14px; color: #666; line-height: 1.5; }

/* ========== ABOUT / JOURNEY / GOALS ========== */
.about-section { margin-bottom: 12px; }
.about-section h3 { color: #ff6b35; margin-bottom: 5px; font-size: 15px; }
.about-section p  { color: #666; line-height: 1.5; font-size: 13px; }
.about-section img {
  width: 100%;
  max-width: 600px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  margin-top: 10px;
  display: block;
}

/* ========== THEME TOGGLE ========== */
.theme-toggle {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: transform 0.2s;
}
.theme-toggle:hover { transform: scale(1.2); }

/* ========== NOTES APP ========== */
.notes-app {
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.notes-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}

.note-title-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  outline: none;
}
.note-title-input:focus { border-color: #ff6b35; }

.notes-toolbar-btns { display: flex; gap: 6px; }

.notes-btn {
  padding: 7px 12px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.new-btn    { background: #ff6b35; color: white; }
.save-btn   { background: #27ae60; color: white; }
.delete-btn { background: #e74c3c; color: white; }
.notes-btn:hover { filter: brightness(1.1); transform: scale(1.03); }

.notes-body { display: flex; flex: 1; overflow: hidden; }

.notes-list {
  width: 160px;
  border-right: 1px solid #e0e0e0;
  overflow-y: auto;
  flex-shrink: 0;
  background: #fafafa;
}

.note-item {
  padding: 10px 14px;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #333;
  transition: background 0.15s;
}
.note-item:hover  { background: #f0f0f0; }
.note-item.active { background: #fff3ee; border-left: 3px solid #ff6b35; color: #ff6b35; font-weight: 600; }

.note-textarea {
  flex: 1;
  border: none;
  outline: none;
  padding: 16px;
  font-size: 14px;
  line-height: 1.6;
  resize: none;
  font-family: Arial, sans-serif;
  background: white;
}

/* ========== CALENDAR APP ========== */
.calendar-app { background: #1a1a2e !important; padding: 0 !important; color: white; }

.cal-date-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.cal-date-label { color: white; font-size: 15px; font-weight: 600; }

.cal-date-chevron {
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 6px;
}

.cal-month-year { font-size: 17px; font-weight: bold; color: white; }

.cal-nav-group { display: flex; flex-direction: column; gap: 2px; }

.cal-nav {
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 28px;
  height: 22px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.cal-nav:hover { background: rgba(255,255,255,0.22); }

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 6px 14px 2px;
}
.cal-weekdays div { text-align: center; font-size: 12px; color: rgba(255,255,255,0.45); font-weight: 500; padding: 4px 0; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 4px 14px 14px;
  row-gap: 2px;
}

.cal-day {
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  cursor: pointer;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: background 0.15s;
}
.cal-day:hover:not(.empty):not(.today):not(.other-month) { background: rgba(255,255,255,0.12); }
.cal-day.empty,
.cal-day.other-month { color: rgba(255,255,255,0.2); cursor: default; }
.cal-day.today { background: #00bcd4; color: white; font-weight: bold; }

/* ========== LIGHT MODE ========== */
body.light-mode #desktop {
  background: url("https://img.freepik.com/free-photo/low-angle-basketball-asphalt_23-2148239415.jpg") center / cover no-repeat;
}
body.light-mode .taskbar-clock    { color: #222; }
body.light-mode .taskbar-right    { border-left-color: rgba(0,0,0,0.12); }
body.light-mode .taskbar          { background: rgba(240,240,240,0.95); border-top: 1px solid rgba(0,0,0,0.1); }
body.light-mode .start-menu       { background: rgba(250,250,250,0.97); border-color: rgba(0,0,0,0.1); }
body.light-mode .start-menu-user  { color: #222; }
body.light-mode .start-menu-subtitle { color: #666; }
body.light-mode .start-menu-app   { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); }
body.light-mode .start-menu-app:hover { background: rgba(255,107,53,0.12); border-color: #ff6b35; }
body.light-mode .start-menu-app-name  { color: #333; }
body.light-mode .taskbar-app      { background: rgba(0,0,0,0.07); border-color: rgba(0,0,0,0.12); color: #222; }
body.light-mode .taskbar-app.active   { background: rgba(128, 102, 92, 0.2); border-color: #ff6b35; }
body.light-mode .icon-label       { color: #222; text-shadow: none; }

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.05); }
::-webkit-scrollbar-thumb { background: linear-gradient(135deg, #ff6b35, #f7931e); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(135deg, #f7931e, #ff6b35); }