/* Category Popup Styles */
.category-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.category-popup-overlay.active {
  display: flex;
}

.category-popup {
  background: #ffffff;
  border-radius: 15px;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

/* Popup Header */
.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.popup-title {
  font-size: 20px;
  font-weight: 600;
  color: #1ea9e2;
  margin: 0;
}

.popup-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-close:hover {
  background: #f3f4f6;
}

.popup-close svg {
  width: 24px;
  height: 24px;
  color: #6b7280;
}

.popup-close:hover svg {
  color: #1f2937;
}

/* Popup Body */
.popup-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

/* Scrollbar Styling */
.popup-body::-webkit-scrollbar {
  width: 6px;
}

.popup-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.popup-body::-webkit-scrollbar-thumb {
  background: #c4c4c4;
  border-radius: 3px;
}

.popup-body::-webkit-scrollbar-thumb:hover {
  background: #a3a3a3;
}

/* Category Grid - Perbaikan Utama */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Fixed 4 columns */
  gap: 12px;
}

.category-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #f9fafb;
  border-radius: 10px;
  text-decoration: none;
  color: #374151;
  transition: all 0.2s;
  border: 1px solid transparent;
  min-height: 56px; /* Tambahkan min-height untuk konsistensi */
}

.category-item:hover {
  background: #f3f4f6;
  border-color: #e5e7eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.category-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.category-icon svg {
  width: 20px;
  height: 20px;
  color: #6b7280;
}

.category-name {
  font-size: 14px;
  font-weight: 500;
  flex: 1;
  white-space: nowrap; /* Cegah teks wrapping */
  overflow: hidden;
  text-overflow: ellipsis; /* Tambahkan ellipsis jika terlalu panjang */
}

.category-count {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 400;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
/* Responsive Design - Perbaikan */
/* Tablet Landscape */
@media (max-width: 1024px) {
  .category-popup {
    max-width: 90%;
  }
  .category-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columns di tablet */
    gap: 10px;
  }
}
/* Tablet Portrait & Large Mobile */
@media (max-width: 768px) {
  .category-popup {
    max-width: 95%;
    max-height: 95vh;
  }
  .popup-header {
    padding: 16px 20px;
  }
  .popup-title {
    font-size: 18px;
  }
  .popup-body {
    padding: 16px 20px;
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns di tablet portrait */
    gap: 10px;
  }
  .category-item {
    padding: 12px 14px;
    min-height: 50px;
  }
  .category-name {
    font-size: 13px;
  }
  .category-icon {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
  .category-icon svg {
    width: 18px;
    height: 18px;
  }
}
/* Mobile */
@media (max-width: 480px) {
  .category-popup {
    max-width: 100%;
    max-height: 95vh;
    border-radius: 12px;
    margin: 10px;
  }
  .popup-header {
    padding: 14px 16px;
  }
  .popup-title {
    font-size: 16px;
  }
  .popup-body {
    padding: 12px 16px;
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr); /* Tetap 2 columns di mobile */
    gap: 8px;
  }
  .category-item {
    padding: 10px 12px;
    min-height: 44px;
    gap: 8px;
    border-radius: 8px;
  }
  .category-name {
    font-size: 12px;
  }
  .category-icon {
    width: 24px;
    height: 24px;
    font-size: 14px;
  }
  .category-icon svg {
    width: 16px;
    height: 16px;
  }
  .category-count {
    font-size: 10px;
  }
}
/* Mobile Small */
@media (max-width: 360px) {
  .category-grid {
    grid-template-columns: 1fr 1fr; /* Tetap 2 columns */
    gap: 6px;
  }
  .category-item {
    padding: 8px 10px;
    min-height: 40px;
    gap: 6px;
  }
  .category-name {
    font-size: 11px;
  }
  .category-icon {
    width: 20px;
    height: 20px;
    font-size: 12px;
  }
  .category-icon svg {
    width: 14px;
    height: 14px;
  }
}
/* Desktop Large */
@media (min-width: 1025px) {
  .category-grid {
    grid-template-columns: repeat(4, 1fr); /* 4 columns di desktop */
  }
}/*# sourceMappingURL=category-popup.css.map */