@charset "UTF-8";
/* =============================================================================
   Login Page Styles
   ============================================================================= */
.app-scope.login-page {
  position: relative;
  background-color: #f5f7fa;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-form {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 2.5rem;
  background-color: #fff;
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.login-form .cms-title {
  font-family: var(--font-heading);
  font-size: 24px;
  color: #333;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
  opacity: 0.9;
}

.login-form .logo {
  width: 100px;
  margin-bottom: 1rem;
}

.login-form form {
  width: 100%;
}

/* =============================================================================
   Input Fields Styling
   ============================================================================= */
.field {
  width: 100%;
  margin-bottom: 1rem;
  position: relative;
}

.field input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: none;
  background: #f1f3f6;
  font-size: 14px;
  color: #444;
  transition: box-shadow 0.2s ease;
  box-shadow: inset 0 0 0 2px transparent;
}

.field input:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px #008080;
}

.field label {
  position: absolute;
  top: 12px;
  left: 16px;
  font-size: 14px;
  color: #aaa;
  pointer-events: none;
  transition: all 0.2s ease;
}

.field input:not(:-moz-placeholder) + label {
  top: -8px;
  left: 12px;
  font-size: 12px;
  color: #008080;
  background: white;
  padding: 0 4px;
  font-weight: 500;
}

.field input:not(:placeholder-shown) + label,
.field input:focus + label {
  top: -8px;
  left: 12px;
  font-size: 12px;
  color: #008080;
  background: white;
  padding: 0 4px;
  font-weight: 500;
}

/* =============================================================================
   Gradient Button Styling (wie auf deinem Bild!)
   ============================================================================= */
.app-scope .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #3acfd5, #3a4ed5, #c93ad5, #ff3a79, #ffbc3a);
  background-size: 200% 200%;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.app-scope .button:hover {
  background-position: right center;
}

/* =============================================================================
   Optional: SVG-Overlay und Branding (aus deinem ursprünglichen Code)
   ============================================================================= */
.app-scope.login-page::before {
  content: "";
  position: fixed;
  bottom: 0;
  right: 0;
  width: 400px;
  height: 300px;
  background: url("/assets/images/bg-bars-fixed-corner.svg") no-repeat bottom right;
  background-size: contain;
  opacity: 1;
  z-index: -2;
  pointer-events: none;
}

.app-scope.login-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 0;
  pointer-events: none;
}

/* Branding oben links (optional) */
.branding-top-left {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 24px;
  font-weight: 600;
  color: #333;
  opacity: 0.9;
  z-index: 1;
}

/* =============================================================================
   Login Page Styles
   ============================================================================= */
.app-scope.login-page {
  position: relative;
  background-color: #f5f7fa;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-form {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 2.5rem;
  background-color: #fff;
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.login-form .cms-title {
  font-family: var(--font-heading);
  font-size: 24px;
  color: #333;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
  opacity: 0.9;
}

.login-form .logo {
  width: 100px;
  margin-bottom: 1rem;
}

.login-form form {
  width: 100%;
}

/* =============================================================================
   Input Fields Styling
   ============================================================================= */
.field {
  width: 100%;
  margin-bottom: 1rem;
  position: relative;
}

.field input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: none;
  background: #f1f3f6;
  font-size: 14px;
  color: #444;
  transition: box-shadow 0.2s ease;
  box-shadow: inset 0 0 0 2px transparent;
}

.field input:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px #008080;
}

.field label {
  position: absolute;
  top: 12px;
  left: 16px;
  font-size: 14px;
  color: #aaa;
  pointer-events: none;
  transition: all 0.2s ease;
}

.field input:not(:-moz-placeholder) + label {
  top: -8px;
  left: 12px;
  font-size: 12px;
  color: #008080;
  background: white;
  padding: 0 4px;
  font-weight: 500;
}

.field input:not(:placeholder-shown) + label,
.field input:focus + label {
  top: -8px;
  left: 12px;
  font-size: 12px;
  color: #008080;
  background: white;
  padding: 0 4px;
  font-weight: 500;
}

/* =============================================================================
   Gradient Button Styling (wie auf deinem Bild!)
   ============================================================================= */
.app-scope .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #3acfd5, #3a4ed5, #c93ad5, #ff3a79, #ffbc3a);
  background-size: 200% 200%;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.app-scope .button:hover {
  background-position: right center;
}

/* =============================================================================
   Optional: SVG-Overlay und Branding (aus deinem ursprünglichen Code)
   ============================================================================= */
.app-scope.login-page::before {
  content: "";
  position: fixed;
  bottom: 0;
  right: 0;
  width: 400px;
  height: 300px;
  background: url("/assets/images/bg-bars-fixed-corner.svg") no-repeat bottom right;
  background-size: contain;
  opacity: 1;
  z-index: -2;
  pointer-events: none;
}

.app-scope.login-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 0;
  pointer-events: none;
}

/* Branding oben links (optional) */
.branding-top-left {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 24px;
  font-weight: 600;
  color: #333;
  opacity: 0.9;
  z-index: 1;
}

.main-content {
  display: flex;
  flex-direction: row;
  gap: 16px;
  background: var(--color-light-gray, #f6f6f7);
}

#adminGrid {
  min-height: 100vh;
}

.resize-handle.br {
  position: absolute;
  width: 12px;
  height: 12px;
  bottom: 0;
  right: 0;
  cursor: se-resize;
  background: url("/assets/icons/resize.svg") no-repeat center;
}

#content {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.canvas-grid,
.canvas-grid * {
  box-sizing: content-box;
}

.canvas-grid {
  width: 100%;
  min-height: 300px;
  position: relative;
  background: var(--color-bg);
  overflow-x: hidden;
  overflow-y: visible;
  height: auto;
}

.canvas-item {
  position: absolute;
  overflow: visible;
  background: var(--color-white);
  border-radius: 9px;
  /*box-shadow: var(--shadow-card);*/
  transition: all 0.2s ease;
  will-change: transform;
  z-index: 0;
}

body.dashboard-edit-mode .canvas-item {
  border: none;
}

/* =============================================================================
   Fonts
   ============================================================================= */
