/* Editor Visual do Administrador Geral - Churrasqueiro Brasa */
.admin-visual-editor-entry {
  border-color: rgba(242, 107, 33, 0.5) !important;
}

body.brasa-visual-editing {
  padding-bottom: 84px;
}

body.brasa-visual-editing .brasa-editable-hover {
  outline: 1px dashed rgba(242, 107, 33, 0.8) !important;
  outline-offset: 3px;
  cursor: text !important;
}

body.brasa-visual-editing .brasa-editor-selected {
  outline: 3px solid #f26b21 !important;
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(242, 107, 33, 0.14) !important;
  position: relative;
  z-index: 3;
}

body.brasa-visual-editing [contenteditable="true"] {
  min-width: 1ch;
  cursor: text !important;
  caret-color: #f26b21;
}

#brasa-visual-editor-ui,
#brasa-visual-editor-ui * {
  box-sizing: border-box;
}

#brasa-visual-editor-ui {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 2147483000;
  width: min(420px, calc(100vw - 24px));
  max-height: min(78vh, 720px);
  overflow: auto;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(20, 20, 22, 0.97);
  color: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  backdrop-filter: blur(18px);
}

.brasa-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.brasa-editor-kicker {
  color: #f26b21;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brasa-editor-title {
  margin: 3px 0 0;
  color: #fff;
  font-size: 1.04rem;
  line-height: 1.25;
}

.brasa-editor-close {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
}

.brasa-editor-help {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(242,107,33,.10);
  border: 1px solid rgba(242,107,33,.22);
  color: #dedede;
  font-size: .77rem;
  line-height: 1.45;
}

.brasa-editor-selected-name {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 9px 10px;
  border-radius: 10px;
  background: #101012;
  border: 1px solid rgba(255,255,255,.1);
  color: #bdbdbd;
  font: 600 .72rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brasa-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.brasa-editor-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.brasa-editor-field.wide {
  grid-column: 1 / -1;
}

.brasa-editor-field label {
  color: #b8b8bd;
  font-size: .7rem;
  font-weight: 700;
}

.brasa-editor-control {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  background: #111114;
  color: #fff;
  padding: 8px 10px;
  font: 600 .78rem/1.2 "Plus Jakarta Sans", Arial, sans-serif;
  outline: none;
}

.brasa-editor-control:focus {
  border-color: #f26b21;
  box-shadow: 0 0 0 3px rgba(242,107,33,.12);
}

input[type="color"].brasa-editor-control {
  padding: 4px;
  cursor: pointer;
}

.brasa-editor-inline-actions,
.brasa-editor-footer-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.brasa-editor-footer-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.brasa-editor-btn {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.07);
  color: #fff;
  font: 750 .76rem/1.2 "Plus Jakarta Sans", Arial, sans-serif;
  cursor: pointer;
  transition: .18s ease;
}

.brasa-editor-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(242,107,33,.7);
}

.brasa-editor-btn.primary {
  background: #f26b21;
  border-color: #f26b21;
  color: #fff;
}

.brasa-editor-btn.danger {
  background: rgba(220, 53, 69, .12);
  border-color: rgba(220, 53, 69, .38);
}

#brasa-editor-status {
  min-height: 18px;
  margin-top: 10px;
  color: #aeb0b6;
  font-size: .7rem;
  text-align: center;
}

.brasa-editor-mode-badge {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 2147482999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: #f26b21;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
  font: 800 .72rem/1 "Plus Jakarta Sans", Arial, sans-serif;
}

@media (max-width: 640px) {
  #brasa-visual-editor-ui {
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: auto;
    max-height: 62vh;
    border-radius: 14px;
  }
  .brasa-editor-grid {
    grid-template-columns: 1fr 1fr;
  }
  .brasa-editor-mode-badge {
    left: 8px;
    bottom: calc(62vh + 18px);
  }
}
