/**
 * preset-panel.css — Stylesheet Panel Preset Penyembuhan
 * Deskripsi: Mengatur tampilan tombol-tombol preset kondisi kesehatan.
 */

/* === Search Bar === */
.searchContainer {
  padding: 5px 15px 5px 15px;
  position: relative;
}

#presetSearch {
  width: 100%;
  padding: 1px 45px 1px 36px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 170, 255, 0.3);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

#presetSearch::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

#presetSearch:focus {
  border-color: rgba(0, 170, 255, 0.8);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 8px rgba(0, 170, 255, 0.2);
}

.searchIcon {
  position: absolute;
  left: 26px;
  top: 8px;
  color: rgba(0, 170, 255, 0.6);
  font-size: 14px;
  pointer-events: none;
}

.clearIcon {
  position: absolute;
  right: 26px;
  top: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s;
  display: none;
}

.clearIcon:hover {
  color: rgba(255, 255, 255, 1);
}

/* === Kontainer Panel Preset === */
.presetPanel {
  padding: 10px 15px;
}

/* === Kategori Preset === */
.presetCategory {
  margin: 6px 0 6px 0;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(0, 170, 255, 0.1);
}

/* === Judul Kategori === */
.categoryTitle {
  color: #0af;
  font-size: 13px;
  font-weight: bold;
  padding: 0 10px;
  background: rgba(0, 170, 255, 0.05);
  border-bottom: 1px solid rgba(0, 170, 255, 0.1);
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  transition: background 0.2s;
}

.categoryTitle:hover {
  background: rgba(0, 170, 255, 0.15);
}

.categoryTitle .catIcon {
  margin-right: 6px;
}

.toggleIcon {
  display: inline-block;
  width: 16px;
  font-family: monospace;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.5);
  margin-right: 4px;
}

/* === Sub Kategori === */
.categoryContent {
  padding: 2px 6px 6px 6px;
}

.subCategory {
  margin-top: 2px;
}

.subCategoryTitle {
  color: #ddd;
  font-size: 11px;
  font-weight: 600;
  padding: 0 6px;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.subCategoryTitle:hover {
  color: #fff;
}

.subCategoryTitle .toggleIcon {
  width: 12px;
  font-size: 10px;
}

/* === Grid Tombol Preset === */
.presetGrid {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 2px 2px 2px 14px;
}

/* === Tombol Preset Individu === */
.presetBtn {
  background: rgba(255, 255, 255, 0.08);
  color: #ccc;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  line-height: 1.3;
  transition: all 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.05);
  user-select: none;
}

.presetBtn:hover {
  background: rgba(0, 170, 255, 0.25);
  color: #fff;
  border-color: rgba(0, 170, 255, 0.4);
}

.presetBtn:active {
  transform: scale(0.95);
}

/* Empty state for search */
.noResults {
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  padding: 20px 0;
  font-size: 13px;
  font-style: italic;
}