/* ================================================
   ESCRITAS XP — escritas-xp.css
   Estética Windows XP — Start menu sempre aberto
   ================================================ */
 
:root {
  --xp-blue-dk:    #0a246a;
  --xp-blue-md:    #1c56b8;
  --xp-blue-lt:    #2a7ade;
  --xp-blue-pale:  #d9e8fb;
  --xp-blue-pale2: #c5dbf7;
  --xp-grey:       #ece9d8;
  --border-lt:     #ffffff;
  --border-dk:     #a0a0a0;
  --border-dk2:    #404040;
  --text:          #000000;
  --green-start:   #3a9c3a;
  --font-ui: 'Tahoma', 'Segoe UI', sans-serif;
}
 
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
 
html, body {
  width: 100%; min-height: 100vh;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text);
  overflow: hidden;
}
 
/* ════════════════════════════════
   DESKTOP — FUNDO
   ════════════════════════════════ */
#desktop {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
 
  /*
    ══════════════════════════════════════════
    FUNDO: Troque pela imagem que você escolher.
    ══════════════════════════════════════════
  */
  background-image: url('https://wallpapercave.com/wp/85Cy3KP.jpg');
  background-size: cover;
  background-position: center;
  background-color: #1a3a6a; /* cor de fallback enquanto a imagem não carrega */
}

 
/* ════════════════════════════════
   BALÃO DE AVISO
   ════════════════════════════════ */
#tour-balloon {
  position: absolute;
  bottom: 50px;
  right: 30px;
  width: 260px;
  background: #fffde0;
  border: 1px solid #c0b060;
  border-radius: 6px;
  padding: 10px 12px;
  box-shadow: 3px 3px 10px rgba(0,0,0,0.3);
  z-index: 500;
  font-size: 12px;
}
 
#tour-balloon::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 30px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid #fffde0;
}
 
#balloon-close {
  position: absolute;
  top: 4px; right: 6px;
  background: none;
  border: none;
  font-size: 12px;
  cursor: pointer;
  color: #666;
}
#balloon-close:hover { color: #000; }
 
#balloon-title { font-weight: bold; margin-bottom: 4px; padding-right: 14px; }
#balloon-text { line-height: 1.5; color: #333; }
 
/* ════════════════════════════════
   MENU START — SEMPRE ABERTO
   ════════════════════════════════ */
#start-menu {
  position: fixed;
  bottom: 30px;
  left: 0;
  width: 380px;
  background: var(--xp-grey);
  border: 2px solid var(--xp-blue-md);
  border-radius: 0 10px 0 0;
  box-shadow:
    4px -2px 20px rgba(0,0,0,0.45),
    inset 0 0 0 1px rgba(255,255,255,0.5);
  z-index: 100;
  overflow: hidden;
}
 
/* ── HEADER ── */
#start-header {
  height: 56px;
  background: linear-gradient(180deg,
    #3a8de8 0%, #2a7ade 15%, var(--xp-blue-md) 45%,
    #154090 80%, var(--xp-blue-dk) 100%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}
 
/* Brilho no topo do header */
#start-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.1) 70%, transparent 100%);
  pointer-events: none;
}
 
#start-avatar {
  width: 48px; height: 48px;
  background: #fff;
  border: 2px solid #fff;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.4),
    inset 0 -2px 4px rgba(0,0,0,0.1),
    inset 0 2px 2px rgba(255,255,255,0.8);
  position: relative;
  z-index: 1;
}
#start-avatar img { width: 100%; height: 100%; object-fit: cover; }
 
#start-username {
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  position: relative;
  z-index: 1;
}
 
/* ── CORPO — DUAS COLUNAS ── */
#start-body {
  display: flex;
  min-height: 320px;
  max-height: 60vh;
}
 
/* ── COLUNA APPS (esquerda, azul clara) ── */
#start-col-apps {
  width: 55%;
  background: #fff;
  padding: 6px 0;
  overflow-y: auto;
  border-right: 1px solid #ccc;
}
 
.app-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.1s;
}
.app-item:hover {
  background: linear-gradient(180deg, #d4e8fc, var(--xp-blue-pale2));
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), inset 0 -1px 0 rgba(0,0,0,0.05);
}
 
.app-icon {
  flex-shrink: 0;
  image-rendering: auto;
  filter: drop-shadow(1px 2px 2px rgba(0,0,0,0.3));
}
 
.app-text { display: flex; flex-direction: column; line-height: 1.3; }
.app-text strong { font-size: 12px; font-weight: bold; }
.app-text small { font-size: 10px; color: #555; }
 
#start-allprograms {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  margin-top: 4px;
  border-top: 1px solid #ddd;
  cursor: pointer;
  font-weight: bold;
  font-size: 12px;
}
#start-allprograms:hover { background: var(--xp-blue-pale2); }
.arrow { color: var(--green-start); font-size: 10px; }
 
