/* ═══════════════════════════════════════
   EDIT MODE
═══════════════════════════════════════ */

/* Sticky orange banner shown when editing */
.edit-banner {
  display: none;
  background: #e65100;
  color: #fff;
  padding: 9px 14px;
  font-size: 13px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: sticky;
  top: 58px;
  z-index: 99;
}

.edit-banner.on {
  display: flex;
}

.edit-done {
  background: #fff;
  color: #e65100;
  border: none;
  border-radius: 14px;
  padding: 4px 14px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

/* Red × delete button — top-left corner of card */
.del-btn {
  display: none;
  position: absolute;
  top: 5px;
  left: 5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e53935;
  color: #fff;
  border: none;
  font-size: 13px;
  line-height: 22px;
  text-align: center;
  cursor: pointer;
  z-index: 5;
  padding: 0;
}

/* Drag grip indicator */
.drag-hdl {
  display: none;
  position: absolute;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  color: #ccc;
  font-size: 16px;
  pointer-events: none;
}

/* Show controls when edit mode is active */
.edit-mode .del-btn  { display: block; }
.edit-mode .drag-hdl { display: block; }
.edit-mode .card.filled { cursor: grab; }
.edit-mode .card.filled:active { cursor: grabbing; }

/* "Add lesson" button at the bottom of the list */
.add-slot {
  display: none;
  margin-top: 4px;
  background: #e8f5e9;
  border: 2px dashed #81c784;
  border-radius: 3px;
  padding: 13px;
  text-align: center;
  color: #388e3c;
  font-size: 14px;
  cursor: pointer;
}

.add-slot:hover { background: #c8e6c9; }
.edit-mode .add-slot { display: block; }
