/* shared/kapework-shell.css — Kapework shared shell styles
 * Visual reference: Make24 ellipsis menu + settings + feedback modals
 */

/* ── Ellipsis button ──────────────────────────────────────────────────────── */
.kw-more-btn {
  position: relative;
  background: none;
  border: none;
  color: rgba(241, 245, 249, 0.55);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s, background 0.15s;
}
.kw-more-btn:hover,
.kw-more-btn[aria-expanded="true"] {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.07);
}

/* ── Dropdown menu ────────────────────────────────────────────────────────── */
.kw-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 6px 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  z-index: 200;
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
}
.kw-menu.kw-menu--open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.kw-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  color: #f1f5f9;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.12s;
}
.kw-menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
}
.kw-menu-item:active {
  background: rgba(255, 255, 255, 0.1);
}
.kw-menu-item svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* ── Backdrop (closes menu / modals on outside tap) ──────────────────────── */
.kw-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: transparent;
}

/* ── Modal overlay ────────────────────────────────────────────────────────── */
.kw-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
}
.kw-modal-overlay.kw-modal--open {
  opacity: 1;
  pointer-events: auto;
}

/* ── Modal card ───────────────────────────────────────────────────────────── */
.kw-modal {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 20px;
  padding: 28px 24px 20px;
  max-width: 360px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(12px);
  transition: transform 0.18s;
}
.kw-modal-overlay.kw-modal--open .kw-modal {
  transform: translateY(0);
}

.kw-modal h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f1f5f9;
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}

/* ── Feedback form ────────────────────────────────────────────────────────── */
.kw-feedback-textarea {
  width: 100%;
  min-height: 100px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid #334155;
  border-radius: 12px;
  color: #f1f5f9;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 12px 14px;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
}
.kw-feedback-textarea:focus {
  border-color: #22d3ee;
}
.kw-feedback-textarea::placeholder {
  color: rgba(241, 245, 249, 0.35);
}

.kw-feedback-email {
  width: 100%;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid #334155;
  border-radius: 12px;
  color: #f1f5f9;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
}
.kw-feedback-email:focus {
  border-color: #22d3ee;
}
.kw-feedback-email::placeholder {
  color: rgba(241, 245, 249, 0.35);
}

/* ── Feedback buttons ─────────────────────────────────────────────────────── */
.kw-feedback-send {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 13px;
  background: #22d3ee;
  border: none;
  border-radius: 12px;
  color: #0f172a;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s, transform 0.1s;
}
.kw-feedback-send:hover { opacity: 0.9; }
.kw-feedback-send:active { transform: scale(0.98); }
.kw-feedback-send:disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.kw-feedback-close {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 11px;
  background: none;
  border: none;
  border-radius: 12px;
  color: rgba(241, 245, 249, 0.5);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s;
}
.kw-feedback-close:hover { color: #f1f5f9; }

/* ── Toast notification ───────────────────────────────────────────────────── */
.kw-toast {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom, 24px));
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 999px;
  color: #f1f5f9;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 20px;
  white-space: nowrap;
  z-index: 400;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}
.kw-toast.kw-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Shell wrapper (relative container for the ⋮ button + dropdown) ───────── */
.kw-shell-root {
  position: relative;
  display: flex;
  align-items: center;
}
