/* ==========================================================================
   FLIGHTCASE REPAIR MACHELEN - SYSTEM UI NOSTALGIA
   EXACT PALETTE RESTRICTIONS APPLIED:
   - chrome gray: #B8C4C4
   - window beige: #F0EDE4
   - teal: #3D7A7A
   - button: #008000
   - ink: #000000
   TYPOGRAPHY: Headings: Verdana | Body: Arial | Status bar: Courier New
   ========================================================================== */

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

html {
  font-size: 14px;
  background-color: #3D7A7A;
  color: #000000;
}

body {
  font-family: Arial, sans-serif;
  background-color: #3D7A7A;
  color: #000000;
  line-height: 1.4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 12px;
}

h1, h2, h3, h4 {
  font-family: Verdana, sans-serif;
  font-weight: bold;
  color: #000000;
}

/* Desktop Canvas & Main Window Shell */
.desktop-canvas {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}

.window-frame {
  background-color: #B8C4C4;
  border: 3px solid #000000;
  box-shadow: 4px 4px 0 #000000;
  display: flex;
  flex-direction: column;
}

/* 1. Fake Window Title Bar */
.window-titlebar {
  background-color: #3D7A7A;
  color: #F0EDE4;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #000000;
  user-select: none;
}

.titlebar-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Verdana, sans-serif;
  font-weight: bold;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.title-symbol {
  color: #F0EDE4;
  font-size: 0.8rem;
}

.titlebar-controls {
  display: flex;
  gap: 4px;
}

.control-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: #B8C4C4;
  color: #000000;
  border: 2px solid #000000;
  font-family: Verdana, sans-serif;
  font-size: 0.75rem;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  box-shadow: 1px 1px 0 #000000;
}

.control-btn:hover {
  background-color: #F0EDE4;
}

