/* Premium Glassmorphic Toolbar Design */
.dashbdiv-upper {
  width: auto;
  background: var(--color-white);
  color: var(--color-white);
  border-top-right-radius: var(--radius-md);
  border-top-left-radius: var(--radius-md);
  border-bottom: 1px solid hsl(var(--border));
  position: sticky;
  top: 0;
  z-index: 100;
  height: 5vh;
  display: flex;
}

.profile_tool {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  padding: 0.1rem 0;
  background: hsl(var(--muted));
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
  position: sticky;
  top: 5vh;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.tooldiv {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 5px 20px;
}

.toolnone {
  display: none;
}

/* Button Grouping */
.tool-group-right {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}

/* Base style for toolbar buttons */
.toolfrmleft,
.toolfrmright {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(54, 1, 31, 0.05);
  border: 1px solid rgba(54, 1, 31, 0.1);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.toolfrmleft:hover,
.toolfrmright:hover {
  background: #36011f;
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(54, 1, 31, 0.3);
}

.toolfrmleft:active,
.toolfrmright:active {
  transform: translateY(-1px);
}

/* PNG Icon Handling */
.toolicon {
  width: auto;
  height: 3vh;
  transition: all 0.3s ease;
}

.toolfrmleft:hover .toolicon,
.toolfrmright:hover .toolicon {
  filter: brightness(0) invert(1);
  /* Turns PNG icons white on dark hover */
  transform: scale(1.1);
}

/* Page Size Selector Styling */
.page-size-selector {
  display: flex;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 5px;
  gap: 5px;
  border: 1px solid rgba(54, 1, 31, 0.1);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  margin-left: 5px;
}

.page-size-btn {
  position: relative;
  border: none;
  background: transparent;
  padding: 5px;
  border-radius: 12px;
  font-size: 9px;
  font-weight: 700;
  color: var(--color-text, #444);
  cursor: pointer;
  transition: var(--transition-normal, all 0.3s ease);
  box-shadow: none;
  height: 3vh;
}

.page-size-btn.active {
  background: var(--color-primary, #36011f);
  color: white;
  box-shadow: var(--shadow-sm);
}

.page-size-btn:hover:not(.active) {
  background: rgba(0, 0, 0, 0.07);
  transform: translateY(-1px);
}

.envelope-size-select {
  border-radius: 5px;
}

/* Tooltips - Modern Glassmorphism Style */
.toolfrmright[title],
.toolfrmleft[title],
.page-size-btn[title],
.tool-btn[title] {
  position: relative;
}

.toolfrmright[title]::after,
.toolfrmleft[title]::after,
.page-size-btn[title]::after,
.tool-btn[title]::after {
  content: attr(title);
  position: absolute;
  bottom: -38px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(15, 23, 42, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  white-space: nowrap;
  z-index: 200000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tooltip Arrow */
.toolfrmright[title]::before,
.toolfrmleft[title]::before,
.page-size-btn[title]::before,
.tool-btn[title]::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  border: 6px solid transparent;
  border-bottom-color: rgba(15, 23, 42, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 200000;
  pointer-events: none;
}

.toolfrmright[title]:hover::after,
.toolfrmleft[title]:hover::after,
.page-size-btn[title]:hover::after,
.tool-btn[title]:hover::after,
.toolfrmright[title]:hover::before,
.toolfrmleft[title]:hover::before,
.page-size-btn[title]:hover::before,
.tool-btn[title]:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}


/* Profile Toolbars */
.profile_tool_container {
  width: 100%;
  margin: 0;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  height: 7vh; /* Fixed height for stability */
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
}

.glass-toolbar {
  width: 100%;
  margin: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 5px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tool-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
}

.tool-action-group {
  display: flex;
}

/* Tab Navigation */
.tab-nav {
  display: flex;
  background: rgba(0, 0, 0, 0.05);
  padding: 4px;
  border-radius: 12px;
  gap: 4px;
  flex: 1;
  margin: 0 20px;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.tab-nav::-webkit-scrollbar {
  display: none;
}

.tab-item {
  padding: 4px;
  border-radius: 8px;
  font-size: 9px;
  color: var(--color-text-light);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  white-space: nowrap;
}

.tab-item.active {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tab-item:hover:not(.active) {
  background: rgba(255, 255, 255, 0.5);
  color: var(--color-text);
}

.step-num {
  width: 18px;
  height: 18px;
  background: var(--color-gray);
  color: var(--color-text-light);
  border-radius: 50%;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.active .step-num {
  background: var(--color-primary);
  color: white;
}

.tab-item.completed:not(.active) .step-num {
  background: var(--color-success);
  color: white;
}

/* Locked Step Styling */
.tab-item.locked {
  cursor: not-allowed;
  opacity: 0.5;
  filter: grayscale(1);
  pointer-events: none;
}

.tab-item.locked:hover {
  background: transparent;
  color: var(--color-text-light);
  transform: none;
}

.tab-item.locked .step-num {
  background: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.3);
}

.tab-fit {
  display: flex;
  background: rgba(0, 0, 0, 0.05);
  padding: 2px;
  border-radius: 6px;
  gap: 4px;
  margin: 0 5px;
  justify-content: center;
  width: fit-content;
}

/* Search Box Integration */
.search-box {
  flex: 1;
  max-width: 400px;
  margin: 0 15px;
  display: flex;
  align-items: center;
}

.input-wrapper {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  opacity: 0.5;
  z-index: 1;
}

.glass-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 6px 10px 6px 32px;
  border-radius: 6px;
  font-size: 13px;
  transition: all 0.3s ease;
  outline: none;
}

.glass-input:focus {
  background: #fff;
  border-color: #36011f;
  box-shadow: 0 0 0 3px rgba(54, 1, 31, 0.1);
}

/* Utility Classes for Inline Style Removal */
.hidden {
  display: none !important;
}

.mr-1 {
  margin-right: 4px !important;
}

.mr-2 {
  margin-right: 8px !important;
}

.mr-3 {
  margin-right: 12px !important;
}

.ml-1 {
  margin-left: 4px !important;
}

.ml-2 {
  margin-left: 8px !important;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-select-sm {
  font-size: 11px !important;
  padding: 4px 4px !important;
}
.tool-btn{
	  margin: 0 2px !important;
}
.tool-btn-sm {
  padding: 2px 8px !important;
  font-size: 10px !important;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.glass-input-sm {
  padding: 4px 10px 4px 28px !important;
  font-size: 12px !important;
  width: 180px !important;
}

.w-full {
  width: 100% !important;
}

.w-fit {
  width: fit-content !important;
}

.flex-1 {
  flex: 1 !important;
}

.mx-0 {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.justify-start {
  justify-content: flex-start !important;
}

.gap-4 {
  gap: 16px !important;
}