@font-face {
  font-family: "Noto Sans Variable";
  src: url("../fonts/NotoSans-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 75% 100%;
  font-style: normal;
}
@font-face {
  font-family: "Noto Sans Variable";
  src: url("../fonts/NotoSans-Italic-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 75% 100%;
  font-style: italic;
}
@font-face {
  font-family: "Open Sans Variable";
  src: url("../fonts/OpenSans-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 75% 100%;
  font-style: normal;
}
@font-face {
  font-family: "Open Sans Variable";
  src: url("../fonts/OpenSans-Italic-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 75% 100%;
  font-style: italic;
}
/* ================================
 Google Fonts imports (zentral)
 ================================ */
/* Google fonts are loaded dynamically when the provider is enabled. */
/* =============================================================================
   Global Variables (Branding)
   ============================================================================= */
:root {
  --color-bg: #ffffff;
  --color-secondary-light: #F5F5F5;
  --color-text: #222222;
  --color-white: #FFFFFF;
  --color-white-dark: #F7F7F7;
  --user-color: #008080;
  --color-primary: var(--user-color);
  --gradient-primary: linear-gradient(90deg, var(--user-color), #FF00FF, #FFA500);
  --shadow-card: 0 1px 28px rgba(0,0,0,0.07);
  --shadow-default: 0px 0px 0px 1px rgba(64, 87, 109, .04), 0px 6px 20px -4px rgba(64, 87, 109, .3);
  --font-body: "Manrope", sans-serif;
  --font-heading: "Oswald", sans-serif;
  --font-mono: monospace;
}

/* =============================================================================
   Global Styles (ohne Login-spezifischen Kram)
   ============================================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Default font for all body text */
body {
  font-family: var(--font-body);
  color: var(--color-text);
}

.widget-container {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.widget-container.loading {
  opacity: 0;
}

.widget-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--color-text);
  background: var(--color-secondary-light);
  opacity: 0.6;
}

.canvas-item.loading {
  background: var(--color-secondary-light);
}

/* Canvas grid relies on content-box sizing. Reset inside its container */
/* Basic Text Styles */
h1,
h2,
h3 {
  font-family: var(--font-heading);
  margin: 0 0 16px;
  color: var(--color-text);
}

h1 {
  font-size: 36px;
  font-weight: 700;
}

h2 {
  font-size: 28px;
  font-weight: 600;
}

h3 {
  font-size: 24px;
  font-weight: 600;
}

p {
  margin: 0 0 16px;
}

/* Remove default focus outline for better custom focus styles */
*:focus-visible {
  outline: none;
}

/* =============================================================================
   Buttons (angepasst an modernes Login-Design)
   ============================================================================= */
.app-scope .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #3acfd5, #3a4ed5, #c93ad5, #ff3a79, #ffbc3a);
  background-size: 200%;
  background-position: left center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  opacity: 1;
}

.app-scope .button:hover {
  background-position: right center;
}

/* Optional: Dezenter Glanzeffekt beim Hover */
.app-scope .button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  height: 100%;
  width: 50%;
  background: rgba(255, 255, 255, 0.25);
  transform: skewX(-45deg);
  transition: left 0.5s ease;
}

.app-scope .button:hover::before {
  left: 150%;
}

.app-scope form {
  display: flex;
  flex-direction: column;
  gap: 8px; /* optimaler Abstand zwischen Feldern */
  position: relative;
}

.app-scope .field {
  position: relative;
  width: 100%;
}

.app-scope .field input,
.app-scope .field textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 8px;
  border: none;
  background-color: #f1f3f6;
  font-size: 15px;
  color: #333;
  transition: box-shadow 0.2s ease;
  box-shadow: inset 0 0 0 2px transparent;
}

.app-scope .field input:focus,
.app-scope .field textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px #008080;
  background-color: #ffffff;
}

.app-scope .field label {
  position: absolute;
  top: 14px;
  left: 18px;
  font-family: var(--font-body);
  font-weight: 500;
  color: #888;
  pointer-events: none;
  font-size: 14px;
  transition: all 0.2s ease;
}

.app-scope .field input:not(:-moz-placeholder) + label, .app-scope .field textarea:not(:-moz-placeholder) + label {
  top: -7px;
  left: 14px;
  font-size: 12px;
  color: #008080;
  background: #ffffff;
  padding: 0 4px;
  font-weight: 500;
}

.app-scope .field input:not(:placeholder-shown) + label,
.app-scope .field input:focus + label,
.app-scope .field textarea:not(:placeholder-shown) + label,
.app-scope .field textarea:focus + label {
  top: -7px;
  left: 14px;
  font-size: 12px;
  color: #008080;
  background: #ffffff;
  padding: 0 4px;
  font-weight: 500;
}

.app-scope form .button {
  margin-top: 14px;
}

.custom-select {
  position: relative;
  display: inline-block;
}
.custom-select .display {
  background: var(--color-secondary-light);
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.custom-select .options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-white);
  border: 1px solid #eee;
  box-shadow: var(--shadow-default);
  border-radius: 4px;
  z-index: 1000;
  display: none;
}
.custom-select.open .options {
  display: block;
}
.custom-select .option {
  padding: 4px 8px;
  cursor: pointer;
}
.custom-select .option:hover {
  background: var(--color-secondary-light);
}

.color-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.color-picker .color-section {
  display: grid;
  grid-auto-flow: row;
  grid-template-columns: repeat(6, 24px);
  gap: 6px;
  align-items: center;
}
.color-picker .color-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  padding: 0;
  background: none;
}
.color-picker .color-circle.active {
  border-color: var(--user-color);
}
.color-picker .color-circle.add-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px dashed #ccc;
  color: #555;
}
.color-picker .color-input {
  width: 60px;
  padding: 2px 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 12px;
  outline: none;
}
.color-picker .color-section-label {
  margin-right: 4px;
  font-size: 12px;
  color: var(--color-text);
}
.color-picker .color-picker-close {
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  color: var(--color-text);
}

.color-picker.floating {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 1000;
  background: var(--color-white);
  padding: 8px;
  border: 1px solid #eee;
  box-shadow: var(--shadow-default);
  border-radius: 8px;
}

/* =============================================================================
   Cards (optional)
   ============================================================================= */
.app-scope .card {
  background-color: var(--color-white);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  padding: 16px;
  position: relative;
}
.app-scope .card--paragraph {
  background-color: #F3E8FF;
}
.app-scope .card--quote, .app-scope .card--image {
  border: 2px solid var(--gradient-primary);
}

/* =============================================================================
   Responsive Anpassungen
   ============================================================================= */
@media (max-width: 500px) {
  .app-scope .login-form {
    padding: 24px;
    margin: 0 16px;
  }
}
/* =============================================================================
   components/_sidebar-bubble.scss — Bubble-Style Sidebar
   ============================================================================= */