/* 2. Menu / Toolbar Strip with 4 Text Commands */
.toolbar-strip {
  background-color: #B8C4C4;
  border-bottom: 2px solid #000000;
  padding: 4px 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.toolbar-item {
  background-color: #B8C4C4;
  color: #000000;
  border: 2px solid #000000;
  font-family: Verdana, sans-serif;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 4px 10px;
  cursor: pointer;
  box-shadow: 1px 1px 0 #000000;
}

.toolbar-item:hover,
.toolbar-item:focus {
  background-color: #F0EDE4;
  outline: none;
}

/* Window Body Container */
.window-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Classic Inset Box Motif */
.inset-box {
  background-color: #F0EDE4;
  border: 2px solid #000000;
  box-shadow: inset 2px 2px 0 #B8C4C4;
}

/* 3. Inset Main Panel */
.dialog-panel {
  padding: 16px;
}

.dialog-header {
  border-bottom: 2px solid #3D7A7A;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.dialog-title {
  font-size: 1.35rem;
  line-height: 1.25;
  color: #000000;
  text-transform: uppercase;
}

.dialog-sub {
  display: block;
  font-family: Verdana, sans-serif;
  font-size: 0.75rem;
  font-weight: bold;
  color: #3D7A7A;
  margin-top: 4px;
}

.lead-text {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.sub-text {
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Chunky Buttons */
.btn-primary {
  background-color: #008000;
  color: #F0EDE4;
  border: 3px solid #000000;
  font-family: Verdana, sans-serif;
  font-size: 0.85rem;
  font-weight: bold;
  padding: 8px 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  box-shadow: 2px 2px 0 #000000;
  text-align: center;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #3D7A7A;
  color: #F0EDE4;
  outline: none;
}

.btn-secondary {
  background-color: #B8C4C4;
  color: #000000;
  border: 3px solid #000000;
  font-family: Verdana, sans-serif;
  font-size: 0.85rem;
  font-weight: bold;
  padding: 8px 16px;
  cursor: pointer;
  display: inline-block;
  box-shadow: 2px 2px 0 #000000;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: #F0EDE4;
  outline: none;
}

/* 4. Four Nested Inset Panels */
.panel-grid-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.grid-heading-bar {
  background-color: #3D7A7A;
  padding: 4px 8px;
  border: 2px solid #000000;
}

.section-label {
  font-size: 0.85rem;
  color: #F0EDE4;
  letter-spacing: 0.5px;
}

.four-panels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.inset-panel-card {
  display: flex;
  flex-direction: column;
}

.card-header-bar {
  background-color: #B8C4C4;
  border-bottom: 2px solid #000000;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-idx {
  background-color: #000000;
  color: #F0EDE4;
  font-family: Verdana, sans-serif;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 2px 5px;
}

.panel-title {
  font-size: 0.95rem;
  color: #000000;
}

.card-body {
  padding: 10px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-body p {
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.spec-list {
  list-style-type: none;
  font-size: 0.82rem;
  border-top: 1px solid #B8C4C4;
  padding-top: 6px;
}

.spec-list li {
  padding: 2px 0;
  display: flex;
  align-items: center;
}

.spec-list li::before {
  content: "▶ ";
  color: #3D7A7A;
  margin-right: 5px;
  font-size: 0.65rem;
}

/* Info Band */
.info-band {
  padding: 12px;
}

.info-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.info-col {
  border: 1px solid #000000;
  padding: 8px;
  background-color: #B8C4C4;
}

.info-sub {
  font-size: 0.8rem;
  margin-bottom: 4px;
  color: #000000;
  text-decoration: underline;
}

.info-col p {
  font-size: 0.82rem;
}

.social-links-block {
  margin-top: 4px;
}

.social-link {
  color: #000000;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.8rem;
  display: inline-block;
  margin-bottom: 2px;
}

.social-link:hover {
  text-decoration: underline;
  background-color: #F0EDE4;
}

/* 5. Status Bar Footer (Courier New) */
.window-statusbar {
  background-color: #B8C4C4;
  border-top: 2px solid #000000;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.8rem;
  color: #000000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 4px 6px;
  gap: 6px;
}

.status-cell {
  border: 1px solid #000000;
  padding: 3px 8px;
  background-color: #F0EDE4;
  white-space: nowrap;
}

.status-base {
  flex-grow: 2;
}

.status-phone {
  flex-grow: 1;
}

.status-ready {
  flex-grow: 1;
  font-weight: bold;
}

.status-policy {
  flex-grow: 0;
}

.status-indicator {
  color: #008000;
}

.status-link {
  color: #000000;
  font-weight: bold;
  text-decoration: none;
}

.status-link:hover {
  text-decoration: underline;
}

.status-btn {
  background: transparent;
  border: none;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.8rem;
  font-weight: bold;
  color: #000000;
  cursor: pointer;
  text-decoration: underline;
}

.status-btn:hover {
  color: #3D7A7A;
}

/* Modals */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000000;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-window {
  background-color: #B8C4C4;
  border: 3px solid #000000;
  box-shadow: 6px 6px 0 #000000;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-titlebar {
  background-color: #3D7A7A;
  color: #F0EDE4;
}

.modal-body {
  padding: 16px;
  overflow-y: auto;
  max-height: calc(90vh - 40px);
}

.modal-body h2 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.modal-body h3 {
  margin-top: 12px;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.modal-body p {
  margin-bottom: 8px;
  font-size: 0.85rem;
}

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

/* Form elements */
.dispatch-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

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

.form-group label {
  font-family: Verdana, sans-serif;
  font-size: 0.8rem;
  font-weight: bold;
}

.form-input {
  background-color: #F0EDE4;
  border: 2px solid #000000;
  color: #000000;
  padding: 6px 8px;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
}

.form-input:focus {
  outline: 2px solid #3D7A7A;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.dispatch-feedback {
  margin-top: 14px;
  padding: 10px;
  border: 2px solid #000000;
  background-color: #B8C4C4;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.85rem;
}

/* Responsiveness */
@media (max-width: 768px) {
  .four-panels-grid {
    grid-template-columns: 1fr;
  }
  .info-columns {
    grid-template-columns: 1fr;
  }
  .window-statusbar {
    flex-direction: column;
    align-items: stretch;
  }
  .status-cell {
    white-space: normal;
    text-align: left;
  }
  .button-row {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
  }
}