/* public/css/pt-fab.css */

/* ------------------------------
   Floating Action Button (FAB)
-------------------------------- */

.pt-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.pt-fab * {
  box-sizing: border-box;
}

.pt-fab__button {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(20, 22, 28, 0.92);
  backdrop-filter: blur(10px);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.pt-fab__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
  background: rgba(28, 31, 40, 0.92);
}

.pt-fab__icon {
  width: 22px;
  height: 22px;
  fill: #ffffff;
  opacity: 0.92;
}

.pt-fab__panel {
  position: absolute;
  right: 0;
  bottom: 66px;
  width: 320px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 18, 24, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transform-origin: bottom right;
  transform: scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease, transform 120ms ease;
}

.pt-fab__panel--open {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.pt-fab__panelHeader {
  padding: 14px 14px 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pt-fab__title {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.2px;
}

.pt-fab__close {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-size: 18px;
  line-height: 18px;
  padding: 6px 8px;
  border-radius: 10px;
}

.pt-fab__close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.pt-fab__panelBody {
  padding: 12px 14px 14px 14px;
}

.pt-fab__hint {
  margin: 0 0 10px 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.4;
}

.pt-fab__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.pt-fab__actionBtn {
  flex: 1 1 auto;
  min-width: 140px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  padding: 10px 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: background 120ms ease, transform 120ms ease;
}

.pt-fab__actionBtn:hover {
  background: rgba(255, 255, 255, 0.10);
  transform: translateY(-1px);
}

.pt-fab__actionBtn--primary {
  border-color: rgba(56, 189, 248, 0.30);
  background: rgba(56, 189, 248, 0.14);
}

.pt-fab__actionBtn--primary:hover {
  background: rgba(56, 189, 248, 0.20);
}

.pt-fab__modalBackdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.pt-fab__modalBackdrop--open {
  display: flex;
}

.pt-fab__modal {
  width: min(720px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(14, 16, 22, 0.98);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.pt-fab__modalHeader {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pt-fab__modalTitle {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
}

.pt-fab__modalBody {
  padding: 16px;
}

.pt-fab__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pt-fab__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pt-fab__field--full {
  grid-column: 1 / -1;
}

.pt-fab__label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
}

.pt-fab__input,
.pt-fab__select,
.pt-fab__textarea {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  padding: 10px 12px;
  outline: none;
  font-size: 13px;
}

.pt-fab__textarea {
  min-height: 92px;
  resize: vertical;
}

.pt-fab__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.pt-fab__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  user-select: none;
}

.pt-fab__toggle input {
  width: 18px;
  height: 18px;
}

.pt-fab__submitRow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.pt-fab__btn {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}

.pt-fab__btn:hover {
  background: rgba(255, 255, 255, 0.10);
}

.pt-fab__btn--primary {
  border-color: rgba(34, 197, 94, 0.30);
  background: rgba(34, 197, 94, 0.14);
}

.pt-fab__btn--primary:hover {
  background: rgba(34, 197, 94, 0.20);
}

.pt-fab__status {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.35;
}

.pt-fab__status--error {
  color: rgba(248, 113, 113, 0.92);
}

.pt-fab__status--success {
  color: rgba(74, 222, 128, 0.92);
}

@media (max-width: 640px) {
  .pt-fab__panel {
    width: 290px;
  }
  .pt-fab__grid {
    grid-template-columns: 1fr;
  }
}