.sidebar {
  left: 0;
  height: 100vh;
  width: 64px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px 0;
  z-index: 10;
}
.sidebar .sidebar-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sidebar .sidebar-nav .sidebar-item {
  position: relative;
  width: 48px;
  height: 48px;
  margin: 8px 0;
}
.sidebar .sidebar-nav .sidebar-item .icon {
  width: 24px;
  height: 24px;
  display: block;
  margin: auto;
  fill: var(--color-text);
  transition: fill 0.2s ease;
}
.sidebar .sidebar-nav .sidebar-item .label {
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%) translateX(0) scale(0.8);
  transform-origin: left center;
  background: var(--color-white);
  padding: 4px 8px;
  border-radius: 4px;
  box-shadow: var(--shadow-card);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 1000;
}
.sidebar .sidebar-nav .sidebar-item:hover {
  border: 1px solid var(--gradient-primary);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.sidebar .sidebar-nav .sidebar-item:hover .icon {
  fill: var(--color-white);
}
.sidebar .sidebar-nav .sidebar-item:hover .label {
  opacity: 1;
  transform: translateY(-50%) translateX(8px) scale(1);
}
.sidebar .sidebar-nav .sidebar-item.active {
  background: var(--gradient-primary);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.sidebar .sidebar-nav .sidebar-item.active .icon {
  fill: var(--color-white);
}

/* =============================================================================
   components/_header-main.scss — Icon‐Style Header Nav
   ============================================================================= */
.main-header {
  display: flex;
  align-items: center;
  padding: 30px 25px;
  background: var(--color-white);
}
.main-header .site-title {
  flex-grow: 1;
  font-family: var(--font-heading);
  font-size: 30px;
  margin: 0;
  color: var(--color-text);
}
.main-header .nav-icons {
  display: flex;
  gap: 12px;
}
.main-header .nav-icons a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  transition: background 0.2s ease, color 0.2s ease;
}
.main-header .nav-icons a .icon {
  width: 20px;
  height: 20px;
  fill: var(--color-primary);
  transition: fill 0.2s ease;
}
.main-header .nav-icons a:hover {
  background: var(--gradient-primary);
  color: var(--color-white);
}
.main-header .nav-icons a:hover .icon {
  fill: var(--color-white);
}

/* =============================================================================
   components/_top-header.scss — Clean Header mit Icons und zentriertem Logo
   ============================================================================= */
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background: var(--color-white);
  border-bottom: 1px solid #eee;
  min-height: 56px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}
.top-header .left-icons,
.top-header .right-icons {
  display: flex;
  align-items: center;
  gap: 14px;
}
.top-header .icon {
  width: 22px;
  height: 22px;
  fill: var(--color-text);
  opacity: 0.8;
  cursor: pointer;
  transition: fill 0.2s, opacity 0.2s, transform 0.12s;
}
.top-header .icon:hover {
  fill: var(--user-color);
  opacity: 1;
  transform: scale(1.12);
}
.top-header .logo {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  margin: 0 24px;
  min-width: 80px;
}
.top-header .logo .logo-icon {
  width: auto;
  height: 34px;
  display: block;
}
.top-header .search-container {
  position: relative;
  display: flex;
  align-items: center;
}
.top-header .search-container input {
  position: absolute;
  left: 100%;
  margin-left: 8px;
  width: 0;
  opacity: 0;
  pointer-events: none;
  transition: width 0.2s ease, opacity 0.2s ease;
  padding: 1.5rem 0.75rem 0.5rem;
  border: none;
  border-bottom: 2px solid #e4e4e4;
  border-radius: 0;
  font-size: 1rem;
  background: transparent;
  font-family: var(--font-body);
  color: var(--color-text);
}
.top-header .search-container input:focus {
  outline: none;
  border-bottom-color: var(--user-color);
}
.top-header .search-container.open input {
  width: 160px;
  opacity: 1;
  pointer-events: auto;
}
.top-header .search-container .search-results {
  position: absolute;
  left: 100%;
  margin-left: 8px;
  width: 160px;
  top: calc(100% + 4px);
  background: var(--color-white);
  border: 1px solid #ddd;
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  z-index: 20;
}
.top-header .search-container .search-results li {
  padding: 4px 8px;
  cursor: pointer;
}
.top-header .search-container .search-results li:hover {
  background: #f0f0f0;
}
.top-header .search-container.active .search-results {
  display: block;
}

/* =============================================================================
   components/_notification-hub.scss — Slide-down notification list
   =============================================================================
 */
.notification-hub {
  position: absolute;
  top: 56px;
  right: 16px;
  width: 300px;
  max-height: 50vh;
  overflow-y: auto;
  background: var(--color-white);
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 99;
}
.notification-hub.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.notification-hub ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.notification-hub ul li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid #eee;
  font-size: 0.875rem;
}
.notification-hub ul li.priority-critical {
  background: #fddede;
}
.notification-hub ul li.priority-warning {
  background: #fff4ce;
}
.notification-hub ul li.priority-info {
  background: #f0f0f0;
}
.notification-hub ul .title {
  font-weight: bold;
}
.notification-hub ul .msg {
  flex-grow: 1;
}