/* ── COLUNA DOCS (direita, azul escura) ── */
#start-col-docs {
  width: 45%;
  background: linear-gradient(180deg, #e4eefb 0%, var(--xp-blue-pale) 6%, var(--xp-blue-pale) 100%);
  padding: 6px 0;
  overflow-y: auto;
  box-shadow: inset 1px 0 0 rgba(255,255,255,0.6);
}
 
.doc-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.1s;
}
.doc-item:hover {
  background: linear-gradient(180deg, #4a96f0, var(--xp-blue-lt));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}
 
.doc-icon { font-size: 14px; flex-shrink: 0; }
 
.doc-sep { height: 1px; background: #a8c8ec; margin: 6px 10px; }
 
/* ── FOOTER ── */
#start-footer {
  background: linear-gradient(180deg, #1c5fc0 0%, var(--xp-blue-md) 30%, var(--xp-blue-dk) 100%);
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 6px 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}
 
.footer-btn {
  background: linear-gradient(180deg, rgba(255,255,255,0.25), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 3px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.3);
}
.footer-btn:hover { background: linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0.1)); }
.footer-btn:active { box-shadow: inset 0 2px 4px rgba(0,0,0,0.3); }
 
/* ════════════════════════════════
   JANELAS INTERNET EXPLORER
   ════════════════════════════════ */
.ie-window {
  position: absolute;
  background: var(--xp-grey);
  border-top: 1px solid var(--border-lt);
  border-left: 1px solid var(--border-lt);
  border-right: 1px solid var(--border-dk2);
  border-bottom: 1px solid var(--border-dk2);
  border-radius: 6px 6px 0 0;
  box-shadow: 4px 6px 16px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.4);
  display: flex;
  flex-direction: column;
  min-width: 320px;
  min-height: 240px;
  z-index: 50;
  overflow: hidden;
}
 
.ie-window.active { z-index: 200; }
.ie-window.minimized { display: none !important; }
.ie-window.maximized {
  top: 0 !important; left: 0 !important;
  width: 100vw !important; height: calc(100vh - 30px) !important;
  border-radius: 0;
}
 
/* ── TITLEBAR ── */
.ie-titlebar {
  height: 28px;
  background: linear-gradient(180deg,
    #4a9cf0 0%, #1666c7 10%, #1457b5 18%, #0d47a1 45%,
    #0a3d91 55%, #1457b5 80%, #1f72d8 100%);
  display: flex;
  align-items: center;
  padding: 0 6px;
  gap: 5px;
  cursor: move;
  flex-shrink: 0;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}
 
.ie-titlebar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.05) 70%, transparent 100%);
  pointer-events: none;
}
 
