/* ==========================================================================
   SchemCAD — Master Engineer Bench Tools Menu & Hub Pills Styling
   File: frontend/master_tools_menu.css
   ========================================================================== */
.mtm-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.mtm-trigger-btn {
  border-color: rgba(52, 211, 153, 0.48) !important;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.08) 100%) !important;
  color: #d1fae5 !important;
  gap: 5px;
}

.mtm-trigger-btn:hover {
  border-color: #34d399 !important;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.32) 0%, rgba(16, 185, 129, 0.14) 100%) !important;
  color: #ffffff !important;
}

.mtm-trig-ico {
  font-size: 13px;
  line-height: 1;
}

.mtm-caret {
  font-size: 10px;
  opacity: 0.78;
}

.mtm-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: min(390px, calc(100vw - 16px));
  background: #0f1520;
  border: 1px solid #2b3c56;
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(52, 211, 153, 0.12);
  padding: 6px;
  z-index: 9800;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mtm-dropdown.hidden {
  display: none !important;
}

.mtm-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: #e2e8f0;
  text-align: left;
  cursor: pointer;
  transition: all 0.12s ease;
}

.mtm-item:hover {
  background: #172133;
  border-color: #33496b;
}

.mtm-ico {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #6ee7b7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.mtm-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.mtm-row1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.mtm-row1 strong {
  font-size: 12.5px;
  font-weight: 700;
  color: #f8fafc;
}

.mtm-badge {
  font-family: var(--mono, monospace);
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(234, 179, 8, 0.14);
  border: 1px solid rgba(250, 204, 21, 0.35);
  color: #fde047;
  white-space: nowrap;
}

.mtm-desc {
  font-size: 11px;
  color: #8fa1bc;
  line-height: 1.3;
}

/* Hub Launchpad Shortcuts Strip */
.mtm-hub-strip {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mtm-hub-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mtm-hub-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 29px;
  padding: 0 11px;
  border-radius: 6px;
  background: rgba(18, 26, 39, 0.92);
  border: 1px solid #2b3c56;
  color: #d6e2f5;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}

.mtm-hub-pill:hover {
  background: rgba(16, 185, 129, 0.16);
  border-color: #34d399;
  color: #ffffff;
  transform: translateY(-1px);
}

.mtm-hub-pill-ico {
  font-size: 13px;
  color: #34d399;
}

@media (max-width: 780px) {
  #mtmTriggerLabel {
    display: none;
  }
  .mtm-dropdown {
    right: -44px;
  }
}