.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background: var(--color-white);
  border-bottom: 1px solid #eee;
  min-height: 48px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  z-index: 40;
}
.content-header .content-header-left,
.content-header .content-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.content-header #dynamic-action-btn {
  display: none;
}
.content-header .icon {
  width: 20px;
  height: 20px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.content-header .icon:hover {
  opacity: 1;
  transform: scale(1.1);
}
.content-header .icon.spin {
  animation: spin 0.3s linear;
}
.content-header #dynamic-action-btn[src] {
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.2s ease;
}
.content-header #dynamic-action-btn[src]:hover {
  animation: action-hover 0.25s forwards;
}
.content-header #dynamic-action-btn[src]:active {
  animation: action-click 0.2s forwards;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes action-hover {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes action-click {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}
.page-list-card, .news-detail-card, .news-list-card, .widget-list-card, .permissions-card, .user-list-card, .layout-gallery-card, .layout-list-card, .modules-list-card, .fonts-list-card, .login-strategies-card, .system-settings-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
  padding: 28px 22px 14px 22px;
  margin: 0 auto;
  min-width: 280px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-title-bar, .news-title-bar, .widget-title-bar, .permissions-title-bar, .user-title-bar, .layout-gallery-title-bar, .layout-title-bar, .modules-title-bar, .fonts-title-bar, .login-strategy-title-bar, .system-settings-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-title, .news-detail-title, .news-title, .widget-title, .permissions-title, .user-title, .layout-gallery-title, .layout-title, .modules-title, .fonts-title, .login-strategy-title, .system-settings-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.add-page-btn, .add-permission-btn, .add-group-btn, .add-user-btn, .add-layout-btn {
  width: 22px;
  height: 22px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.add-page-btn:hover, .add-permission-btn:hover, .add-group-btn:hover, .add-user-btn:hover, .add-layout-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.page-filters, .layout-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 4px;
}
.page-filters .filter, .layout-filters .filter {
  font-family: var(--font-body);
  font-size: 14px;
  color: #999;
  background: #f6f6f6;
  border-radius: 7px;
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.page-filters .filter.active, .layout-filters .filter.active, .page-filters .filter:hover, .layout-filters .filter:hover {
  background: var(--gradient-primary);
  color: #fff;
}

.page-list, .news-list, .widget-list, .permissions-list, .roles-list, .users-list, .layout-list, .modules-list, .fonts-list, .login-strategies-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-list .empty-state, .news-list .empty-state, .widget-list .empty-state, .permissions-list .empty-state, .roles-list .empty-state, .users-list .empty-state, .layout-list .empty-state, .modules-list .empty-state, .fonts-list .empty-state, .login-strategies-list .empty-state {
  color: #bbb;
  padding: 20px 0 8px 0;
  text-align: center;
  font-size: 16px;
  font-family: var(--font-body);
}

.page-list li, .news-list li, .widget-list li, .permissions-list li, .roles-list li, .users-list li, .layout-list li, .modules-list li, .fonts-list li, .login-strategies-list li {
  border-radius: 8px;
  background: #fafbfc;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  padding: 14px 12px 10px 14px;
  gap: 4px;
  transition: box-shadow 0.16s;
  border: 1px solid transparent;
}
.page-list li:hover, .news-list li:hover, .widget-list li:hover, .permissions-list li:hover, .roles-list li:hover, .users-list li:hover, .layout-list li:hover, .modules-list li:hover, .fonts-list li:hover, .login-strategies-list li:hover {
  border: 1px solid var(--user-color);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.page-details, .module-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-name-row, .roles-list .page-name-row, .roles-list .login-strategy-name-row, .roles-list .font-name-row, .roles-list .module-name-row, .module-name-row, .font-name-row, .login-strategy-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.page-name, .module-name, .font-name, .login-strategy-name {
  font-family: var(--font-body);
  font-size: 1.04rem;
  color: #181818;
  font-weight: 600;
  letter-spacing: 0.01em;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px 6px 2px 0;
  border-radius: 6px;
  outline: none;
  border: 1px solid transparent;
  transition: border 0.18s;
}
.page-name[contenteditable=true]:focus, [contenteditable=true].module-name:focus, [contenteditable=true].font-name:focus, [contenteditable=true].login-strategy-name:focus {
  border: 1px solid #ddd;
  background: #fff0ff;
  color: #181818;
}

.page-actions, .roles-list .page-actions, .roles-list .login-strategy-actions, .roles-list .font-actions, .roles-list .module-actions, .module-actions, .font-actions, .login-strategy-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
}

.page-actions .icon, .module-actions .icon, .font-actions .icon, .login-strategy-actions .icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  fill: #888;
  cursor: pointer;
  opacity: 0.72;
  transition: fill 0.16s, opacity 0.14s, transform 0.14s;
}
.page-actions .icon:hover, .module-actions .icon:hover, .font-actions .icon:hover, .login-strategy-actions .icon:hover {
  fill: var(--user-color);
  opacity: 1;
  transform: scale(1.13);
}

.page-slug-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.page-slug {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: #555;
  padding: 2px 7px 2px 0;
  border-radius: 6px;
  min-width: 40px;
  background: none;
  outline: none;
  border: 1px solid transparent;
  transition: border 0.18s;
}
.page-slug[contenteditable=true]:focus {
  border: 1px solid #ddd;
  background: #fff0ff;
  color: #181818;
}

.edit-slug {
  width: 18px;
  height: 18px;
  fill: #bbb;
  cursor: pointer;
  margin-left: 2px;
  opacity: 0.8;
}
.edit-slug:hover {
  fill: var(--user-color);
  opacity: 1;
}

.page-stats-widget {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
  padding: 20px;
  margin: 0 auto;
  width: 100%;
  font-family: var(--font-body);
}
.page-stats-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.page-stats-widget li {
  color: #555;
  font-size: 0.95rem;
}

.media-explorer {
  padding: 10px;
  width: 70vw;
  max-height: 80vh;
  overflow: auto;
}

.media-explorer::backdrop {
  background: rgba(0, 0, 0, 0.3);
}

.media-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.media-nav .path-display {
  font-weight: bold;
  flex: 1;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  list-style: none;
  padding: 0;
}

.media-item {
  padding: 6px;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
}

.media-item:hover {
  background: #f2f2f2;
}

.media-icon {
  font-size: 32px;
}

.media-name {
  font-size: 14px;
  word-break: break-all;
  margin-top: 4px;
}

/* =============================================================================
   Settings Page Styles
   ============================================================================= */
.settings-page {
  display: flex;
  gap: 20px;
}

.settings-content {
  flex: 1;
  background: #fff;
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settings-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.system-settings-card label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

.system-settings-card input[type=text],
.system-settings-card textarea,
.system-settings-card select {
  width: 100%;
  margin-bottom: 12px;
}

.favicon-picker {
  display: flex;
  align-items: center;
  gap: 8px;
}

.favicon-preview {
  width: 32px;
  height: 32px;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 4px;
}

.login-strategy-scope {
  margin-left: 0.25rem;
  font-size: 0.85rem;
  color: #777;
}

.login-strategy-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #555;
}

.font-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #555;
}

.font-toggle-icon {
  cursor: pointer;
}

.login-strategy-edit {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
}

.login-strategy-edit input,
.login-strategy-edit select {
  padding: 0.4rem 0.6rem;
}

.modules-tabs {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
}

