/* Fleetx CMS — edit mode styles. Inactive unless <html class="cms-edit-mode">. */

.cms-edit-mode body { padding-top: 52px; }

.cms-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: #0A0A0F;
  color: #F5F5F2;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  border-bottom: 1px solid #232330;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.cms-bar__brand { font-weight: 600; letter-spacing: .04em; }
.cms-bar__user { opacity: .6; margin-right: auto; }
.cms-bar button {
  padding: 6px 12px;
  background: #1A1A24;
  color: #F5F5F2;
  border: 1px solid #2C2C3A;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
}
.cms-bar button:hover { background: #2A2A38; }

.cms-edit-mode .cms-editable {
  outline: 1px dashed transparent;
  outline-offset: 2px;
  cursor: text;
  transition: outline-color .12s ease, background-color .12s ease;
}
.cms-edit-mode .cms-editable:hover {
  outline-color: #79F395;
  background-color: rgba(121, 243, 149, .08);
}
.cms-edit-mode .cms-editable[data-cms-applied="1"] {
  outline: 1px solid rgba(121, 243, 149, .35);
  outline-offset: 2px;
}
.cms-edit-mode .cms-editing {
  outline: 2px solid #79F395 !important;
  background-color: rgba(121, 243, 149, .12) !important;
}

.cms-toolbar {
  position: absolute;
  z-index: 999998;
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #0A0A0F;
  border: 1px solid #2C2C3A;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
  font-family: 'DM Sans', system-ui, sans-serif;
}
.cms-toolbar button {
  padding: 6px 10px;
  background: transparent;
  color: #F5F5F2;
  border: 0;
  border-radius: 6px;
  font: 600 12px/1 'DM Sans', system-ui, sans-serif;
  cursor: pointer;
}
.cms-toolbar button[data-act="save"] { background: #79F395; color: #0A0A0F; }
.cms-toolbar button[data-act="reset"] { color: #FF8B8B; }
.cms-toolbar button:hover { filter: brightness(1.1); }

.cms-meta {
  position: fixed;
  top: 72px;
  right: 18px;
  z-index: 999998;
  width: 420px;
  max-width: calc(100vw - 36px);
  padding: 18px;
  background: #0A0A0F;
  color: #F5F5F2;
  border: 1px solid #2C2C3A;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
  font-family: 'DM Sans', system-ui, sans-serif;
}
.cms-meta h3 { margin: 0 0 14px; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; opacity: .7; }
.cms-meta label { display: block; font-size: 12px; opacity: .7; margin-bottom: 10px; }
.cms-meta input, .cms-meta textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  background: #14141C;
  color: #F5F5F2;
  border: 1px solid #2C2C3A;
  border-radius: 6px;
  font: 13px/1.5 'DM Sans', system-ui, sans-serif;
  box-sizing: border-box;
}
.cms-meta textarea { resize: vertical; }
.cms-meta__actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.cms-meta__actions button {
  padding: 8px 14px;
  background: #1A1A24;
  color: #F5F5F2;
  border: 1px solid #2C2C3A;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
}
.cms-meta__actions button[data-act="save"] { background: #79F395; color: #0A0A0F; border-color: #79F395; }
