/* ===== SIMULADOR MANTEDIF — SHELL BASE ===== */

.sim-layout {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 70px);
  background: #d4d0c8;
  font-family: 'Tahoma', Arial, sans-serif;
  font-size: 12px;
  color: #000;
  user-select: none;
}

/* TITLEBAR */
.sim-titlebar {
  background: linear-gradient(to right, #0a246a, #a6b5d7);
  color: white;
  padding: 3px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: bold;
}
.sim-titlebar-btns { display: flex; gap: 2px; }
.sim-titlebar-btns span {
  background: #d4d0c8;
  color: #000;
  width: 16px; height: 14px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 10px;
  border: 1px outset #fff;
}

/* MENUBAR */
.sim-menubar {
  background: #d4d0c8;
  border-bottom: 1px solid #808080;
  display: flex;
  align-items: center;
  padding: 2px 4px;
  position: relative;
}
.sim-menu-item {
  padding: 2px 8px;
  cursor: pointer;
  position: relative;
  font-size: 12px;
}
.sim-menu-item:hover { background: #0a246a; color: white; }

.sim-dropdown {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: #d4d0c8;
  border: 1px solid #808080;
  min-width: 220px;
  z-index: 1000;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.sim-dropdown.open { display: block; }
.sim-dd-item {
  padding: 4px 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.sim-dd-item:hover { background: #0a246a; color: white; }
.sim-dd-divider { height: 1px; background: #808080; margin: 2px 0; }

/* TOOLBAR */
.sim-toolbar {
  background: #d4d0c8;
  border-bottom: 2px groove #808080;
  display: flex;
  align-items: center;
  padding: 3px 6px;
  gap: 2px;
  flex-wrap: wrap;
}
.sim-tool {
  width: 30px; height: 30px;
  border: 1px solid transparent;
  background: #d4d0c8;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  padding: 2px;
}
.sim-tool img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  image-rendering: pixelated;
}
.sim-tool:hover { background: #e8e8e8; border: 1px solid #808080; }
.sim-tool:active { border: 1px inset #808080; background: #c0bdb5; }
.sim-logo-img { margin-left: auto; height: 28px; padding-right: 6px; }

/* WORKSPACE */
.sim-workspace { display: flex; flex: 1; overflow: hidden; }

.sim-sidebar {
  width: 170px;
  background: #d4d0c8;
  border-right: 2px groove #808080;
  overflow-y: auto;
  flex-shrink: 0;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sim-form-toolbar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid #b0aaa0;
}
.sim-form-btn {
  background: transparent;
  border: 1px solid transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  width: 100%;
}
.sim-form-btn img {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: pixelated;
}
.sim-form-btn:hover { background: rgba(255,255,255,0.4); border-color: #b0aaa0; }

.sim-sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.sim-nav-item {
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 2px;
}
.sim-nav-item img {
  max-width: 100%;
  height: auto;
  display: block;
  image-rendering: pixelated;
}
.sim-nav-item:hover { background: rgba(255,255,255,0.4); border-color: #b0aaa0; }

.sim-main {
  flex: 1;
  background: #ece8d0;
  overflow: auto;
  padding: 10px;
  position: relative;
}

/* STATUSBAR */
.sim-statusbar {
  background: #d4d0c8;
  border-top: 2px groove #808080;
  padding: 3px 8px;
  display: flex;
  gap: 2rem;
  font-size: 11px;
  color: #000;
  align-items: center;
}
.sim-statusbar span {
  padding: 1px 8px;
  border: 1px inset #808080;
  background: #d4d0c8;
}
.sim-statusbar span:first-child { min-width: 180px; }

/* NOTIFICACIONES */
.sim-notif {
  position: fixed;
  top: 80px; right: 20px;
  background: #ffffcc;
  border: 1px solid #808080;
  padding: 6px 14px;
  font-size: 12px;
  font-family: 'Tahoma', Arial;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
  z-index: 2000;
  display: none;
  max-width: 320px;
}
.sim-notif.show { display: block; }
.sim-notif.error { background: #ffe0e0; border-color: #cc0000; }

.sim-modulo-proximamente {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: #333;
}
.sim-modulo-proximamente h3 { font-size: 18px; margin-bottom: 0.5rem; }
.sim-modulo-proximamente p { font-size: 13px; color: #666; }