.modules-tab {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.modules-tab.active {
  border-bottom: 2px solid currentColor;
  font-weight: bold;
}

.module-meta {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #555;
}

.module-toggle-btn {
  background: #f6f6f6;
  border: none;
  border-radius: 5px;
  padding: 2px 8px;
  cursor: pointer;
  font-size: 0.85rem;
}

.module-upload-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.module-upload-box {
  background: white;
  padding: 20px;
  border-radius: 6px;
  text-align: center;
  width: 300px;
}

.module-upload-box.dragover {
  border: 2px dashed #888;
}

.layout-filters {
  margin-bottom: 0;
}

.layout-tabs-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.layout-sort {
  margin-left: auto;
}

.layout-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.layout-preview {
  width: 100px;
  height: 70px;
  background: #f6f6f6;
  border-radius: 6px;
  -o-object-fit: cover;
     object-fit: cover;
}

.layout-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.layout-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.layout-name {
  font-family: var(--font-body);
  font-size: 1.04rem;
  color: #181818;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layout-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
}

.layout-actions .icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  fill: #888;
  cursor: pointer;
  opacity: 0.72;
  transition: fill 0.16s, opacity 0.14s, transform 0.14s;
}
.layout-actions .icon:hover {
  fill: #ff00ff;
  opacity: 1;
  transform: scale(1.13);
}

.layout-usage {
  font-size: 0.85rem;
  color: #555;
}

.layout-title-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.layout-gallery, .uploaded-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}

.layout-gallery-item {
  position: relative;
  text-align: center;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.15s ease;
}
.layout-gallery-item:hover {
  background: color-mix(in srgb, var(--user-color), transparent 85%);
}

.layout-menu-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  display: none;
  opacity: 0.8;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.layout-gallery-item:hover .layout-menu-btn {
  display: block;
}

.layout-card-menu {
  position: absolute;
  top: 28px;
  right: 4px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: var(--shadow-card, 0 2px 8px rgba(0, 0, 0, 0.1));
  display: none;
  flex-direction: column;
  z-index: 10;
}

.layout-card-menu.open {
  display: flex;
}

.layout-card-menu .menu-item {
  font-family: var(--font-body);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.layout-card-menu .menu-item:hover {
  background: color-mix(in srgb, var(--user-color), transparent 85%);
}

.layout-gallery-preview {
  width: 100%;
  height: 80px;
  -o-object-fit: cover;
     object-fit: cover;
  background: #f6f6f6;
  border-radius: 6px;
}

.layout-gallery-name {
  font-size: 0.9rem;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layout-section-title {
  grid-column: 1/-1;
  font-weight: 600;
  margin: 8px 0 4px;
  font-size: 0.95rem;
}

.global-layout {
  box-shadow: 0 0 0 2px var(--user-color);
}

.builder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background: var(--color-white);
  border-bottom: 1px solid #eee;
  min-height: 56px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 120;
}

.builder-header .builder-back-btn,
.builder-header .builder-save-btn,
.builder-header .builder-preview-btn,
.builder-header .builder-menu-btn {
  background: transparent;
  border: none;
  cursor: pointer;
}

.builder-header .layout-info {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.builder-header .layout-name {
  font-size: 1.25rem;
  font-weight: 500;
  outline: none;
}

.builder-header .edit-name-icon {
  margin-left: 6px;
  cursor: pointer;
}

.builder-header .layout-name-input {
  font-size: 1.25rem;
  padding: 4px 8px;
  flex: 1;
}

.builder-header .page-link {
  color: var(--color-primary);
}

.builder-header .page-select {
  padding: 4px 8px;
}

.builder-sidebar {
  position: fixed;
  top: 56px;
  bottom: 0;
  left: 0;
  width: 64px;
  padding: 20px 16px 0;
  background: none;
  box-shadow: none;
  z-index: 100;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  overflow-x: auto;
  overflow-y: hidden;
}
.builder-sidebar .builder-panel {
  position: fixed;
  top: 56px;
  left: 96px;
  width: 240px;
  height: calc(100% - 56px);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  padding: 16px;
  display: none;
  flex-direction: column;
  gap: 12px;
}
.builder-sidebar .builder-panel .collapse-btn {
  align-self: flex-end;
  background: transparent;
  border: none;
  cursor: pointer;
}
.builder-sidebar .builder-panel .text-choice {
  width: 100%;
  padding: 8px;
  background: var(--color-light-gray, #f0f0f0);
  border: none;
  cursor: pointer;
  text-align: left;
}
.builder-sidebar .builder-panel .text-choice .preview.heading {
  font-size: 1.5rem;
  font-weight: 700;
}
.builder-sidebar .builder-panel .text-choice .preview.subheading {
  font-size: 1.25rem;
  font-weight: 600;
}
.builder-sidebar .builder-panel .text-choice .preview.body {
  font-size: 1rem;
}
.builder-sidebar .builder-sidebar-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.builder-sidebar .builder-sidebar-nav .drag-widget-icon {
  width: 48px;
  height: 48px;
  padding: 4px;
  background: var(--color-white);
  border-radius: 50%;
  box-shadow: var(--shadow-card);
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.builder-sidebar .builder-sidebar-nav .drag-widget-icon:hover {
  border: 1px solid var(--gradient-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
}
.builder-sidebar .builder-sidebar-nav .drag-widget-icon:hover img {
  transform: scale(1.1);
}
.builder-sidebar .builder-sidebar-nav .drag-widget-icon:hover .label {
  opacity: 1;
  transform: translateY(-50%) translateX(8px) scale(1);
}
.builder-sidebar .builder-sidebar-nav .drag-widget-icon img,
.builder-sidebar .builder-sidebar-nav .drag-widget-icon .icon {
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease;
}
.builder-sidebar .builder-sidebar-nav .drag-widget-icon .label {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%) translateX(0) scale(0.8);
  background: var(--color-white);
  padding: 4px 8px;
  border-radius: 4px;
  box-shadow: var(--shadow-card);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.canvas-item .widget-remove {
  position: absolute;
  top: 2px;
  left: 2px;
  background: transparent;
  border: none;
  padding: 2px;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.canvas-item .widget-edit {
  display: none;
}

.canvas-item .widget-menu {
  position: absolute;
  top: 2px;
  right: 2px;
  background: transparent;
  border: none;
  padding: 2px;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.canvas-item:hover .widget-menu,
.canvas-item:hover .widget-remove {
  opacity: 0;
  pointer-events: none;
}

.widget-options-menu {
  position: fixed;
  top: 0;
  left: 0;
  background: var(--color-white);
  border-radius: 9px;
  box-shadow: var(--shadow-card);
  font-family: var(--font-body);
  display: none;
  z-index: 1000;
}

.builder-options-menu {
  position: fixed;
  background: var(--color-white);
  border-radius: 9px;
  box-shadow: var(--shadow-card);
  font-family: var(--font-body);
  display: none;
  z-index: 1000;
}

.builder-options-menu button,
.builder-options-menu label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
}

.builder-options-menu label {
  cursor: pointer;
}

.builder-options-menu button:hover,
.builder-options-menu label:hover {
  background: var(--color-light-gray, #f0f0f0);
}

.widget-options-menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 9px;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
}

.widget-options-menu button:hover {
  background: var(--color-light-gray, #f0f0f0);
}

.widget-action-bar {
  position: absolute;
  background: var(--color-white);
  border-radius: 9px;
  box-shadow: var(--shadow-card);
  display: flex;
  font-family: var(--font-body);
  gap: 4px;
  padding: 2px;
  z-index: 1000;
}

.widget-action-bar button {
  background: transparent;
  border: none;
  padding: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.widget-code-editor {
  position: fixed;
  top: 0;
  width: 280px;
  background: white;
  border: 1px solid #ccc;
  padding: 8px;
  z-index: 1000;
  display: none;
}

.widget-code-editor.right {
  left: 0;
}

.widget-code-editor.left {
  left: 0;
}

.widget-code-editor textarea {
  width: 100%;
  height: 60px;
  margin-bottom: 4px;
  font-family: var(--font-mono);
}

.widget-code-editor .editor-actions {
  text-align: right;
}

.widget-code-editor .media-btn {
  margin-right: auto;
}

.canvas-item .widget-remove .icon {
  width: 16px;
  height: 16px;
}

.builder-mode .canvas-item {
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.builder-mode .canvas-item:hover,
.builder-mode .canvas-item.selected {
  border-color: var(--user-color);
}

.builder-mode .canvas-item > .ui-resizable-handle {
  display: none;
}

.builder-mode .canvas-placeholder {
  display: none !important;
}

body.builder-mode #content {
  margin-left: 57px;
  height: calc(100vh - 79px);
  overflow-y: auto;
  padding-top: 0;
  box-sizing: border-box;
}

body.builder-mode.panel-open #content {
  margin-left: 336px;
  transform: scale(0.9);
  transform-origin: top left;
}

body.builder-mode.panel-open .builder-panel {
  display: flex;
}

body.builder-mode.panel-open #builderGrid {
  transform: scale(0.9);
  transform-origin: top left;
  margin-top: 56px;
  height: calc(100% - 56px);
  min-height: calc(100% - 56px);
}

body.builder-mode #builderGrid {
  margin-top: 56px;
  height: calc(100% - 56px);
  min-height: calc(100% - 56px);
}

body.builder-mode .canvas-item-content.builder-themed {
  width: 100%;
  height: 100%;
}

body.builder-mode #top-header,
body.builder-mode #main-header {
  display: none;
}

body.preview-mode .builder-sidebar,
body.preview-mode .widget-code-editor,
body.preview-mode .widget-options-menu,
body.preview-mode .builder-options-menu,
body.preview-mode .canvas-item .widget-remove,
body.preview-mode .canvas-item .widget-edit,
body.preview-mode .canvas-item .widget-menu {
  display: none !important;
}

body.preview-mode .builder-header .builder-save-btn,
body.preview-mode .builder-header .layout-info {
  display: none;
}

body.preview-mode #builderGrid {
  pointer-events: none;
  margin-top: 56px;
  height: calc(100% - 56px);
  min-height: calc(100% - 56px);
}

body.preview-mode #content {
  margin-left: 0;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-white);
  border-bottom: 1px solid #eee;
  padding: 6px 12px;
  position: sticky;
  top: 0;
  z-index: 60;
}

body.preview-mobile {
  --preview-width: 400px;
}

body.preview-tablet {
  --preview-width: 800px;
}

body.preview-desktop {
  --preview-width: 1200px;
}

body.preview-mobile #content,
body.preview-tablet #content,
body.preview-desktop #content {
  margin-left: auto;
  margin-right: auto;
  max-width: none;
}

