/* ================================================================
   Scarlet Plugin – Copy Table button and toast notification
   ================================================================ */

/* ── Toolbar wrapper ─────────────────────────────────────────── */

.scarlet-copy-toolbar {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
    margin-top: -10px;
}


.controller-timelog.action-index .scarlet-copy-toolbar {
  margin-top: -30px;
}

/* ── Copy Table button ───────────────────────────────────────── */

.scarlet-copy-table-btn {
  display: inline-flex;
  align-items: center;
  background-color: #ffffff;
    color: #29435c;
    border: 1px solid #aaaaaac2;
  border-radius: 3px;
  padding: 18px 16px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 0.15s ease;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}

.scarlet-copy-table-btn:hover,
.scarlet-copy-table-btn:focus-visible {
  color: #FC641F;
}

.scarlet-copy-table-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Toast notification ──────────────────────────────────────── */

.scarlet-copy-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  background-color: #2e7d32;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  max-width: 360px;
  line-height: 1.5;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.scarlet-copy-toast--visible {
  opacity: 1;
  transform: translateY(0);
}

.scarlet-copy-toast--error {
  background-color: #c62828;
}
