/* =========================================================
   EARLY DESKTOP / SYSTEM UI RETRO AESTHETIC
   No raster images, no photo backgrounds, chunky borders only
   ========================================================= */

:root {
  --ui-bg: #008080; /* Classic Teal Desktop */
  --win-face: #c0c0c0; /* Standard 3D Window Grey */
  --win-highlight: #ffffff;
  --win-shadow: #808080;
  --win-dark-shadow: #000000;
  --win-text: #000000;
  --titlebar-blue: #000080; /* Classic Navy Title */
  --titlebar-blue-gradient: #1084d0;
  --titlebar-text: #ffffff;
  --btn-face: #c0c0c0;
  --field-bg: #ffffff;
  --navy-accent: #000080;
  --status-bar-bg: #c0c0c0;
  --font-system: "Tahoma", "MS Sans Serif", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Lucida Console", "Courier New", monospace;
}

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

body {
  background-color: var(--ui-bg);
  color: var(--win-text);
  font-family: var(--font-system);
  font-size: 13px;
  line-height: 1.4;
  min-height: 100vh;
  padding: 12px;
  -webkit-font-smoothing: antialiased;
}

/* Desktop Canvas Layout */
.desktop-viewport {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: calc(100vh - 24px);
}

/* Main Window Container: Outset Bevel */
.window-container {
  width: 100%;
  max-width: 980px;
  background-color: var(--win-face);
  border-top: 3px solid var(--win-highlight);
  border-left: 3px solid var(--win-highlight);
  border-right: 3px solid var(--win-dark-shadow);
  border-bottom: 3px solid var(--win-dark-shadow);
  box-shadow: 2px 2px 0 var(--win-shadow);
  display: flex;
  flex-direction: column;
}