.canvas-item {
  pointer-events: auto;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.canvas-item.locked {
  pointer-events: auto;
  -webkit-user-select: text;
     -moz-user-select: text;
          user-select: text;
}

.canvas-item[gs-locked=true] > .ui-resizable-handle {
  display: none;
}

.canvas-item[gs-locked=true]::after {
  content: "";
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  background: url("/assets/icons/lock.svg") no-repeat center/contain;
  pointer-events: none;
  z-index: 100;
}

.canvas-item[data-global=true]::before {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  background: url("/assets/icons/globe.svg") no-repeat center/contain;
  pointer-events: none;
  z-index: 100;
}

body.builder-mode .canvas-item[data-global=true] {
  opacity: 0.6;
  pointer-events: none;
}

body.builder-mode[data-active-layer="0"] .canvas-item[data-global=true] {
  opacity: 1;
  pointer-events: auto;
}

body.builder-mode .canvas-item.inactive-layer {
  opacity: 0.6;
  position: relative;
}

body.builder-mode .canvas-item.inactive-layer::after {
  content: "change layer to edit this widget";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  color: var(--color-text);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

body.builder-mode .canvas-item.inactive-layer:hover::after {
  opacity: 1;
}

.builder-version {
  position: fixed;
  left: 0;
  bottom: 32px;
  padding: 2px 4px;
  font-size: 10px;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.6);
  pointer-events: none;
  z-index: 50;
}

.layout-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  gap: 4px;
  padding: 4px 8px;
  background: var(--color-white);
  border-top: 1px solid #eee;
  z-index: 60;
}
.layout-bar button {
  background: transparent;
  border: none;
  padding: 4px 8px;
  cursor: pointer;
}
.layout-bar .active {
  font-weight: 600;
}

