/* ══════════════════════════════════════════════ */
/*   wOS Medical System — Tema BeOS-like        */
/* ══════════════════════════════════════════════ */

:root {
  --be-yellow: #F0A000;
  --be-yellow-light: #FFB830;
  --be-yellow-dark: #C08000;
  --be-gray: #BDBDBD;
  --be-gray-light: #CACCD1;
  --be-gray-dark: #A9A9A9;
  --be-red: #E83030;
  --be-green: #30C030;
  --shadow-window: 0 4px 7px rgba(0,0,0,0.4);
  --shadow-button: 0 4px 7px rgba(0,0,0,0.2);
  --deskbar-width: 160px;
}

* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family: "Swis721 BT", "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  background-color: #6495ED;
  height: 100vh; overflow: hidden;
  display: flex;
}

/* ═══════ DESKBAR ═══════ */
#deskbar {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: var(--deskbar-width);
  background: linear-gradient(#d7b25a, #b8802a);
  box-shadow: -2px 0 10px rgba(0,0,0,0.35);
  display: flex; flex-direction: column;
  z-index: 10000; padding: 5px;
  font-size: 11px; color: #000;
}
#deskbar .brand {
  padding: 8px; font-size: 14px; font-weight: bold;
  text-align: center; border-bottom: 1px solid rgba(0,0,0,0.2);
}
#deskbar .clock {
  text-align: center; font-weight: bold; font-size: 1.2rem;
  padding: 6px; font-family: "Courier New", monospace;
}
#deskbar button {
  width: 100%; padding: 6px 8px; font-size: 10px; text-align: left;
  background: #CACCD1; border: 2px groove lightgray; border-radius: 2px;
  cursor: pointer; margin: 2px 0;
  box-shadow: var(--shadow-button);
}
#deskbar button:hover { border-color: #7391DE; background-color: #D6F1EF; }
#deskbar .taskbar-inner {
  flex: 1; overflow-y: auto; padding: 4px 0;
  border-top: 1px solid rgba(0,0,0,0.2); margin-top: 6px;
}
#deskbar .task {
  padding: 4px 6px; font-size: 9px; background: #ccc;
  border: 1px solid #999; border-radius: 2px; cursor: pointer; margin: 1px 0;
}
#deskbar .badge {
  display: inline-block; background: var(--be-red); color: #fff;
  border-radius: 6px; padding: 0 4px; font-size: 8px; margin-left: 3px;
}

/* ═══════ ÁREA PRINCIPAL ═══════ */
#desktop {
  flex: 1; margin-right: var(--deskbar-width);
  position: relative; height: 100vh; overflow-y: auto;
}

/* ═══════ JANELA BEOS ═══════ */
.beos-window {
  position: absolute;
  display: flex; flex-direction: column;
  background: #BDBDBD;
  border: 1px solid gray;
  box-shadow: var(--shadow-window);
}
.beos-window > .titlebar {
  display: flex; align-items: center;
  background: orange;
  border: 1px solid black;
  height: 20px;
  font-size: 11px; color: #000; font-weight: bold;
  cursor: move; flex-shrink: 0;
}
.beos-window > .titlebar .title-text { flex: 1; text-align: center; padding: 0 6px; }
.win-btn {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.3); cursor: pointer;
  box-shadow: inset 1px 1px 2px rgba(255,255,255,0.4);
  flex-shrink: 0; margin: 0 2px;
}
.win-btn.close { background: #FF5A5A; }
.win-btn.minimize { background: #FFD900; }
.win-btn.maximize { background: #30C030; }
.beos-window > .content { flex: 1; background: #fff; padding: 10px; overflow: auto; font-size: 11px; }

/* ═══════ LANDING PAGE ═══════ */
.landing-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10,10,30,0.95);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; z-index: 500;
  text-align: center; color: #E0E0E0; padding: 30px;
}
.landing-overlay h1 {
  font-size: 2rem; margin-bottom: 6px;
  background: linear-gradient(90deg, #00BFFF, #FFD700);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.landing-sections {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px; max-width: 750px; margin: 16px 0;
}
.landing-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,215,0,0.3);
  border-radius: 12px; padding: 14px; cursor: pointer; color: #FFD700;
  transition: all 0.3s; text-align: center; font-size: 0.8rem;
}
.landing-card:hover { border-color: #FFD700; transform: translateY(-3px); }
.landing-card .icon { font-size: 1.5rem; margin-bottom: 4px; }

/* ═══════ MODAL ═══════ */
.modal { display:none; position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.8); z-index:30000; align-items:center; justify-content:center; }
.modal.active { display:flex; }
.modal-content { background: #BDBDBD; border: 2px solid var(--be-yellow-dark); border-radius: 4px; padding: 20px; max-width: 360px; width: 90%; }
.modal-content input { width: 100%; padding: 6px; margin: 6px 0; border: 1px solid #999; border-radius: 2px; font-size: 11px; }
.modal-content .btn { width: 100%; padding: 8px; margin-top: 8px; background: #CACCD1; border: 2px groove lightgray; border-radius: 2px; font-weight: bold; cursor: pointer; }
.modal-content .btn:hover { border-color: #7391DE; background: #D6F1EF; }

/* ═══════ BOTÃO PIX ═══════ */
.pix-btn {
  position: fixed; bottom: 16px; left: 16px; z-index: 600;
  background: #30C030; color: #fff; border: none;
  border-radius: 50%; width: 48px; height: 48px;
  font-size: 1.2rem; cursor: pointer;
  box-shadow: 0 4px 7px rgba(0,0,0,0.4);
}
.pix-btn:hover { background: #20A020; }

/* ═══════ PORTAL PAGES ═══════ */
.portal-page {
  padding: 20px; color: #000;
}
.portal-page h2 {
  font-size: 1.3rem; margin-bottom: 12px;
  color: var(--be-yellow-dark);
}
.portal-card {
  background: #fff; border: 1px solid #ccc;
  border-radius: 8px; padding: 16px; margin: 8px 0;
  box-shadow: var(--shadow-button);
}
.portal-card h3 { font-size: 1rem; margin-bottom: 4px; }
.portal-card p { font-size: 0.85rem; color: #666; }
