/* 
  Styles for the New Renovate Selector (Tabbed & Accordion)
  and other selector panels
*/

/* --- Base Panel Style --- */
.renovate-selector-panel {
  position: absolute;
  top: 52px;
  right: 32px;
  z-index: 2000;
  width: 320px; /* Wider for tabs */
  border-radius: 12px;
  border: 1px solid var(--color-border-subtle);
  background: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 80vh;
}

.renovate-selector-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border-subtle);
  background: #f9fafb;
}

.renovate-selector-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

/* --- Tabs --- */
.renovate-tabs {
  display: flex;
  padding: 8px 8px 0;
  background: #f9fafb;
  border-bottom: 1px solid var(--color-border-subtle);
  gap: 4px;
  overflow-x: auto;
}

.renovate-tab-btn {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.renovate-tab-btn:hover {
  color: #374151;
}

.renovate-tab-btn.active {
  color: #4f46e5;
  border-bottom-color: #4f46e5;
}

/* --- Body --- */
.renovate-selector-body {
  padding: 0;
  overflow-y: auto;
  flex: 1;
}

/* --- Accordion Items --- */
.renovate-category {
  border-bottom: 1px solid #f3f4f6;
}

.renovate-category:last-child {
  border-bottom: none;
}

.renovate-category-toggle {
  width: 100%;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  border: none;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: background 0.15s;
}

.renovate-category-toggle:hover {
  background: #f9fafb;
}

.renovate-category-toggle .arrow {
  font-size: 10px;
  color: #9ca3af;
  transition: transform 0.2s;
}

.renovate-category-toggle.open .arrow {
  transform: rotate(180deg);
}

.renovate-category-toggle.open {
  background: #f9fafb;
  color: #111827;
}

.renovate-category-content {
  display: none;
  padding: 4px 8px 8px;
  background: #f9fafb;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

/* --- Options Buttons --- */
.renovate-option-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  margin-top: 2px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: white;
  color: #4b5563;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}

.renovate-option-btn:hover {
  background: #eef2ff;
  color: #4f46e5;
  border-color: #c7d2fe;
}

/* --- Animations --- */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.renovate-selector-panel {
  animation: slideDown 0.15s ease-out;
}

/* --- Product Selector Modal Styling (Fallback for non-Tailwind) --- */
/* These classes match the Tailwind classes used in productSelector.js */
.hidden {
  display: none !important;
}

.fixed {
  position: fixed;
}

.inset-0 {
  top: 0; right: 0; bottom: 0; left: 0;
}

.bg-black {
  background-color: rgb(0, 0, 0);
}

.bg-opacity-50 {
  background-color: rgba(0, 0, 0, 0.5);
}

.z-50 {
  z-index: 50;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.bg-white {
  background-color: white;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.w-full {
  width: 100%;
}

.max-w-4xl {
  max-width: 56rem;
}

.max-h-\[90vh\] {
  max-height: 90vh;
}

.p-6 {
  padding: 1.5rem;
}

.m-4 {
  margin: 1rem;
}

.flex-col {
  flex-direction: column;
}

.justify-between {
  justify-content: space-between;
}

.mb-4 {
  margin-bottom: 1rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.font-bold {
  font-weight: 700;
}

.text-gray-500 {
  color: rgb(107, 114, 128);
}

.hover\:text-gray-700:hover {
  color: rgb(55, 65, 81);
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.space-x-2 > :not([hidden]) ~ :not([hidden]) {
  margin-left: 0.5rem;
}

.overflow-x-auto {
  overflow-x: auto;
}

.pb-2 {
  padding-bottom: 0.5rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.bg-gray-100 {
  background-color: rgb(243, 244, 246);
}

.rounded-full {
  border-radius: 9999px;
}

.hover\:bg-gray-200:hover {
  background-color: rgb(229, 231, 235);
}

.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.grid {
  display: grid;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gap-4 {
  gap: 1rem;
}

.overflow-y-auto {
  overflow-y: auto;
}

.p-2 {
  padding: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.pt-4 {
  padding-top: 1rem;
}

.border-t {
  border-top-width: 1px;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.ml-1 {
  margin-left: 0.25rem;
}

.bg-indigo-600 {
  background-color: rgb(79, 70, 229);
}

.text-white {
  color: white;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.rounded {
  border-radius: 0.25rem;
}

.hover\:bg-indigo-700:hover {
  background-color: rgb(67, 56, 202);
}

.border {
  border-width: 1px;
}

.cursor-pointer {
  cursor: pointer;
}

.hover\:shadow-lg:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.ring-2 {
  box-shadow: 0 0 0 2px var(--tw-ring-color);
}

.ring-indigo-600 {
  --tw-ring-color: rgb(79, 70, 229);
}

.h-32 {
  height: 8rem;
}

.bg-gray-200 {
  background-color: rgb(229, 231, 235);
}

.object-cover {
  object-fit: cover;
}

.p-3 {
  padding: 0.75rem;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

/* Responsive Grid */
@media (min-width: 768px) {
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.filter-btn.active {
    background-color: rgb(79, 70, 229) !important;
    color: white !important;
}
