/* Advanced search styles extracted from templates/components/advanced.html */
.search-row {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  gap: 10px;
}

.field-label {
  width: 100px;
  font-weight: 500;
  color: #333;
}

.logic-select,
.field-select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: #fff;
}

.logic-select {
  width: 80px;
}

.field-select {
  width: 150px;
}

.ad-search-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.date-range {
  display: flex;
  align-items: center;
  flex: 1;
}

.date-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.date-separator {
  margin: 0 10px;
  color: #666;
}

.add-btn {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
}

.add-btn:hover {
  background: #e0e0e0;
}

.search-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  gap: 15px;
}

.btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary {
  background: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
}

.btn-primary {
  background: #181818 !important;
  color: white;
  border: none;
}

.btn-secondary:hover {
  background: #e0e0e0;
}

/* 图标按钮悬停效果 */
.icon-btn:hover {
  background: #f5f5f5 !important;
  border-color: #999 !important;
  transform: scale(1.05);
}

.classification-btn:hover {
  background: #e8f5e8 !important;
  border-color: #4caf50 !important;
}

.user-btn:hover {
  background: #e3f2fd !important;
  border-color: #2196f3 !important;
}

/* 子行样式 */
.sub-row {
  padding-left: 100px;
  position: relative;
}

.sub-row::before {
  content: "";
  position: absolute;
  left: 80px;
  top: 15px;
  width: 10px;
  height: 1px;
  background-color: #ddd;
}

.btn-primary.disabled {
  background: #cccccc !important;
  cursor: not-allowed;
  opacity: 0.6;
}

