/* -----------------------------------------------------------
   🔵 BASE / RESET
------------------------------------------------------------*/
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  background: #f4f7fb;
  color: #111;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

/* -----------------------------------------------------------
   🔵 TOPBAR
------------------------------------------------------------*/
.topbar {
  background: #fff;
  border-bottom: 1px solid #eef2f6;
  box-shadow: 0 2px 8px rgba(20, 30, 50, 0.03);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}
.brand {
  font-weight: 700;
  font-size: 18px;
}
.top-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* -----------------------------------------------------------
   🔵 CARDS GENERALES
------------------------------------------------------------*/
.card {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.04);
}

/* -----------------------------------------------------------
   🔵 FORMULARIOS
------------------------------------------------------------*/
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e6eef7;
  border-radius: 8px;
  background: #fbfdff;
  font-size: 14px;
  outline: none;
}
textarea {
  min-height: 100px;
  resize: vertical;
}

/* -----------------------------------------------------------
   🔵 BOTONES
------------------------------------------------------------*/
.btn {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}
.btn.small {
  padding: 6px 8px;
  font-size: 13px;
}
.btn.tiny {
  padding: 4px 6px;
  font-size: 12px;
}
.btn.ghost {
  background: transparent;
  color: #334155;
  border: 1px solid transparent;
}
.btn.danger,
.btn.small.danger {
  background: #ef4444;
}
.btn.small.ghost {
  padding: 6px 8px;
  background: transparent;
  color: #334155;
  border: 1px solid #eef2f6;
}

/* -----------------------------------------------------------
   🔵 LAYOUTS GENERALES / GRID
------------------------------------------------------------*/
.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 36px;
}
.boards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

/* -----------------------------------------------------------
   🔵 LOGIN (dashboard index.html)
------------------------------------------------------------*/
/* Aquí vas a poner el login más adelante.
   Por ahora no agrego cambios para no alterar tu diseño.
   Puedes traer tu login aquí y lo dejo separado y bonito. */

/* -----------------------------------------------------------
   🔵 BOARD: Inicio (boards list)
------------------------------------------------------------*/
.board-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #eef2f6;
  background: linear-gradient(180deg, #fff, #f8fbff);
}
.board-card-title {
  font-weight: 600;
}

/* -----------------------------------------------------------
   🔵 BOARD: Página interna (listas y tareas)
------------------------------------------------------------*/
.board-header {
  margin-bottom: 16px;
}
.lists-wrap {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.lists {
  display: flex;
  gap: 16px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 12px;
}

/* Contenedor flexible de listas */
#lists-container {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.list {
  width: 280px;
  flex: 1 1 250px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border-radius: 10px;
  padding: 12px;
  border: 1px solid #eef6ff;
}
.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.list-title {
  font-weight: 700;
}
.task-column {
  min-height: 40px;
  max-height: 60vh;
  overflow: auto;
  padding: 6px;
}

/* Tareas */
.task {
  background: #eef2ff;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: grab;
  transition: transform .25s ease, background-color .25s ease;
}
.task.moving {
  transform: scale(1.03);
  background-color: #f0f0f0;
}
.task .task-title {
  font-weight: 600;
  font-size: 14px;
}
/*
.task .task-actions button {
  margin-left: 6px;
}*/

/* -----------------------------------------------------------
   🔵 MODALES
------------------------------------------------------------*/
/* Fondo del modal */
.modal {
   display: none;               /* Escondido por defecto */
  position: fixed;             /* Fijado en la pantalla */
  top: 0;
  left: 0;
  width: 100vw;                /* Ocupa todo el ancho de la ventana */
  height: 100vh;               /* Ocupa toda la altura de la ventana */
  background-color: rgba(0, 0, 0, 0.5); /* Fondo semi-transparente */
  justify-content: center;     /* Alineación horizontal */
  align-items: center;         /* Alineación vertical */
  z-index: 9999;               /* Asegura que el modal esté sobre otros elementos */
  transition: opacity 0.3s ease;
}

