/* ============================================
   TAGS - Style cho tags system
   Chức năng: Tags input, filter, display
   ============================================ */

/* Tags Input Wrapper */
.tags-input-wrapper {
  border: 2px solid #e6eef8;
  border-radius: var(--radius-sm);
  padding: 8px;
  background: white;
  min-height: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tags-input-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 110, 215, 0.1);
}

/* Tags Display */
.tags-display {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

/* Tag Item */
.tag-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--accent) 0%, #0a5bb8 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

.tag-remove {
  background: rgba(255, 255, 255, 0.3);
  border: none;
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  font-size: 10px;
  transition: all 0.2s;
}

.tag-remove:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Tags Input */
.tags-input {
  flex: 1;
  min-width: 150px;
  border: none;
  outline: none;
  padding: 8px;
  font-size: 14px;
  background: transparent;
}

/* Tags Filter */
.tags-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tag-filter-btn {
  padding: 8px 16px;
  border: 2px solid #e6eef8;
  border-radius: 20px;
  background: white;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 36px;
}

.tag-filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #f0f6ff;
}

.tag-filter-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
  .tags-input-wrapper {
    padding: 6px;
    min-height: 44px;
  }
  
  .tag-item {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .tag-filter-btn {
    padding: 8px 12px;
    font-size: 12px;
    min-height: 44px;
  }
  
  .tags-input {
    min-width: 100px;
    font-size: 16px; /* Ngăn zoom trên iOS */
  }
}



