/* StudentOS Style Sheet - Simple student styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
  user-select: none;
}

body {
  background: #111;
  color: #fff;
  height: 100vh;
  overflow: hidden;
}

/* Top Menu */
#topbar {
  height: 26px;
  background: #2b2b2b;
  border-bottom: 2px solid #444;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px;
  font-size: 12px;
}

.topbtn {
  background: #444;
  color: #fff;
  border: 1px solid #777;
  padding: 1px 5px;
  font-size: 11px;
  cursor: pointer;
}
.navlink {
  cursor: pointer;
  padding: 2px 5px;
}
.navlink:hover {
  background: #444;
}

/* Desktop */
#desktop {
  position: absolute;
  top: 26px;
  left: 0;
  right: 0;
  bottom: 40px;
  background: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?w=1600') no-repeat center center;
  background-size: cover;
  overflow: hidden;
}

#watermark {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid #555;
  padding: 6px 10px;
  font-size: 11px;
  color: #aaa;
}

/* Right Widgets */
#sidebar {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 250px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.widgetbox {
  background: rgba(0, 0, 0, 0.75);
  border: 2px solid #555;
  padding: 8px;
  font-size: 12px;
}
.widgetbox legend {
  font-weight: bold;
  font-size: 11px;
  color: #00ffcc;
  padding: 0 4px;
}

.row {
  background: rgba(255, 255, 255, 0.08);
  padding: 4px;
  margin-bottom: 4px;
}
.c-blue { border-left: 4px solid blue; }
.c-purple { border-left: 4px solid purple; }
.c-orange { border-left: 4px solid orange; }

#memo {
  width: 100%;
  height: 60px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 12px;
  resize: none;
  outline: none;
  user-select: text;
}

#timerDisplay {
  font-size: 26px;
  font-weight: bold;
  font-family: Courier New, monospace;
  text-align: center;
  color: #ffcc00;
  margin: 4px 0;
}

/* Windows */
.window {
  position: absolute;
  background: #1e1e1e;
  border: 2px solid #777;
  display: none;
  flex-direction: column;
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.6);
  z-index: 10;
}

.winheader {
  height: 26px;
  background: #333;
  border-bottom: 2px solid #555;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6px;
  font-size: 11px;
  font-weight: bold;
  color: #fff;
  cursor: move;
}

.winbtn {
  background: #555;
  color: #fff;
  border: 1px solid #888;
  padding: 0 4px;
  font-size: 11px;
  cursor: pointer;
}
.winbtn:hover {
  background: #900;
}

.winbody {
  padding: 10px;
  overflow-y: auto;
  flex: 1;
  font-size: 12px;
  user-select: text;
}

/* Calculator Grid */
.calcgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}
.calcgrid button {
  background: #444;
  color: #fff;
  border: 1px solid #777;
  padding: 10px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}
.calcgrid button:hover {
  background: #666;
}

/* Buttons */
.smallbtn {
  background: #3b82f6;
  color: white;
  border: 1px solid #2563eb;
  padding: 3px 8px;
  font-size: 11px;
  cursor: pointer;
}
.smallbtn:hover {
  background: #1d4ed8;
}

/* Dock */
#dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: #222;
  border-top: 2px solid #444;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.dockbtn {
  background: #3a3a3a;
  color: #fff;
  border: 2px outset #666;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
}
.dockbtn:hover {
  background: #555;
}
.dockbtn:active {
  border-style: inset;
}

/* Blinking cursor for terminal & inputs */
@keyframes cursorBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.cursor-blink {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: #00ff00;
  vertical-align: middle;
  animation: cursorBlink 0.8s infinite;
  margin-left: 2px;
}

/* Make browser native carets prominently visible & blinking in inputs */
input, textarea {
  caret-color: #00ff00 !important;
}

