/*
 * Customer layout specific styles
 * Desktop sidebar collapsed state styles
 */

/* Desktop sidebar collapsed state */
.desktop-collapsed .sidebar-text {
  display: none;
}

.desktop-collapsed .sidebar-logo-text {
  display: none;
}

.desktop-collapsed .sidebar-user-text {
  display: none;
}

.desktop-collapsed .sidebar-icon {
  justify-content: center;
}

.desktop-collapsed .sidebar-link {
  justify-content: center;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Ensure logo and icons are always visible */
.desktop-collapsed .sidebar-icon img {
  display: block;
}

.desktop-collapsed .sidebar-link svg {
  display: block;
}

/* Center the logo section when collapsed */
.desktop-collapsed .p-6 {
  padding: 1.5rem 0.5rem;
}

/* Center navigation items when collapsed */
.desktop-collapsed .p-4 {
  padding: 1rem 0.5rem;
}

/* Ensure navigation links are properly centered */
.desktop-collapsed .sidebar-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

/* Make sure the logo is visible and centered */
.desktop-collapsed .sidebar-icon {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Keep icon sizes the same when collapsed */
.desktop-collapsed .sidebar-link svg {
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0;
}

.desktop-collapsed .sidebar-icon img {
  height: 48px !important;
  width: auto !important;
  flex-shrink: 0;
}

/* Ensure proper spacing for collapsed state */
.desktop-collapsed .sidebar-link {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

/* Login section styling when collapsed */
.desktop-collapsed .sidebar-icon svg {
  display: block;
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0;
}

/* Center login link when collapsed */
.desktop-collapsed .sticky a.flex.items-center {
  justify-content: center;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

/*
 * Feedback form editor styles
 */
[data-feedback-target="editor"]:empty:before {
  content: attr(data-placeholder);
  color: #9ca3af;
  pointer-events: none;
}

[data-feedback-target="editor"]:focus {
  outline: none;
}

[data-feedback-target="editor"] ul,
[data-feedback-target="editor"] ol {
  margin-left: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

[data-feedback-target="editor"] ul {
  list-style-type: disc;
}

[data-feedback-target="editor"] ol {
  list-style-type: decimal;
}

[data-feedback-target="editor"] p {
  margin-bottom: 0.5rem;
}

/*
 * Range slider styles with green progress bar
 */
.range-slider-green {
  -webkit-appearance: none;
  appearance: none;
  background: #e5e7eb;
  outline: none;
}

/* Webkit browsers (Chrome, Safari, Edge) */
.range-slider-green::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #10b981;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.range-slider-green::-webkit-slider-thumb:hover {
  background: #059669;
  transform: scale(1.1);
}

/* Firefox */
.range-slider-green::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #10b981;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.range-slider-green::-moz-range-thumb:hover {
  background: #059669;
  transform: scale(1.1);
}

/* Focus state */
.range-slider-green:focus {
  outline: none;
}

.range-slider-green:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

.range-slider-green:focus::-moz-range-thumb {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

