/* menu-left.css */

.menu-left {
  position: fixed;
  top: 50%;
  left: 0;
  width: 40px;
  height: 90%;
  transform: translateY(-50%);
  border-radius: 0 16px 16px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  transition: width 0.35s ease;
  background: rgba(255,140,0,0.09);
  border: 1px solid #ff8c00;
  color: #ffae42;
  cursor: pointer;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 15px rgba(255,140,0,0.2);
}

.menu-left:hover { width: 220px; }

.menu-left .menu-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  justify-content: flex-start;
  align-items: flex-start;
}

.menu-left .menu-title {
  font-size: 16px;
  font-weight: bold;
  color: #ffae42;
  padding: 4px 6px;
  background: rgba(255,140,0,0.1);
  border-radius: 4px;
  text-align: center;
  margin: 20px 0 10px 6px;
  transform: rotate(-90deg);
  transform-origin: left top;
  transition: transform 0.4s ease, width 0.4s ease, margin-top 0.4s ease;
  width: max-content;
}

.menu-left:hover .menu-title {
  transform: rotate(0deg);
  width: 100%;
  margin-top: 0;
  margin-left: 6px;
}

.menu-left .tool-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0 0 6px;
}

.menu-left .tool {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 8px;
  width: max-content;
}

.menu-left .icon {
  position: relative;
  width: 32px;
  height: 32px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.menu-left .icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid #ff8c00;
  border-radius: 6px;
  background: rgba(255,140,0,0.2);
  z-index: -1;
  transition: all 0.3s ease;
}

.menu-left .icon:hover::before {
  background: rgba(255,140,0,0.4);
  transform: scale(1.2);
}

.menu-left .tool.selected .icon::before {
  background: rgba(255,140,0,0.4);
  transform: scale(1.1);
  border-color: #ffae42;
}

.menu-left .tool .tool-name {
  display: none;
  font-size: 14px;
  white-space: nowrap;
}

.menu-left:hover .tool .tool-name {
  display: inline;
}