.ie-icon { font-size: 14px; position: relative; z-index: 1; }
.ie-title-text { flex: 1; color: #fff; font-size: 11px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; z-index: 1; text-shadow: 0 1px 1px rgba(0,0,0,0.4); }
 
.ie-controls { display: flex; gap: 2px; position: relative; z-index: 1; }
.ie-btn {
  width: 21px; height: 21px;
  background: linear-gradient(180deg, #f0f6ff 0%, #d4e4f7 40%, #a8c4e8 100%);
  border: 1px solid #7a9fd4;
  border-radius: 3px;
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.8);
}
.ie-btn:hover { filter: brightness(1.1); }
.ie-btn:active { box-shadow: inset 0 2px 4px rgba(0,0,0,0.3); }
.ie-btn.close { background: linear-gradient(180deg, #ff8080 0%, #e46060 40%, #b01818 100%); border-color: #a01010; color: #fff; }
 
/* ── MENUBAR ── */
.ie-menubar {
  height: 20px;
  background: var(--xp-grey);
  display: flex;
  align-items: center;
  padding: 0 6px;
  gap: 2px;
  border-bottom: 1px solid var(--border-dk);
  flex-shrink: 0;
}
.ie-menubar span { padding: 1px 6px; cursor: pointer; font-size: 11px; border-radius: 2px; }
.ie-menubar span:hover { background: var(--xp-blue-lt); color: #fff; }
 
/* ── TOOLBAR ── */
.ie-toolbar {
  height: 30px;
  background: var(--xp-grey);
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px 4px;
  border-bottom: 1px solid var(--border-dk);
  flex-shrink: 0;
}
.ie-toolbtn {
  background: transparent;
  border: 1px solid transparent;
  padding: 3px 8px;
  font-size: 11px;
  cursor: pointer;
  border-radius: 3px;
  font-family: var(--font-ui);
}
.ie-toolbtn:hover {
  border-color: var(--border-dk);
  background: linear-gradient(180deg, #fff, #e8f0fc);
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.ie-toolbtn:active { background: linear-gradient(180deg, #d0e0f4, #fff); box-shadow: inset 0 1px 3px rgba(0,0,0,0.2); }
 
/* ── ADDRESS BAR ── */
.ie-addressbar {
  height: 26px;
  background: var(--xp-grey);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 6px;
  border-bottom: 1px solid var(--border-dk);
  flex-shrink: 0;
}
.ie-addressbar > span:first-child { font-size: 11px; color: #555; }
.ie-address-input {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border-dk);
  border-radius: 2px;
  padding: 2px 6px;
  font-size: 11px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.15);
}
.ie-go {
  background: linear-gradient(180deg, #fff, var(--xp-grey));
  border: 1px solid var(--border-dk);
  border-radius: 2px;
  padding: 2px 10px;
  font-size: 11px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.ie-go:hover { background: linear-gradient(180deg, #fff, #e8f0fc); }
.ie-go:active { box-shadow: inset 0 1px 3px rgba(0,0,0,0.2); }
 
/* ── CONTEÚDO ── */
.ie-content-wrap {
  flex: 1;
  background: #fff;
  overflow-y: auto;
  overflow-x: hidden;
}
 
.ie-content {
  padding: 20px 24px;
  max-width: 100%;
}
 
.ie-content h1 {
  font-size: 22px;
  color: #003399;
  margin-bottom: 4px;
  font-family: Georgia, serif;
}
 
.ie-date {
  font-size: 11px;
  color: #888;
  margin-bottom: 16px;
  font-style: italic;
}
 
.ie-content p {
  font-size: 14px;
  line-height: 1.7;
  color: #222;
  margin-bottom: 14px;
  font-family: Georgia, 'Times New Roman', serif;
  word-wrap: break-word;
}
 
/* ── STATUS BAR ── */
.ie-statusbar {
  height: 20px;
  background: var(--xp-grey);
  border-top: 1px solid var(--border-dk);
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 8px;
  font-size: 10px;
  color: #555;
  flex-shrink: 0;
}
.ie-status-sep { width: 1px; height: 12px; background: var(--border-dk); }
 
/* ── RESIZE HANDLE ── */
.ie-window::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 14px; height: 14px;
  cursor: nwse-resize;
  background: linear-gradient(135deg, transparent 50%, var(--border-dk) 50%);
}
 
/* ════════════════════════════════
   TASKBAR
   ════════════════════════════════ */
#taskbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 30px;
  background: linear-gradient(180deg,
    #3a82e8 0%, #1f5fd0 4%, #1345c0 8%,
    #1c5bce 50%, #1a56c4 85%, #0f3aa0 100%);
  display: flex;
  align-items: center;
  padding: 0 4px;
  gap: 4px;
  z-index: 9999;
  box-shadow: 0 -1px 0 rgba(255,255,255,0.3), 0 -3px 8px rgba(0,0,0,0.3);
}
 
#start-btn {
  height: 24px;
  padding: 0 10px 0 6px;
  background: linear-gradient(180deg, #7ad87a 0%, var(--green-start) 12%, #2e8b2e 55%, #246e24 100%);
  border: 1px solid #1a5c1a;
  border-radius: 0 10px 10px 0;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; gap: 5px;
  text-shadow: 0 1px 1px rgba(0,0,0,0.4);
  font-family: var(--font-ui);
  font-style: italic;
  box-shadow:
    0 0 8px rgba(0,200,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.5),
    inset 0 -2px 4px rgba(0,0,0,0.2);
}
#start-btn:hover { filter: brightness(1.08); }
#start-btn:active { box-shadow: inset 0 2px 6px rgba(0,0,0,0.4); }
 
#taskbar-items { display: flex; gap: 2px; flex: 1; overflow: hidden; }
 
.taskbar-item {
  height: 22px;
  padding: 0 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 2px;
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}
.taskbar-item:hover { background: linear-gradient(180deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1)); }
.taskbar-item.active {
  background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.15));
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
}
 
#taskbar-clock {
  background: linear-gradient(180deg, rgba(0,0,0,0.3), rgba(0,0,0,0.1));
  padding: 2px 10px;
  color: #fff;
  font-size: 11px;
  height: 22px;
  display: flex; align-items: center;
  flex-shrink: 0;
  border-radius: 2px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}
 
/* Scrollbar geral */
::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-track { background: var(--xp-grey); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #e8e8e8, #c0c0c0);
  border: 1px solid var(--border-dk);
}
::-webkit-scrollbar-button { background: var(--xp-grey); }
 