/* =====================================================================
   windows.css  (ventanas .window-main y estados)
   ===================================================================== */

.window-main {
  position: absolute;
  z-index: 5;

  /* Glassmórfico (traslúcido + blur) */
  background: rgba(255, 255, 255, 0.67);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1.8px solid rgba(232, 232, 232, 0.24);
  border-radius: 10px;
  box-shadow: 0 5px 28px #bbcbe960;
  overflow: auto;
  resize: none; /* Interact.js controla el resizing */

  /* Tamaño inicial de las ventanas (puedes modificar el ancho “900px” si lo deseas) */
  width: 900px;
  min-width: 340px;
  min-height: 160px;
  max-width: 100vw;
  max-height: none;

  transition:
    box-shadow 0.15s,
    border-radius 0.13s,
    transform 0.18s cubic-bezier(.37, 1.26, .64, 1);
}

/* --------------------------------------------------
   POSICIÓN “por defecto” cuando NO están maximizadas
   -------------------------------------------------- */

/* “Pendientes” se coloca 20px debajo de la navbar y 35px desde el borde izquierdo */
#ventana-pendientes {
  top: 15px;   /* 20px debajo de la navbar (que mide 60px de alto) */
  left: 35px;  /* 35px desde el borde izquierdo */
}

/* “Histórico” se coloca 20px debajo de la navbar y 51% desde el ancho total */
#ventana-panel {
  top: 15px;   /* 20px debajo de la navbar */
  left: 51%;   /* 51% del ancho total, para que quede a la derecha de “Pendientes” */
}

/* =====================================================================
   3) Ventana en estado “maximizado”
   ===================================================================== */
.window-main.maximized {
  position: absolute;
  scroll-behavior: smooth;

  /* Estas reglas con !important forzan la ventana a ocupar todo el viewport */
  border-radius: 0 !important;
  box-shadow: none !important;
  left: 0 !important;
  top: 0 !important;
  width: 100vw !important;
  height: 98vh !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  transform: none !important;
  z-index: 11;
}

/* =====================================================================
   4) Barra de título y botones (idéntico a tu anterior .titlebar-main)
   ===================================================================== */
.titlebar-main {
  position: relative;
  background: rgba(255, 255, 255, 0.86);
  color: #002563;
  font-size: 0.9rem;
  height: 20px;
  min-height: 37px; /* Evita que colapse el título */
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1.5px solid #dde5f2;
  z-index: 2;
}

.title-main i {
  font-size: 0.9rem;
  color: #00215a;
}

.window-controls {
  margin-left: auto;
  display: flex;
  gap: 7px;
}

.window-btn {
  width: 15px;
  height: 15px;
  padding: 0;
  border-radius: 50%;
  border: none;
  margin: 0 2px;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 2px #9994;
  transition: filter .18s, box-shadow .14s;
  cursor: pointer;
  outline: none;
}

/* Colores de los botones */
.window-btn.btn-clos { background: #ff3836; }
.window-btn.btn-min  { background: #ffbe2f; }
.window-btn.btn-max  { background: #29c940; }
.window-btn:active   { filter: brightness(82%); }

.content-main {
  padding: 23px 28px 16px 28px;
}

@media (max-width: 1000px) {
  .window-main {
    width: 98vw;
    min-width: 95vw;
  }
}

/* =====================================================================
   panel.css  (layout padre/ventanas)
   ===================================================================== */
#contenedor-padre {
  position: relative;
  top: 60px; /* altura de la navbar fija */
  height: calc(100% - 60px);
  background: transparent;
}

.content-padre {
  display: flex;
  flex-direction: row;
  gap: 10px;
  padding: 10px;
  box-sizing: border-box;
  overflow: visible; /* para no recortar ventanas maximizada */
}

.content-padre .window-main {
  /* Cada ventana necesita al menos 300px de ancho al cargar */
  min-width: 300px;
}

.footer-padre {
  height: 30px;
  background: rgba(255, 255, 255, 0.5);
  text-align: center;
  line-height: 30px;
  font-size: 0.85rem;
  color: #555;
}

.navbar-main {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px; /* coincide con top:60px de #contenedor-padre */
  z-index: 10;
}

/* -------------------------------------------------
   DOCK: indicador de punto de luz (por defecto oculto)
   ------------------------------------------------- */
.nav-item {
  position: relative; /* necesario para situar el puntito */
}

.indicator-dot {
  position: absolute;
  top: 4px;            /* ajusta para subir/bajar el puntito */
  right: 50%;          /* centra horizontalmente respecto al icono */
  transform: translateX(50%);
  width: 6px;          /* tamaño del puntito */
  height: 6px;
  background-color: white;
  border-radius: 50%;
  opacity: 0;          /* oculto por defecto */
  transition: opacity 0.2s;
  pointer-events: none; /* no interfiere con clics */
}

/* Cuando el <li class="nav-item"> tenga la clase .active, mostramos el puntito */
.nav-item.active .indicator-dot {
  opacity: 1;
}