.bounding-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px dashed var(--user-color, #333);
  pointer-events: none;
  box-sizing: border-box;
  z-index: 1000;
}
.bounding-box .bbox-handle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--user-color, #333);
  border-radius: 50%;
  pointer-events: all;
  transform: scale(var(--inv-scale));
}
.bounding-box .nw {
  top: -4px;
  left: -4px;
  transform: translate(-50%, -50%) scale(var(--inv-scale));
  cursor: nwse-resize;
}
.bounding-box .n {
  top: -4px;
  left: 50%;
  transform: translateX(-50%) scale(var(--inv-scale));
  cursor: ns-resize;
}
.bounding-box .ne {
  top: -4px;
  right: -4px;
  transform: translate(50%, -50%) scale(var(--inv-scale));
  cursor: nesw-resize;
}
.bounding-box .e {
  top: 50%;
  right: -4px;
  transform: translateY(-50%) scale(var(--inv-scale));
  cursor: ew-resize;
}
.bounding-box .se {
  bottom: -4px;
  right: -4px;
  transform: translate(50%, 50%) scale(var(--inv-scale));
  cursor: nwse-resize;
}
.bounding-box .s {
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) scale(var(--inv-scale));
  cursor: ns-resize;
}
.bounding-box .sw {
  bottom: -4px;
  left: -4px;
  transform: translate(-50%, 50%) scale(var(--inv-scale));
  cursor: nesw-resize;
}
.bounding-box .w {
  top: 50%;
  left: -4px;
  transform: translateY(-50%) scale(var(--inv-scale));
  cursor: ew-resize;
}

.bounding-box.disabled {
  display: none;
}

.selection-box {
  position: absolute;
  border: 1px dashed var(--user-color, #0aa);
  transform-origin: 0 0;
}

.selection-box::before {
  content: "";
  position: absolute;
  inset: -4px;
  border: 2px solid currentColor;
  transform: scale(var(--inv-scale));
  pointer-events: none;
}

.hit-layer {
  pointer-events: auto;
}

.canvas-item .editable {
  cursor: text;
}

.canvas-item:not(.editing) .hit-layer {
  cursor: move;
}

.canvas-item.editing {
  z-index: 9999;
  cursor: text;
}

.canvas-item.selected .hit-layer,
.canvas-item.editing .hit-layer {
  pointer-events: none;
  cursor: text;
}

.builder-mode .canvas-item.selected,
.builder-mode .canvas-item.editing {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}

.heading-widget {
  display: flex;
  align-items: center;
}

.page-editor-widget {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-edit-widget {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.delete-user-btn {
  width: 20px;
  height: 20px;
  cursor: pointer;
  align-self: flex-end;
  transition: opacity 0.2s;
}

.delete-user-btn:hover {
  opacity: 0.7;
}

.page-editor-widget label,
.user-edit-widget label {
  font-weight: 500;
}

.user-field-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.color-choices {
  display: flex;
  gap: 6px;
}

.color-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  padding: 0;
  background: none;
}

.color-circle.active {
  border-color: var(--user-color);
}

.color-circle.add-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px dashed #ccc;
  color: #555;
}

.color-picker-toggle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid var(--user-color);
}

.color-picker.hidden {
  display: none;
}

.page-content-widget {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-content-widget .content-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-content-widget .add-content-btn {
  width: 22px;
  height: 22px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.page-content-widget .add-content-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.content-add-menu {
  position: fixed;
  background: var(--color-white);
  border-radius: 9px;
  box-shadow: var(--shadow-card);
  font-family: var(--font-body);
  display: none;
  z-index: 1000;
}

.content-add-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
}

.content-add-menu button:hover {
  background: var(--color-light-gray, #f0f0f0);
}

.page-content-widget .content-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-content-widget .content-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: var(--user-color);
}

.delete-content-btn {
  width: 20px;
  height: 20px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.delete-content-btn:hover {
  opacity: 1;
}

.page-content-widget .empty-state {
  color: #bbb;
  padding: 10px 0;
  text-align: center;
}

.attached-content {
  margin-top: 20px;
}

.layout-select-menu {
  position: fixed;
  background: var(--color-white);
  border-radius: 9px;
  box-shadow: var(--shadow-card);
  font-family: var(--font-body);
  padding: 8px;
  display: none;
  z-index: 1000;
}

.layout-select-menu button {
  margin-top: 8px;
  width: 100%;
}

/* =============================================================================
   components/_text-editor-toolbar.scss
   Styles for the fixed text block editor toolbar
   ============================================================================= */
.text-block-editor-toolbar {
  position: fixed;
  top: 0;
  left: 0;
  width: -moz-max-content;
  width: max-content;
  transform: none;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  background: var(--color-white);
  border: 1px solid #eee;
  border-radius: 21px;
  box-shadow: var(--shadow-default);
  z-index: 1000;
}
.text-block-editor-toolbar .tb-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  color: var(--color-text);
}
.text-block-editor-toolbar .tb-btn:hover {
  background: var(--color-secondary-light);
}
.text-block-editor-toolbar .tb-btn.active {
  background: color-mix(in srgb, var(--user-color), black 20%);
  color: var(--color-white);
}
@supports not (background: color-mix(in srgb, #000, black 20%)) {
  .text-block-editor-toolbar .tb-btn.active {
    background: var(--user-color);
    opacity: 0.8;
  }
}
.text-block-editor-toolbar .font-size-control {
  background: var(--color-white-dark);
  border-radius: 4px;
}
.text-block-editor-toolbar .font-size-control .fs-dec {
  border-right: 1px solid var(--color-secondary-light);
}
.text-block-editor-toolbar .font-size-control .fs-inc {
  border-left: 1px solid var(--color-secondary-light);
}
.text-block-editor-toolbar .font-size-control .fs-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.text-block-editor-toolbar .font-size-control .fs-dropdown {
  position: relative;
}
.text-block-editor-toolbar .font-size-control .fs-dropdown.open .fs-options {
  display: block;
}
.text-block-editor-toolbar .font-family-control,
.text-block-editor-toolbar .font-size-control {
  display: flex;
  align-items: center;
  gap: 4px;
}
.text-block-editor-toolbar .ff-options,
.text-block-editor-toolbar .fs-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  border: 1px solid #eee;
  box-shadow: var(--shadow-default);
  border-radius: 4px;
  padding: 4px;
  z-index: 1000;
}
.text-block-editor-toolbar .ff-options span,
.text-block-editor-toolbar .fs-options span {
  display: block;
  padding: 2px 4px;
  cursor: pointer;
}
.text-block-editor-toolbar .ff-options span:hover,
.text-block-editor-toolbar .fs-options span:hover {
  background: var(--color-secondary-light);
}
.text-block-editor-toolbar .fs-input {
  width: 50px;
  padding: 2px 4px;
  border: 1px solid var(--color-secondary-light);
  border-radius: 4px;
  font-size: 14px;
  text-align: center;
  background: var(--color-white);
  color: var(--color-text);
}

.html-widget {
  width: 100%;
  height: 100%;
}

.widget-textbox {
  width: 100%;
  padding: 0.25rem;
  box-sizing: border-box;
  min-height: 1rem;
}
.widget-textbox .editable {
  all: unset;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  color: #333;
  background-color: #fff;
  outline: none;
  -webkit-user-select: text;
     -moz-user-select: text;
          user-select: text;
  cursor: text;
}
.widget-textbox .editable b,
.widget-textbox .editable strong {
  font-weight: bold;
}
.widget-textbox .editable i,
.widget-textbox .editable em {
  font-style: italic;
}
.widget-textbox .editable u {
  text-decoration: underline;
}

.half-width {
  width: 50%;
}

.third-width {
  width: 33.333%;
}

.max {
  max-width: 100%;
  max-height: 100%;
}

.max-width {
  max-width: 100%;
}

.max-height {
  max-height: 100%;
}

.overflow {
  overflow: auto;
}

.users-tabs {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
}

.users-tab {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.users-tab.active {
  border-bottom: 2px solid currentColor;
  font-weight: bold;
}

.permissions-sub-title {
  font-family: var(--font-heading);
  font-size: 18px;
  margin-top: 8px;
}

.widget-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-name {
  flex: 1;
}

.widget-tabs {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
}

.widget-tab {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.widget-tab.active {
  border-bottom: 2px solid var(--user-color);
  color: var(--user-color);
  font-weight: bold;
}

.global-widget:hover,
.template-widget:hover {
  box-shadow: 0 0 0 2px var(--user-color);
}

.news-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.news-list li a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.news-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #555;
}

.news-timestamp {
  font-size: 0.8rem;
  color: #777;
  margin-top: 4px;
}

.news-detail-title {
  margin-bottom: 1rem;
}

.news-json {
  font-family: var(--font-body);
  line-height: 1.4;
}

/* ============================================================
   Overlay – still darkens the page
============================================================ */
.widget-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  pointer-events: none;
  /* dark rectangle ONLY over the left sidebar */
}
.widget-popup-overlay.open {
  display: block;
}
.widget-popup-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0; /* stick to left edge */
  width: 75px; /* sidebar width */
  height: 100%;
  background: rgba(255, 255, 255, 0.6901960784);
  pointer-events: none; /* sidebar already disabled via .dimmed */
}

