/* Side Dock Container */
.side-dock {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%) translateX(0);
  display: flex;
  align-items: center;
  z-index: 1000;
  /* Smooth slide transition */
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* CLOSED STATE: Slide out ONLY the panel width (100px), keeping the arrow tab visible */
.side-dock.closed {
  transform: translateY(-50%) translateX(60px);
}

/* Toggle Arrow Button Tab */
.toggle-btn {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-right: none;
  border-radius: 12px 0 0 12px;
  width: 32px;
  height: 90px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  font-size: 14px;
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
  outline: none;
}

/* Arrow rotation effect */
.toggle-btn .arrow-icon {
  display: inline-block;
  transition: transform 0.4s ease;
}

/* Point RIGHT (→) when OPEN (to indicate closing towards right) */
.side-dock .arrow-icon {
  transform: rotate(0deg);
}

/* Point LEFT (←) when CLOSED (to indicate opening towards left) */
.side-dock.closed .arrow-icon {
  transform: rotate(180deg);
}

/* Menu Panel */
.dock-content {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px 0 0 20px;
  width: 100px; /* Matching the translateX width */
  padding: 30px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: -8px 0 25px rgba(0, 0, 0, 0.15);
}

/* Navigation Items */
.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color:rgba(5,28,44,0.85);
  width: 100%;
  padding: 12px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.dock-item:hover {
  transform: translateY(-2px);
  opacity: 0.8;
}

.dock-item i {
  font-size: 26px;
  margin-bottom: 8px;
}

.dock-item span {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

/* Separators */
.dock-item:not(:last-of-type)::after,
.divider {
  content: "";
  display: block;
  width: 80%;
  height: 1px;
  background: rgba(0, 0, 0, 0.15);
  margin-top: 12px;
}

/* Social Media Section */
.social-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  width: 100%;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color:rgba(5,28,44,0.85);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
}

.social-icon:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: scale(1.08);
}
/* added last */

/* Compact panel width */
.dock-content {
  width: 60px;
  padding: 20px 0;
}

/* Set position relative on items for tooltip placement */
.dock-item {
  position: relative;
}

/* Convert text into a floating tooltip */
.dock-item span {
  text-transform: uppercase;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

/* RTL Placement: Position tooltip to the right of the icon */
html[dir="rtl"] .dock-item span {
  right: 110%; /* Displays tooltip to the right side of the dock */
}

/* LTR Placement: Position tooltip to the left of the icon */
html[dir="ltr"] .dock-item span {
  right: 110%;
}

/* Reveal tooltip on hover */
.dock-item:hover span {
  opacity: 1;
}

/* Adjust closed state offset for 60px panel width */
html[dir="rtl"] .side-dock.closed {
  transform: translateY(-50%) translateX(-60px);
}