/* -------------------------
   RESET & BASE
------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  color: #333;
}

/* -------------------------
   HEADER
------------------------- */
header.header-bar {
  background: #0056b3;
  padding: 20px;
  text-align: center;
}

header.header-bar .header-title {
  color: #fff;
  font-size: 2rem;
}

/* -------------------------
   CONTENEDOR PRINCIPAL
------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* -------------------------
   SECCIÓN SUPERIOR (Subir Excel & Botones de Navegación)
------------------------- */
.top-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.upload-form {
  display: inline-block;
  vertical-align: middle;
}

.upload-label {
  margin-right: 10px;
  font-weight: bold;
}

.upload-input {
  margin-right: 10px;
}

.btn-upload {
  background: #28a745;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.btn-upload:hover {
  background: #218838;
}

.nav-buttons {
  display: flex;
  gap: 10px;
}

.btn-nav {
  background: #007bff;
  color: #fff;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: bold;
  transition: background 0.3s;
}

.btn-nav:hover {
  background: #0056b3;
}

/* -------------------------
   MODALES (Flash messages)
------------------------- */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}

.modal-content {
  background: #fff;
  margin: 5% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  position: relative;
}

.close-btn {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 20px;
  cursor: pointer;
}

.close-btn:hover {
  color: #000;
}

/* -------------------------
   TABLERO KANBAN (Columnas y Tarjetas)
------------------------- */
.horizontal-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.state-wrapper {
  flex: 1;
  margin: 0 5px;
}

.snake-status {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.title-wrapper h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.title-wrapper small a {
  color: #007bff;
  text-decoration: none;
  font-size: 0.8rem;
}

.title-wrapper small a:hover {
  text-decoration: underline;
}

.expand-icon {
  cursor: pointer;
  font-size: 24px;
}

.cards-container {
  min-height: 300px; /* Área de arrastre ampliada */
  border: 2px dashed #ccc;
  border-radius: 6px;
  padding: 15px;
  background: #fafafa;
  overflow-y: auto;
  transition: background 0.3s, border-color 0.3s;
}

.cards-container.drag-over {
  background: #e6ffe6;
  border-color: #28a745;
}

.kanban-card {
  background: #f1f1f1;
  border-radius: 4px;
  padding: 10px;
  margin-bottom: 10px;
  cursor: move;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: transform 0.2s;
  font-size: 0.95rem;
}

.kanban-card.dragging {
  opacity: 0.5;
  border: 2px solid #333;
  transform: scale(1.02);
}

.arrow {
  width: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.arrow-right::before {
  content: "→";
  font-size: 28px;
  color: #555;
}

/* -------------------------
   MENÚ CONTEXTUAL
------------------------- */
.context-menu {
  display: none;
  position: absolute;
  z-index: 1000;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.context-menu button {
  background: none;
  border: none;
  width: 100%;
  padding: 10px;
  text-align: left;
  cursor: pointer;
  font-size: 0.9rem;
}

.context-menu button:hover {
  background: #f0f0f0;
}

.btn-delete {
  color: red;
  font-weight: bold;
}

/* -------------------------
   MODAL EXPANDIDO PARA VER TARJETAS
------------------------- */
.expanded-cards-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.expanded-card-item {
  background: #f1f1f1;
  border-radius: 4px;
  margin-bottom: 10px;
  padding: 10px;
}