/* ============================================================
   Dock bar (replaces centred modal)
============================================================ */
.widget-popup-container {
  /* stick to top, full width */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 160px;
  /* adjust to taste */
  padding: 12px 24px 16px;
  background: var(--color-white);
  border-radius: 0 0 10px 10px; /* rounded bottom only */
  /* horizontal gallery */
  display: grid;
  grid-auto-flow: column; /* items flow left→right */
  grid-auto-columns: 200px; /* card width */
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  z-index: 1001; /* above the backdrop */
}

.widget-popup-container,
.widget-popup-backdrop { /* keep this if you still use a sidebar backdrop */
  pointer-events: auto; /* ← these CAN receive clicks */
}

/* ============================================================
   Widget list entry
============================================================ */
.widget-popup-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  width: 100%; /* respect grid-auto-columns */
}

.widget-title {
  padding: 6px 8px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.widget-add-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: var(--user-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s;
}
.widget-add-btn:hover {
  opacity: 0.75;
}
.widget-add-btn img, .widget-add-btn svg {
  width: 16px;
  height: 16px;
}

/* ============================================================
   Dimmed areas (headers / sidebar) – unchanged
============================================================ */
.dimmed {
  pointer-events: none;
  filter: brightness(0.3);
}

.pages-menu {
  position: fixed;
  top: 163px;
  right: 0;
  bottom: 0;
  width: 220px;
  background: var(--color-white);
  border-left: 1px solid #eee;
  box-shadow: -2px 0 6px rgba(0, 0, 0, 0.05);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
  z-index: 30;
  /* ---------- header ---------- */
  /* ---------- list ---------- */
  /* ---------- empty-state hint ---------- */
}
.pages-menu.open {
  transform: translateX(0);
}
.pages-menu .menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  position: relative;
  /* arrow that closes the menu */
  /* show arrow only when panel is open */
  /* filter dropdown */
}
.pages-menu .menu-header .close-arrow {
  cursor: pointer;
  margin-left: 6px;
  transition: opacity 0.2s ease;
}
.pages-menu.open .pages-menu .menu-header .close-arrow {
  opacity: 1;
}
.pages-menu .menu-header .filter-dropdown {
  position: absolute;
  top: 100%;
  right: 6px;
  background: var(--color-white);
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: var(--shadow-card);
  display: none;
  flex-direction: column;
  margin-top: 4px;
  z-index: 20;
}
.pages-menu .menu-header .filter-dropdown.open {
  display: flex;
}
.pages-menu .menu-header .filter-dropdown button {
  background: none;
  border: none;
  padding: 6px 12px;
  text-align: left;
  font-family: var(--font-body);
  cursor: pointer;
}
.pages-menu .menu-header .filter-dropdown button:hover {
  background: var(--color-light-gray, #f6f6f6);
}
.pages-menu .menu-list {
  list-style: none;
  margin: 0;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pages-menu .menu-list li a {
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--font-body);
  transition: color 0.2s;
}
.pages-menu .menu-list li a:hover {
  color: var(--user-color);
}
.pages-menu .empty-hint {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  text-align: center;
  color: #888;
  font-size: 0.9rem;
  line-height: 1.4;
}
.pages-menu.empty .empty-hint {
  display: block;
}

/* ---------- responsive tweak ---------- */
@media (max-width: 900px) {
  .pages-menu {
    top: 56px;
    width: 70%;
  }
}
body.grid-mode .canvas-item {
  border: none;
}
body.grid-mode .bounding-box {
  border: none;
}
body.grid-mode .bounding-box .bbox-handle {
  display: none;
}
body.grid-mode .bounding-box .se {
  display: block;
  width: 10px;
  height: 10px;
  bottom: -4px;
  right: -4px;
  transform: translate(50%, 50%) scale(var(--inv-scale));
  border-right: 2px solid var(--user-color, #333);
  border-bottom: 2px solid var(--user-color, #333);
  background: transparent;
  cursor: nwse-resize;
  border-radius: 0;
}
body.grid-mode:not(.dashboard-edit-mode) .bounding-box {
  display: none;
}/*# sourceMappingURL=site.css.map */