/* Oculto */
.hidden {
  display: none;
}

.modal.open {
  display: flex;               /* Usamos flexbox para centrarlo */
  opacity: 1;
}
.modal-content {
  background-color: #fff;      /* Fondo blanco para el modal */
  padding: 20px;
  border-radius: 8px;
  max-width: 500px;            /* Ancho máximo */
  width: 90%;                  /* Ancho adaptable */
  box-sizing: border-box;      /* Asegura que el padding no afecte el ancho total */
}
.modal-close {
 font-size: 24px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;

  
}

/* Fondo del modal */
/* ------- MODAL GENERAL -------- */
.modal-task {
  width: 100%;
  max-width: 480px;
  padding: 22px;
  border-radius: 14px;
  background: #fff;
  animation: modalPop .25s ease-out;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

@keyframes modalPop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ------- HEADER -------- */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

/* ------- INPUTS -------- */
.input-label {
  font-weight: 600;
  margin: 16px 0 6px;
  display: block;
}

.input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #cfcfcf;
  transition: 0.25s;
}

.input:focus {
  border-color: #4d90fe;
  box-shadow: 0 0 5px rgba(77,144,254,0.3);
  outline: none;
}

.textarea {
  height: 110px;
  resize: vertical;
}

/* ------- ICON BUTTON -------- */
.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  opacity: 0.75;
  padding: 6px;
  border-radius: 8px;
  transition: 0.25s;
}

.icon-btn:hover {
  opacity: 1;
  background: rgba(0,0,0,0.05);
}

.icon-btn:active {
  transform: scale(0.92);
}

/* ------- BOTONES ESTÁNDAR -------- */
.btn {
  padding: 6px 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: 0.25s;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
  font-size: 1.0rem;
}
.btn-primary {
  background: #4d90fe;
  color: white;
}

.btn-primary:hover {
  background: #3b7ce0;
}

.btn-primary:active {
  transform: scale(0.95);
}

/* ------- COMENTARIOS -------- */
.comments-box {
  background: #f7f7f7;
  padding: 12px;
  border-radius: 10px;
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 12px;
}

.comment-form {
  display: flex;
  gap: 10px;
}

.comment-form .input {
  flex: 1;
}

/* ------- RESPONSIVE -------- */
@media (max-width: 480px) {
  .modal-task {
    padding: 18px;
    border-radius: 12px;
  }

  .modal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}




/* -----------------------------------------------------------
   🔵 TOASTS
------------------------------------------------------------*/
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #111;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 9999;
}
.toast.visible {
  opacity: 1;
  transform: translateY(0);
}
.toast-success {
  background: #059669;
}
.toast-danger {
  background: #ef4444;
}

