/* ===========================
   FAB Speed Dial (Mobile)
   =========================== */

.fab-speed-dial {
  position: fixed;
  right: 16px;
  bottom: 80px;
  z-index: 1000;
}

.fab-speed-dial-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--bs-primary) 0%, #2ed649 100%);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(3, 193, 36, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fab-speed-dial-toggle:hover {
  box-shadow: 0 6px 16px rgba(3, 193, 36, 0.45);
}

.fab-speed-dial-toggle.active {
  transform: rotate(45deg);
  background: var(--gray-700, #555);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.fab-speed-dial-toggle .fab-icon {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
}

/* Speed Dial Items */
.fab-speed-dial-items {
  position: absolute;
  bottom: 68px;
  right: 0;
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.fab-speed-dial-items.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fab-speed-dial-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  flex-direction: row-reverse;
}

.fab-speed-dial-item:hover {
  text-decoration: none;
  color: inherit;
}

.fab-speed-dial-item-bubble {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
  border: none;
  cursor: pointer;
}

.fab-speed-dial-item-bubble img {
  width: 28px;
  height: 28px;
}

.fab-speed-dial-item-bubble i {
  font-size: 22px;
  color: var(--gray-700, #555);
}

.fab-speed-dial-item-label {
  background: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: var(--gray-900, #222);
}

/* Staggered animation for items */
.fab-speed-dial-items.open .fab-speed-dial-item:nth-child(1) { transition-delay: 0.03s; }
.fab-speed-dial-items.open .fab-speed-dial-item:nth-child(2) { transition-delay: 0.06s; }
.fab-speed-dial-items.open .fab-speed-dial-item:nth-child(3) { transition-delay: 0.09s; }
.fab-speed-dial-items.open .fab-speed-dial-item:nth-child(4) { transition-delay: 0.12s; }

.fab-speed-dial-item {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.fab-speed-dial-items.open .fab-speed-dial-item {
  opacity: 1;
  transform: translateY(0);
}

/* Overlay/Backdrop */
.fab-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.fab-overlay.active {
  opacity: 1;
  visibility: visible;
}


/* ===========================
   Quick Menu (Desktop)
   =========================== */

.quick-menu-panel {
  position: fixed;
  right: 24px;
  bottom: 40px;
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 200px;
}

.quick-menu-panel.collapsed .quick-menu-items {
  max-height: 0;
  overflow: hidden;
}

.quick-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bs-primary);
  color: white;
  cursor: pointer;
  user-select: none;
}

.quick-menu-header h5 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.quick-menu-header .toggle-icon {
  transition: transform 0.3s ease;
}

.quick-menu-panel.collapsed .quick-menu-header .toggle-icon {
  transform: rotate(180deg);
}

.quick-menu-items {
  display: flex;
  flex-direction: column;
  max-height: 300px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.quick-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--gray-900, #222);
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--gray-100, #f5f5f5);
  transition: background 0.15s ease;
  cursor: pointer;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
  text-align: left;
}

.quick-menu-item:last-child {
  border-bottom: none;
}

.quick-menu-item:hover {
  background: var(--gray-50, #fafafa);
  text-decoration: none;
  color: var(--gray-900, #222);
}

.quick-menu-item i {
  font-size: 18px;
  color: var(--bs-primary);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.quick-menu-item span {
  flex: 1;
}


/* ===========================
   Open Kakao Select Modal
   =========================== */

.open-kakao-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.open-kakao-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--gray-200, #e5e5e5);
  border-radius: 12px;
  text-decoration: none;
  color: var(--gray-900, #222);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.open-kakao-item:hover {
  border-color: var(--bs-primary);
  background: rgba(3, 193, 36, 0.04);
  text-decoration: none;
  color: var(--gray-900, #222);
}

.open-kakao-item img {
  width: 36px;
  height: 36px;
}

.open-kakao-item .open-kakao-info {
  flex: 1;
}

.open-kakao-item .open-kakao-name {
  font-weight: 600;
  font-size: 15px;
}

.open-kakao-item .open-kakao-desc {
  font-size: 13px;
  color: var(--gray-500, #999);
}
