/* HTAccess Rule Generator - Fixed for Techbiz Theme */

/* Base wrapper */
.hrg-wrap {
  font-family: inherit;
  color: inherit;
  position: relative;
  z-index: 999;
}

/* Grid */
.hrg-grid {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
}

/* Rules column */
.hrg-rules {
  flex: 1 1 60%;
  min-width: 300px;
}

/* Output column */
.hrg-output {
  flex: 1 1 35%;
  background: rgba(0,0,0,0.03);
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.05);
}

/* Rule item box */
.hrg-item {
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.04);
  position: relative;
  z-index: 1;
}

/* Label & checkbox */
.hrg-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 600;
  color: inherit;
}

/* FIX: Make checkboxes visible in all themes */
.hrg-item input[type="checkbox"] {
  all: unset; /* remove all inherited theme styling */
  appearance: checkbox !important;
  -webkit-appearance: checkbox !important;
  -moz-appearance: checkbox !important;
  display: inline-block !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  cursor: pointer !important;
  position: relative !important;
  z-index: 1000 !important;
  accent-color: #0ea5e9 !important; /* uses your site’s accent color */
}

/* Checkbox alignment fix */
.hrg-label input[type="checkbox"] {
  flex-shrink: 0;
}

/* Description */
.hrg-desc {
  margin: 6px 0 0 28px;
  color: rgba(0,0,0,0.65);
  font-size: 14px;
}

/* Inputs */
.hrg-input {
  display: block;
  margin: 8px 0 0 28px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.08);
  width: calc(100% - 28px);
  font-family: inherit;
  font-size: 14px;
  color: inherit;
}

/* Buttons */
.hrg-actions {
  margin-top: 10px;
  padding-left: 4px;
}
.hrg-btn {
  background: var(--tec-primary-color, #0ea5e9);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  margin-right: 8px;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}
.hrg-btn:hover { opacity: 0.95; }
.hrg-btn-secondary { background: #06b6d4; }
.hrg-btn-reset { background: #ef4444; }

/* Output area */
.hrg-output-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.hrg-output-controls button { margin-left: 6px; }

.hrg-code {
  background: #0b1220;
  color: #e6eef8;
  padding: 10px;
  border-radius: 8px;
  white-space: pre-wrap;
  max-height: 400px;
  overflow: auto;
  font-family: Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
}

/* Note */
.hrg-note {
  font-size: 13px;
  color: rgba(0,0,0,0.6);
  margin-top: 10px;
}

/* Elementor overlay safe-guards */
.hrg-wrap, .hrg-wrap * {
  pointer-events: auto !important;
  z-index: 999 !important;
}

/* Responsive */
@media (max-width: 900px) {
  .hrg-grid { flex-direction: column; }
  .hrg-output { order: 2; width: 100%; }
}