/* -----------------------------------------------------------
   🔵 BADGES (estatus)
------------------------------------------------------------*/
.badge {
  display: inline-block;
  padding: 3px 8px;
  margin-bottom: 4px;
  font-size: 11px;
  border-radius: 6px;
  font-weight: bold;
  color: white;
}
.badge-pendiente { background: #ff9800; }
.badge-enprogreso { background: #2196f3; }
.badge-completado { background: #4caf50; }

/* -----------------------------------------------------------
   🔵 UTILIDADES PEQUEÑAS
------------------------------------------------------------*/
.muted {
  color: #64748b;
  font-size: 13px;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.space {
  justify-content: space-between;
}
.comment {
  background: #f8f8f8;
  padding: 8px;
  margin-bottom: 6px;
  border-radius: 6px;
}
.comment-actions {
  margin-top: 5px;
  display: flex;
  gap: 5px;
}
.comment .btn.tiny {
  padding: 2px 6px;
  font-size: 11px;
}

/* -----------------------------------------------------------
   🔵 RESPONSIVE
------------------------------------------------------------*/
@media (max-width: 900px) {
  .auth-grid {
    grid-template-columns: 1fr;
  }
  .lists {
    padding: 12px;
  }
  .list {
    min-width: 250px;
  }
}

@keyframes pop {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
/* ——— TAREAS ———————————————————————————————— */

.task {
    background: #f8f9ff;
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 8px;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;

    cursor: grab;
    transition: transform .25s, background-color .25s;
}

/* Contenedor izquierdo: badge + título */
.task-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

/* Badge */
.badge {
    padding: 3px 7px;
    font-size: 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    width: fit-content;
}

/* Colores de badge */
.badge-pendiente { background: #FFF3CD; color: #856404; }
.badge-enprogreso { background: #D1ECF1; color: #0C5460; }
.badge-completado { background: #D4EDDA; color: #155724; }

/* Título de la tarea */
.task-title {
    flex: 1;
    word-break: break-word;  /* evita encimar */
    white-space: normal;
    line-height: 1.35;
    font-size: .95rem;
}

/* Botones de acciones */
.task-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.task-btn {
    padding: 5px 8px;
    font-size: 0.75rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    background: #eef1fa;
    transition: background 0.2s;
}

.task-btn:hover {
    background: #e0e3f2;
}

.task-btn.danger {
    background: #ffe5e5;
    color: #b10000;
}

.task-btn.danger:hover {
    background: #ffd1d1;
}
/* =============================
   CONTENEDOR TABLERO
============================== */
.lists-wrap {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.lists {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* =============================
   LISTA (COLUMNA)
============================== */
.list {
    width: 300px;
    background: #ffffff;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 3px 6px #00000010;
    border: 1px solid #e5e9f5;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* =============================
   HEADER DE LISTA
============================== */
.list-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.list-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #344566;
}

.list-header-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.list-header-actions button {
    flex: 1;
    border: none;
    padding: 8px;
    border-radius: 8px;
    font-size: .85rem;
    cursor: pointer;
    transition: 0.2s;
}

.add-task {
    background: #4f8bff;
    color: white;
}
.add-task:hover {
    background: #3d75e6;
}

.view-list {
    background: #e8efff;
    color: #3d5aa0;
}

.delete-list {
    background: #ffe5e5;
    color: #c70000;
}
.delete-list:hover {
    background: #ffcccc;
}

/* =============================
   TAREAS
============================== */
.task-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* TARJETA */
.task {
    background: #f8faff;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #e4e9f7;
    box-shadow: 0 2px 4px #00000008;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

/* IZQUIERDA */
.task-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* BADGES */
.badge {
    padding: 5px 8px;
    border-radius: 6px;
    font-size: .75rem;
    font-weight: 600;
    width: fit-content;
}

.badge-pendiente {
    background: #fff3cd;
    color: #856404;
}
.badge-enprogreso {
    background: #d1ecf1;
    color: #0c5460;
}
.badge-completado {
    background: #d4edda;
    color: #155724;
}

.task-title {
    font-size: .95rem;
    font-weight: 500;
    color: #333;
    word-wrap: break-word;
}

/* DERECHA (BOTONES) */
.task-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.task-actions button {
    border: none;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: .8rem;
    cursor: pointer;
}

.view-task {
    background: #e8efff;
    color: #334c8a;
}

.delete-task {
    background: #ffe5e5;
    color: #c70000;
}

/* =============================
   FORM AGREGAR TAREA
============================== */
.task-add-form {
    display: flex;
    gap: 10px;
}

.task-add-form input {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #d7dde9;
    font-size: .9rem;
}

.task-add-form button {
    padding: 10px 12px;
    border-radius: 8px;
    background: #4f8bff;
    color: white;
    border: none;
}

/* =============================
   RESPONSIVE
============================== */
@media (max-width: 768px) {
    .list {
        width: 100%;
    }

    .task {
        flex-direction: column;
        gap: 12px;
    }

    .list-header-actions {
        flex-direction: column;
        gap: 6px;
    }
}
.placeholder {
  height: 55px;
  border: 3px dashed #00aaff;
  border-radius: 10px;
  margin: 8px 0;
  background: rgba(0, 170, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: placeholderPulse 1.2s infinite ease-in-out;
  box-sizing: border-box;
  font-weight: bold;
  font-size: 14px;
  color: #008ccc;
}


/* Texto decorado */
.placeholder::after {
  content: "⬇ SUELTE AQUÍ ⬇";
  position: absolute;
  z-index: 10;
  animation: pulseText 1.3s infinite ease-in-out;
  font-weight: 700;
}




/* ============================================
   ANIMACIONES
============================================ */

@keyframes placeholderPulse {
  0% { opacity: 0.5; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1); }
  100% { opacity: 0.5; transform: scale(0.98); }
}
@keyframes pulseText {
  0% { opacity: .6; }
  50% { opacity: 1; }
  100% { opacity: .6; }
}

@keyframes slideLine {
  0%   { transform: translateX(-10px); opacity: .4; }
  50%  { transform: translateX(10px);  opacity: 1; }
  100% { transform: translateX(-10px); opacity: .4; }
}

/* Animación suave */
@keyframes pulse {
  from {
    transform: scale(1);
    opacity: 0.7;
  }
  to {
    transform: scale(1.04);
    opacity: 1;
  }
}

.board-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: #f6f6f6; /* mismo estilo de tu header */
}

.control-search input,
.control-add-list input {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.control-add-list {
  display: flex;
  gap: 8px;
}



.details-block {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ===== TITULOS ===== */
.section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

/* ===== DETALLES ===== */
.details-section {
  background: #fafafa;
  border-radius: 12px;
  padding: 20px;
}

.detail-item {
  margin-bottom: 16px;
}

.detail-row {
  /*display: flex;*/
  gap: 24px;
  flex-wrap: wrap;
}

.label {
  display: block;
  font-size: 12px;
  color: #777;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
/*Diseño caja de comentarios en modal editar tarea*/
.detail-text {
  font-size: 14px;
  line-height: 1.6;
}

.detail-pill {
  background: #e9eefc;
  color: #3b5bdb;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
}

.detail-muted {
  font-size: 13px;
  color: #666;
}
.details-section {
  margin-bottom: 40px;
}

/* ===== COMENTARIOS ===== */
.comments-section {
  padding: 0 4px;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

/* tarjetas tipo Notion */
.comment-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
  margin-bottom: 16px;
}

.comment-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.comment-date {
  font-size: 0.75rem;
  color: #888;
}



/*DISEÑO BOTONES EN CARD COMENT*/
.comment-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.btn-link {
  background: none;
  border: none;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
}

.btn-link:hover {
  background: #f1f3f5;
}

.btn-link.danger {
  color: #d9480f;
}

.btn-link.danger:hover {
  background: #fff4e6;
}

/*Diseño para notificaciones*/
/* Wrapper */
.notifications-wrapper {
  position: relative;
}

/* Dropdown */
.notifications-dropdown {
  position: absolute;
  top: 110%;
  right: 0;
  width: 280px;
  max-width: 90vw;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0,0,0,.12);
  z-index: 1000;
  overflow: hidden;
  font-size: 14px;
}
/* Responsive móvil */
@media (max-width: 600px) {
  .notifications-dropdown {
    right: -10px;
    width: calc(100vw - 20px);
  }
}

/* Header */
.notifications-header {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  background: #f8f9fa;
}

/* List */
.notifications-list {
  max-height: 300px;
  overflow-y: auto;
}

.notifications-list p {
  padding: 12px 16px;
}

/* Item */
.notification-item {
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
}

.notification-item p {
  margin: 4px 0;
  line-height: 1.3;
}

.notification-item:hover {
  background: #f5f7fa;
}


/* Oculto */
.hidden {
  display: none;
}




