/* Windows 98 / Retro OS Theme */
@import url('https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400;700&display=swap');

:root {
  --w-bg: #008080; /* Teal Desktop */
  --w-surface: #c0c0c0; /* Gray Window */
  --w-title: #000080; /* Dark Blue */
  --w-text: #000000;
  --font-os: 'Tahoma', 'MS Sans Serif', 'Arial', sans-serif;
  --font-pixel: 'Pixelify Sans', cursive;
  
  --b-outset: 2px solid;
  --b-outset-color: #dfdfdf #000 #000 #dfdfdf;
  --b-inset: 2px solid;
  --b-inset-color: #808080 #fff #fff #808080;
}

body {
  margin: 0; padding: 0;
  background-color: var(--w-bg);
  color: var(--w-text);
  font-family: var(--font-os);
  overflow-x: hidden;
  font-size: 14px;
}

/* Typography */
.w-title-text {
  font-family: var(--font-os);
  font-weight: bold;
  font-size: 14px;
  color: #fff;
  letter-spacing: 0.5px;
  margin: 0;
}
h2.w-heading {
  font-family: var(--font-os);
  font-weight: bold;
  font-size: 16px;
  margin: 0 0 10px 0;
}

/* Base Layout Container */
.w-container {
  max-width: 600px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: transparent;
  padding: 20px 10px 60px 10px;
}

/* Windows */
.w-window {
  background: var(--w-surface);
  border: var(--b-outset);
  border-color: var(--b-outset-color);
  margin-bottom: 25px;
  padding: 2px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.w-titlebar {
  background: var(--w-title);
  padding: 3px 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}
.w-titlebar-icon {
  display: flex;
  align-items: center;
  gap: 5px;
}
.w-titlebar-icon i {
  color: #fff;
}

.w-close {
  background: var(--w-surface);
  border: var(--b-outset);
  border-color: var(--b-outset-color);
  color: #000;
  font-weight: bold;
  font-size: 10px;
  width: 16px; height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  outline: none;
}
.w-close:active {
  border-color: #000 #dfdfdf #dfdfdf #000;
  padding-top: 2px; padding-left: 2px;
}

.w-content {
  padding: 10px;
}

/* Cover Overlay */
.w-cover {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--w-bg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.5s ease;
  padding: 20px;
}

.w-cover.opened {
  transform: translateY(-120%);
}

.w-login {
  background: var(--w-surface);
  border: var(--b-outset);
  border-color: var(--b-outset-color);
  padding: 2px;
  width: 100%;
  max-width: 350px;
}

/* Buttons */
.w-btn {
  background: var(--w-surface);
  color: var(--w-text);
  border: var(--b-outset);
  border-color: var(--b-outset-color);
  padding: 5px 15px;
  font-family: var(--font-os);
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  outline: none;
}
.w-btn:active {
  border-color: #000 #dfdfdf #dfdfdf #000;
  padding: 6px 14px 4px 16px; /* Shift content */
}
.w-btn:disabled {
  color: #808080;
  text-shadow: 1px 1px 0 #fff;
}

/* Inset Boxes (Fields, Photos) */
.w-inset {
  border: var(--b-inset);
  border-color: var(--b-inset-color);
  background: #fff;
  padding: 5px;
}
.w-inset img {
  display: block;
  width: 100%;
  height: auto;
}
.w-inset-gray {
  border: var(--b-inset);
  border-color: var(--b-inset-color);
  background: var(--w-surface);
  padding: 10px;
}

/* Countdown / Progress Bar */
.w-progress-container {
  border: var(--b-inset);
  border-color: var(--b-inset-color);
  background: #fff;
  height: 20px;
  position: relative;
  margin-top: 10px;
  padding: 2px;
  display: flex;
  gap: 2px;
}
.w-progress-block {
  background: #000080;
  height: 100%;
  width: 12px;
}

/* Forms */
.w-form label {
  display: block;
  font-size: 13px;
  margin-bottom: 3px;
}
.w-form input, .w-form select, .w-form textarea {
  width: 100%;
  padding: 4px;
  border: var(--b-inset);
  border-color: var(--b-inset-color);
  background: #fff;
  font-family: var(--font-os);
  font-size: 13px;
  margin-bottom: 10px;
  outline: none;
}

.guestbook-item {
  border-bottom: 1px dashed #808080;
  padding: 8px 0;
}
.guestbook-item h4 {
  margin: 0 0 3px 0;
  font-size: 13px;
  color: #000080;
}
.guestbook-item p {
  margin: 0;
  font-size: 13px;
}

/* Gallery Grid */
.w-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.w-gallery .w-inset {
  padding: 2px;
  background: #c0c0c0;
}
.w-gallery img {
  width: 100%; height: 120px;
  object-fit: cover;
}

/* Taskbar */
.w-taskbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--w-surface);
  border-top: 2px solid #dfdfdf;
  height: 35px;
  display: flex;
  align-items: center;
  padding: 0 5px;
  z-index: 10000;
  justify-content: space-between;
}
.w-start-btn {
  background: var(--w-surface);
  border: var(--b-outset);
  border-color: var(--b-outset-color);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 5px;
  font-weight: bold;
  cursor: pointer;
}
.w-start-btn:active {
  border-color: #000 #dfdfdf #dfdfdf #000;
  padding: 3px 4px 1px 6px;
}
.w-start-btn img {
  width: 16px; height: 16px;
}
.w-tray {
  border: var(--b-inset);
  border-color: var(--b-inset-color);
  padding: 2px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.w-tray i { cursor: pointer; }

/* Tabs (for Course/Events if needed) */
.w-tabs {
  display: flex;
  margin-bottom: -2px;
  z-index: 2;
  position: relative;
}
.w-tab {
  background: var(--w-surface);
  border: var(--b-outset);
  border-color: var(--b-outset-color);
  border-bottom: none;
  padding: 4px 10px;
  cursor: pointer;
  margin-right: 2px;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}
.w-tab.active {
  padding-bottom: 6px;
  margin-top: -2px;
}
.w-tab-content {
  border: var(--b-outset);
  border-color: var(--b-outset-color);
  padding: 15px;
  background: var(--w-surface);
  display: none;
}
.w-tab-content.active { display: block; }