/* 1. Window Titlebar */
.window-titlebar {
  background: linear-gradient(90deg, var(--titlebar-blue), var(--titlebar-blue-gradient));
  color: var(--titlebar-text);
  padding: 4px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.window-title {
  font-weight: bold;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.3px;
}

.app-icon {
  font-size: 14px;
}

.window-controls {
  display: flex;
  gap: 3px;
}

.win-btn {
  width: 18px;
  height: 16px;
  background-color: var(--btn-face);
  border-top: 1px solid var(--win-highlight);
  border-left: 1px solid var(--win-highlight);
  border-right: 1px solid var(--win-dark-shadow);
  border-bottom: 1px solid var(--win-dark-shadow);
  font-family: var(--font-system);
  font-size: 10px;
  font-weight: bold;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.win-btn:active {
  border-top: 1px solid var(--win-dark-shadow);
  border-left: 1px solid var(--win-dark-shadow);
  border-right: 1px solid var(--win-highlight);
  border-bottom: 1px solid var(--win-highlight);
  padding-top: 1px;
  padding-left: 1px;
}

/* 2. Menu Toolbar */
.window-menu {
  background-color: var(--win-face);
  border-bottom: 1px solid var(--win-shadow);
  padding: 2px 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.menu-cmd {
  background: none;
  border: 1px solid transparent;
  font-family: var(--font-system);
  font-size: 12px;
  padding: 3px 8px;
  cursor: pointer;
  color: #000;
}

.menu-cmd:hover {
  background-color: #000080;
  color: #ffffff;
}

/* Secondary Status & Action Strip */
.window-toolbar {
  background-color: #e0ded8;
  border-top: 1px solid var(--win-highlight);
  border-bottom: 2px solid var(--win-shadow);
  padding: 6px 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
}

.tool-btn {
  text-decoration: none;
  color: #000;
  font-weight: bold;
  background-color: var(--btn-face);
  padding: 3px 8px;
  border-top: 2px solid var(--win-highlight);
  border-left: 2px solid var(--win-highlight);
  border-right: 2px solid var(--win-dark-shadow);
  border-bottom: 2px solid var(--win-dark-shadow);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tool-btn:hover {
  background-color: #d8d8d8;
}

.tool-btn:active {
  border-top: 2px solid var(--win-dark-shadow);
  border-left: 2px solid var(--win-dark-shadow);
  border-right: 2px solid var(--win-highlight);
  border-bottom: 2px solid var(--win-highlight);
}

.tool-sep {
  color: #888;
}

.tool-status-tag {
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 11px;
  color: #005020;
  background: #d4ebd8;
  padding: 2px 5px;
  border: 1px solid #75a47e;
}

/* 3. Inset Main Panel (Work Area) */
.window-body-inset {
  margin: 8px;
  padding: 12px;
  background-color: #dcd8cf;
  border-top: 2px solid var(--win-shadow);
  border-left: 2px solid var(--win-shadow);
  border-right: 2px solid var(--win-highlight);
  border-bottom: 2px solid var(--win-highlight);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Hero Dialog Banner */
.hero-dialog {
  background-color: #ece8de;
  border: 2px solid #84827d;
  padding: 16px;
}

.dialog-header-banner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.dialog-symbol {
  min-width: 44px;
  height: 44px;
  background-color: #000080;
  color: #ffffff;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 2px solid #5577ff;
  border-left: 2px solid #5577ff;
  border-right: 2px solid #000033;
  border-bottom: 2px solid #000033;
}

.headline {
  font-size: 20px;
  font-weight: bold;
  color: #000044;
  margin-bottom: 8px;
  line-height: 1.25;
}

.lead-text {
  font-size: 14px;
  color: #222222;
}

.dialog-action-row {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed #a09d96;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Classic UI Chunky Buttons */
.sys-btn {
  background-color: var(--btn-face);
  border-top: 2px solid var(--win-highlight);
  border-left: 2px solid var(--win-highlight);
  border-right: 2px solid var(--win-dark-shadow);
  border-bottom: 2px solid var(--win-dark-shadow);
  padding: 6px 14px;
  font-family: var(--font-system);
  font-size: 13px;
  font-weight: bold;
  color: #000000;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  outline: 1px dotted transparent;
}

.sys-btn:focus {
  outline: 1px dotted #000000;
  outline-offset: -4px;
}

.sys-btn:hover {
  background-color: #d0cdc5;
}

.sys-btn:active {
  border-top: 2px solid var(--win-dark-shadow);
  border-left: 2px solid var(--win-dark-shadow);
  border-right: 2px solid var(--win-highlight);
  border-bottom: 2px solid var(--win-highlight);
  padding-top: 7px;
  padding-left: 15px;
}

.sys-btn-primary {
  background-color: #000080;
  color: #ffffff;
  border-top: 2px solid #6b8eff;
  border-left: 2px solid #6b8eff;
  border-right: 2px solid #000030;
  border-bottom: 2px solid #000030;
}

.sys-btn-primary:hover {
  background-color: #0808a0;
}

.sys-btn-secondary {
  background-color: #1a5632;
  color: #ffffff;
  border-top: 2px solid #489e67;
  border-left: 2px solid #489e67;
  border-right: 2px solid #0c2b18;
  border-bottom: 2px solid #0c2b18;
}

.sys-btn-secondary:hover {
  background-color: #216d40;
}

.quick-facts-box {
  margin-top: 14px;
  background-color: #ffffff;
  padding: 10px 12px;
  border: 1px solid #777;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fact-item {
  font-size: 12px;
  color: #111;
}

.fact-mark {
  color: #006600;
  font-weight: bold;
  font-size: 13px;
  margin-right: 4px;
}

/* 4. Nested Inset Panels & Fieldsets */
.sys-fieldset {
  border: 2px groove #ffffff;
  padding: 12px;
  background-color: #ece8de;
}

.sys-legend {
  font-weight: bold;
  padding: 0 6px;
  color: #000080;
  font-size: 13px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
}

.service-card-inset {
  background: #f4f0e6;
  border-top: 2px solid var(--win-shadow);
  border-left: 2px solid var(--win-shadow);
  border-right: 2px solid var(--win-highlight);
  border-bottom: 2px solid var(--win-highlight);
  padding: 10px;
}

.card-titlebar {
  background: #194d75;
  color: #fff;
  padding: 4px 6px;
  font-size: 12px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-sq {
  background: #ffcc00;
  color: #000;
  font-weight: bold;
  font-size: 10px;
  padding: 1px 4px;
  font-family: var(--font-mono);
}

.card-content p {
  font-size: 12px;
  margin-bottom: 8px;
  color: #222;
}

.card-checklist {
  list-style: none;
  padding-left: 0;
  font-size: 12px;
}

.card-checklist li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 4px;
  color: #333;
}

.card-checklist li::before {
  content: "▪";
  position: absolute;
  left: 0;
  color: #000080;
}

/* Ports Section */
.ports-flex-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.ports-list-pane {
  flex: 2;
  min-width: 280px;
  background: #fff;
  border: 1px solid #777;
  padding: 10px;
}

.port-row {
  padding: 5px 0;
  border-bottom: 1px dotted #ccc;
  font-size: 12px;
}

.port-row strong {
  color: #000080;
}

.ports-note {
  margin-top: 8px;
  font-size: 11px;
  font-style: italic;
  color: #555;
}

.ports-diag-box {
  flex: 1;
  min-width: 220px;
  background: #333;
  color: #00ff00;
  font-family: var(--font-mono);
  padding: 12px;
  border: 2px solid #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.diag-box-head {
  color: #ffff00;
  font-size: 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid #555;
  padding-bottom: 4px;
  width: 100%;
}

.response-timer {
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 1px;
  margin: 8px 0;
  color: #00ff66;
}

.small-sys {
  font-size: 11px;
  color: #aaa;
}

/* Booking Form Inset */
.sys-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.full-col {
  grid-column: 1 / -1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sys-label {
  font-weight: bold;
  font-size: 12px;
  color: #000;
}

.sys-input,
.sys-select,
.sys-textarea {
  width: 100%;
  font-family: var(--font-system);
  font-size: 12px;
  padding: 5px 6px;
  background-color: var(--field-bg);
  color: #000;
  border-top: 2px solid var(--win-shadow);
  border-left: 2px solid var(--win-shadow);
  border-right: 2px solid var(--win-highlight);
  border-bottom: 2px solid var(--win-highlight);
  border-radius: 0;
  outline: none;
}

.sys-input:focus,
.sys-select:focus,
.sys-textarea:focus {
  background-color: #ffffe8;
  border-color: #000;
}

.form-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.form-status-msg {
  font-weight: bold;
  font-size: 12px;
}

.form-status-msg.success {
  color: #007700;
}

/* Contact Info */
.contact-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-box-left,
.contact-box-right {
  background: #ffffff;
  border: 1px solid #777;
  padding: 10px;
  font-size: 12px;
}

.contact-box-left p {
  margin-bottom: 8px;
}

.link-sys {
  color: #000080;
  font-weight: bold;
  text-decoration: underline;
}

.social-links-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.soc-link {
  color: #000080;
  text-decoration: underline;
  font-weight: bold;
}

.soc-link:hover {
  background: #000080;
  color: #ffffff;
  text-decoration: none;
}

/* 5. Status Bar Footer */
.window-statusbar {
  background-color: var(--status-bar-bg);
  border-top: 1px solid var(--win-highlight);
  padding: 2px 4px;
  display: flex;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  overflow-x: auto;
}

.status-cell {
  background-color: var(--win-face);
  border-top: 1px solid var(--win-shadow);
  border-left: 1px solid var(--win-shadow);
  border-right: 1px solid var(--win-highlight);
  border-bottom: 1px solid var(--win-highlight);
  padding: 2px 6px;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.status-fixed { width: 55px; font-weight: bold; }
.status-address { flex: 2; }
.status-phone { flex: 1.5; font-weight: bold; }
.status-privacy { flex: 1.5; }
.status-time { width: 60px; justify-content: center; }

.link-btn {
  background: none;
  border: none;
  color: #000080;
  text-decoration: underline;
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  padding: 0;
}

.link-btn:hover {
  color: #ff0000;
}

/* System Modal Window (Privacy Policy) */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 14px;
}

.modal-dialog {
  max-width: 600px;
  width: 100%;
  box-shadow: 4px 4px 0 #000;
}

.modal-content-box {
  background-color: #fff;
  max-height: 70vh;
  overflow-y: auto;
  font-size: 12px;
  padding: 16px;
}

.modal-content-box h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.modal-content-box h4 {
  font-size: 13px;
  margin-top: 12px;
  margin-bottom: 4px;
  color: #000080;
}

.modal-content-box p {
  margin-bottom: 8px;
  line-height: 1.4;
}

.sys-hr {
  border: 0;
  border-top: 1px solid #888;
  border-bottom: 1px solid #fff;
  margin: 10px 0;
}

.modal-buttons {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  body {
    padding: 4px;
  }
  
  .window-container {
    border-width: 2px;
  }

  .window-title {
    font-size: 11px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-columns {
    grid-template-columns: 1fr;
  }

  .headline {
    font-size: 16px;
  }

  .dialog-symbol {
    display: none;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .status-cell {
    font-size: 10px;
  }
}
