/* Albi Forms Admin Styling */

.albi-status-badge {
  display: inline-block;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 4px;
}
.albi-status-badge.publish {
  background: #e6f6ec;
  color: #15703a;
}
.albi-status-badge.draft {
  background: #f2f4f7;
  color: #344054;
}

/* Builder App Wrapper */
.albi-builder-wrapper {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 120px);
  margin-top: 15px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
    Cantarell, "Helvetica Neue", sans-serif;
  gap: 15px;
}

/* Header Controls */
.albi-builder-header {
  background: #ffffff;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 4px solid #3b82f6;
}
.albi-form-meta-inputs {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-grow: 1;
  max-width: 50%;
}
.albi-form-name-input {
  font-size: 18px !important;
  font-weight: 600;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  background: transparent !important;
  color: #1e293b;
}
.albi-form-name-input:focus {
  outline: none !important;
  box-shadow: none !important;
  border-bottom: 2px solid #3b82f6 !important;
}
.albi-form-desc-input {
  font-size: 13px !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  background: transparent !important;
  color: #64748b;
}
.albi-form-desc-input:focus {
  outline: none !important;
  box-shadow: none !important;
  border-bottom: 1px solid #94a3b8 !important;
}
.albi-builder-actions {
  display: flex;
  gap: 10px;
}

/* Builder Body Layout */
.albi-builder-body {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 15px;
  flex-grow: 1;
  min-height: 0; /* Important for flex scrolling */
}

/* Panels */
.albi-panel {
  background: #ffffff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.albi-panel h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 15px;
  color: #1e293b;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
}

/* Left Panel - Field Selection buttons */
.albi-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.albi-field-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  color: #475569;
  transition: all 0.2s ease;
}
.albi-field-btn:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
}
.albi-field-btn .dashicons {
  margin-bottom: 6px;
  color: #64748b;
}
.albi-field-btn:hover .dashicons {
  color: #3b82f6;
}
.albi-field-icon {
  width: 20px;
  height: 20px;
  margin-bottom: 6px;
  color: #64748b;
  transition: color 0.2s ease;
}
.albi-field-btn:hover .albi-field-icon {
  color: #3b82f6;
}
.albi-field-btn--locked {
  opacity: 0.75;
  background: #f1f5f9;
  position: relative;
  cursor: not-allowed;
}
.albi-field-btn--locked:hover {
  background: #f1f5f9;
  border-color: inherit;
  color: inherit;
}
.albi-field-btn--locked:disabled {
  cursor: not-allowed;
}
.albi-field-btn-label {
  text-align: center;
  line-height: 1.2;
}
.albi-pro-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 1px 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #92400e;
  background: #fef3c7;
  border-radius: 3px;
}
.albi-pro-badge--inline {
  margin-top: 0;
  margin-left: 6px;
  vertical-align: middle;
}
.albi-settings-pro-locked {
  opacity: 0.85;
}
.albi-settings-pro-locked input[type="checkbox"]:disabled {
  cursor: not-allowed;
}
.albi-pro-unlock-link {
  display: inline-block;
  margin-left: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: #b45309;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
.albi-pro-unlock-link:hover {
  color: #92400e;
}

/* Center Canvas */
.albi-canvas-panel {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.albi-canvas-panel h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 15px;
  color: #475569;
}
.albi-canvas-empty {
  margin: auto;
  text-align: center;
  color: #94a3b8;
  max-width: 300px;
  font-size: 14px;
}
.albi-canvas-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
}
.albi-canvas-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  position: relative;
  box-sizing: border-box;
}
.albi-canvas-item.width-100 {
  width: 100%;
}
.albi-canvas-item.width-50 {
  width: calc(50% - 6px);
}
.albi-canvas-item.width-33 {
  width: calc(33.33% - 8px);
}
.albi-canvas-item.width-25 {
  width: calc(25% - 9px);
}
.albi-canvas-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.albi-canvas-item.active {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
  background: #fcfdfe;
}
.albi-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.albi-item-label {
  font-weight: 600;
  color: #334155;
  font-size: 13px;
}
.albi-required-star {
  color: #ef4444;
}
.albi-item-controls {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.albi-canvas-item:hover .albi-item-controls,
.albi-canvas-item.active .albi-item-controls,
.albi-canvas-container-box:hover .albi-item-controls,
.albi-canvas-container-box.active .albi-item-controls {
  opacity: 1;
}
.albi-item-controls button {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 10px;
  color: #475569;
  padding: 0;
}
.albi-control-icon {
  display: block;
  flex-shrink: 0;
}
.albi-item-controls button:hover:not(:disabled) {
  background: #e2e8f0;
  color: #0f172a;
}
.albi-item-controls button.delete-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #ef4444;
}
.albi-item-controls button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Field Previews inside canvas */
.albi-item-preview {
  width: 100%;
}

.albi-item-preview input:not([type="radio"]):not([type="checkbox"]),
.albi-item-preview select {
  display: block;
  width: 100% !important;
  max-width: 100% !important;

  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  padding: 0 12px !important;
  line-height: 38px;
  cursor: not-allowed !important;
  box-sizing: border-box !important;
  font-size: 13px !important;
  color: #334155 !important;
}

.albi-item-preview textarea {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  padding: 8px 12px !important;
  cursor: not-allowed !important;
  box-sizing: border-box !important;
  font-size: 13px !important;
  color: #334155 !important;
}

.albi-item-preview input[type="radio"],
.albi-item-preview input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  cursor: not-allowed !important;
}

.albi-preview-choice-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 13px;
  line-height: 1.4;
}

.albi-preview-file {
  border: 2px dashed #cbd5e1;
  border-radius: 6px;
  padding: 10px;
  text-align: center;
  color: #64748b;
  font-size: 12px;
}

.albi-preview-hidden {
  background: #f1f5f9;
  border: 1px dashed #94a3b8;
  border-radius: 4px;
  padding: 6px;
  text-align: center;
  color: #64748b;
  font-size: 11px;
}

.albi-preview-acceptance {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 400;
  margin: 0;
  cursor: not-allowed;
}

.albi-item-preview .albi-name-fields-preview {
  display: flex;
  gap: 6px;
  width: 100%;
}

.albi-item-preview .albi-name-fields-preview input.albi-name-part {
  flex: 0 0 auto;
  min-width: 0;
}

.albi-item-preview .albi-name-fields-preview.count-1 .albi-name-part {
  width: 100% !important;
}

.albi-item-preview .albi-name-fields-preview.count-2 .albi-name-part {
  width: calc(50% - 3px) !important;
}

.albi-item-preview .albi-name-fields-preview.count-3 .albi-name-part {
  width: calc(33.333% - 4px) !important;
}

.albi-item-preview .albi-address-fields-preview {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.albi-item-preview .albi-address-row-preview {
  display: flex;
  gap: 6px;
  width: 100%;
}

.albi-item-preview .albi-address-row-preview input.albi-address-part,
.albi-item-preview .albi-address-row-preview select.albi-address-part {
  width: calc(50% - 3px) !important;
  flex: 0 0 auto;
  min-width: 0;
}

/* Split row — layout only (25% select + 75% input). Visuals from .albi-item-preview select/input above. */
.albi-item-preview .albi-split-preview {
  display: flex;
  gap: 6px;
  width: 100%;
  align-items: center;
}

.albi-item-preview .albi-split-25-75 > select {
  flex: 0 0 calc(25% - 3px);
  width: calc(25% - 3px) !important;
  max-width: calc(25% - 3px);
  min-width: 0;
}

.albi-item-preview
  .albi-split-25-75
  > input:not([type="radio"]):not([type="checkbox"]) {
  flex: 1 1 auto;
  width: auto !important;
  max-width: none;
  min-width: 0;
}

/* Right Panel: Settings */
.albi-settings-empty {
  margin: auto;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}
.albi-settings-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.albi-settings-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.albi-settings-group label {
  font-weight: 600;
  color: #475569;
  font-size: 12px;
}
.albi-settings-group input:not([type="checkbox"]):not([type="radio"]),
.albi-settings-group textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}
.albi-settings-group input:not([type="checkbox"]):not([type="radio"]):focus,
.albi-settings-group textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px #3b82f6;
  outline: none;
}
.albi-settings-group-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}
.albi-settings-group-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
  border: 1px solid #94a3b8;
  border-radius: 3px;
  background: #ffffff;
  box-shadow: none;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: #3b82f6;
  appearance: auto;
  -webkit-appearance: checkbox;
}
.albi-settings-group-checkbox input[type="radio"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: #3b82f6;
  appearance: auto;
  -webkit-appearance: radio;
}
.albi-settings-group-checkbox label {
  font-weight: 600;
  color: #475569;
  font-size: 12px;
  cursor: pointer;
}

/* General Loader */
.albi-loader,
.albi-loading {
  padding: 40px;
  text-align: center;
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}

/* Sidebar Tab Styles */
.albi-sidebar-tabs {
  display: flex;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 15px;
  gap: 5px;
}
.albi-tab-btn {
  flex-grow: 1;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 5px;
  cursor: pointer;
  font-weight: 600;
  color: #64748b;
  font-size: 13px;
  transition: all 0.2s ease;
  text-align: center;
}
.albi-tab-btn:hover {
  color: #1e293b;
}
.albi-tab-btn.active {
  color: #3b82f6;
  border-bottom-color: #3b82f6;
}
.albi-tab-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Layout Container Styling */
.albi-canvas-container-box {
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  transition: all 0.2s ease;
  box-sizing: border-box;
  width: 100%;
  cursor: pointer;
}
.albi-canvas-container-box:hover {
  border-color: #94a3b8;
}
.albi-canvas-container-box.active {
  border-color: #3b82f6;
  background: #fbfdff;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}
.albi-container-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.albi-container-label {
  font-weight: bold;
  color: #475569;
  font-size: 13px;
}
.albi-container-rows {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.albi-container-row {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.albi-container-cols {
  display: flex;
  flex-direction: row;
  gap: 10px;
  width: 100%;
}
.albi-container-col {
  flex: 1;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.albi-col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 8px;
}
.albi-col-delete {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 10px;
}
.albi-col-delete:hover {
  color: #b91c1c;
}
.albi-col-nested-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nested-item {
  margin-bottom: 0 !important;
  border: 1px solid #cbd5e1;
  padding: 10px !important;
  background: #f8fafc;
}
.albi-container-fields-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.albi-container-fields-list .nested-item {
  width: 100%;
  box-sizing: border-box;
}
.albi-container-fields-list .nested-item.width-50 {
  width: calc(50% - 4px);
}
.albi-container-fields-list .nested-item.width-33 {
  width: calc(33.33% - 6px);
}
.albi-container-fields-list .nested-item.width-25 {
  width: calc(25% - 6px);
}
.albi-remove-container-btn:hover {
  background: #fee2e2 !important;
  border-color: #fca5a5 !important;
  color: #b91c1c !important;
}
.nested-item.active {
  border-color: #3b82f6;
  background: #ffffff;
}
.nested-delete-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 12px;
}
.nested-delete-btn:hover {
  color: #ef4444;
}
.albi-col-add-actions {
  margin-top: 10px;
  text-align: center;
}
.albi-nested-add-select {
  width: 100%;
  font-size: 11px !important;
  height: 26px !important;
  padding: 2px 5px !important;
  border-radius: 4px !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
  background-color: #f1f5f9 !important;
}
.albi-row-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 5px;
  border-top: 1px solid #f1f5f9;
  padding-top: 8px;
}
.albi-row-del-btn {
  color: #ef4444 !important;
  border-color: #fca5a5 !important;
}
.albi-row-del-btn:hover {
  background: #fee2e2 !important;
}
.albi-container-footer {
  margin-top: 10px;
}
.container-btn {
  border-color: #cbd5e1 !important;
  background: #f1f5f9 !important;
  color: #334155 !important;
}
.container-btn:hover {
  border-color: #3b82f6 !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
}

/* Page Break Builder Styling */
.page-break-btn {
  border-color: #93c5fd !important;
  background: #eff6ff !important;
  color: #1e40af !important;
}
.page-break-btn:hover {
  background: #dbeafe !important;
  border-color: #2563eb !important;
}
.albi-canvas-item.page-break-item {
  width: 100% !important;
  transition: all 0.2s ease;
}
.albi-canvas-item.page-break-item.active {
  border-style: solid !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2) !important;
}

/* Form Settings tab inputs styling */
.albi-settings-section-title {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 12px;
  color: #1e293b;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 6px;
}
.albi-settings-group input[type="text"],
.albi-settings-group select,
.albi-settings-group textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13px;
  color: #334155;
}
.albi-settings-group input[type="text"]::placeholder {
  color: #94a3b8;
}

/* ====================================
   Utility classes (inline style replacements)
   ==================================== */
.albi-mb-10 {
  margin-bottom: 10px;
}
.albi-mb-15 {
  margin-bottom: 15px;
}
.albi-mt-10 {
  margin-top: 10px;
}
.albi-mt-15 {
  margin-top: 15px;
}
.albi-mt-5 {
  margin-top: 5px;
}
.albi-ml-6 {
  margin-left: 6px;
}
.albi-ml-8 {
  margin-left: 8px;
}
.albi-ml-24 {
  margin-left: 24px;
}
.albi-mr-4 {
  margin-right: 4px;
}
.albi-d-none {
  display: none;
}
.albi-d-flex {
  display: flex;
}
.albi-d-block {
  display: block;
}
.albi-cursor-pointer {
  cursor: pointer;
}
.albi-flex-1 {
  flex: 1;
}
.albi-w-80 {
  width: 80px;
}
.albi-text-muted {
  color: #64748b;
}
.albi-text-dark {
  color: #1e293b;
}
.albi-text-danger {
  color: #a00;
}
.albi-text-center {
  text-align: center;
}
.albi-fw-600 {
  font-weight: 600;
}
.albi-fw-700 {
  font-weight: 700;
}
.albi-fs-11 {
  font-size: 11px;
}
.albi-fs-12 {
  font-size: 12px;
}
.albi-fs-13 {
  font-size: 13px;
}
.albi-fs-14 {
  font-size: 14px;
}
.albi-fs-16 {
  font-size: 16px;
}
.albi-v-align-middle {
  vertical-align: middle;
}
.albi-flex-space-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.albi-flex-gap-20 {
  display: flex;
  gap: 20px;
}
.albi-flex-align-center {
  display: flex;
  align-items: center;
}
.albi-p-20 {
  padding: 20px;
}
.albi-p-15-20 {
  padding: 15px 20px;
}
.albi-rounded-8 {
  border-radius: 8px;
}
.albi-shadow-sm {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.albi-bg-white {
  background: #ffffff;
}
.albi-bg-muted {
  background: #f8fafc;
}
.albi-border-light {
  border: 1px solid #e2e8f0;
}

/* Section card (import & templates) */
.albi-section-card {
  margin-bottom: 20px;
  background: #ffffff;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.albi-section-card--flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Template card */
.albi-template-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 15px;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.albi-template-card--locked {
  border-color: #fcd34d;
  background: #fffbeb;
}
.albi-template-card:hover {
  border-color: #3b82f6;
  background: #eff6ff;
}
.albi-template-card--locked:hover {
  border-color: #f59e0b;
  background: #fef3c7;
}

/* Template grid */
.albi-template-grid {
  margin-top: 15px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

/* Template PRO badge position */
.albi-template-pro-badge {
  position: absolute;
  top: 10px;
  right: 10px;
}

/* Template name */
.albi-template-name {
  font-weight: 600;
  font-size: 13px;
  color: #1e293b;
  margin-bottom: 4px;
}

/* Template description */
.albi-template-desc {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
}

/* Template includes list */
.albi-template-includes {
  margin: 0 0 8px 0;
  padding: 0 0 0 16px;
  font-size: 11px;
  color: #92400e;
  line-height: 1.5;
}

/* Template footer text */
.albi-template-footer {
  font-size: 11px;
}

/* Empty state row */
.albi-empty-row {
  text-align: center;
  padding: 20px;
}

/* Section container box heading */
.albi-h4-section {
  margin: 0 0 5px 0;
  font-size: 14px;
  color: #1e293b;
}

/* Container empty placeholder */
.albi-container-empty-placeholder {
  padding: 15px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
  border: 2px dashed #e2e8f0;
  border-radius: 6px;
  margin: 10px;
  width: 100%;
}

/* Container remove footer */
.albi-container-remove-footer {
  text-align: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}

/* Container remove button */
.albi-container-remove-btn {
  color: #dc2626;
  border: 1px solid #fca5a5;
  background: #fff;
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
}
.albi-container-remove-btn:hover {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border-color: #f87171 !important;
}

/* Add container wrapper */
.albi-add-container-wrapper {
  margin-top: 15px;
  text-align: center;
}

/* Section title block */
.albi-section-title {
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

/* Section title with extra top spacing */
.albi-settings-section-title--spaced {
  margin-top: 20px;
}

/* Settings description text */
.albi-settings-desc {
  font-size: 11px;
  color: #64748b;
}

/* Description block under checkbox */
.albi-checkbox-desc {
  display: block;
  margin-left: 24px;
  font-size: 11px;
  color: #64748b;
}

/* Builder tab content */
.albi-tab-content-inner {
  margin-top: 10px;
}

/* Pro badge inline style in template */
.albi-pro-badge-absolute {
  position: absolute;
  top: 10px;
  right: 10px;
}

.albi-w-full {
  width: 100%;
}
.albi-p-10 {
  padding: 10px;
}
.albi-border-dashed {
  border-style: dashed;
}
.albi-choice-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}
.albi-btn-mini {
  min-width: auto;
  padding: 0 6px;
}

/* Entries header bar */
.albi-entries-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  background: #ffffff;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.albi-entries-wrapper {
  margin-top: 15px;
}
.albi-entry-nested-group {
  border: 1px solid #e2e8f0;
  padding: 10px;
  margin: 8px 0;
  border-radius: 6px;
  background: #f8fafc;
}
.albi-entry-section-label {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  text-transform: uppercase;
  color: #64748b;
}
.albi-entry-field-row {
  margin: 2px 0;
  font-size: 13px;
}
.albi-entry-field-label {
  font-weight: 600;
  color: #475569;
}

/* Entries page */
.albi-entries-header-title {
  margin: 0;
  font-size: 16px;
  color: #1e293b;
}
.albi-entries-header-desc {
  margin: 0;
  font-size: 12px;
}
.albi-entries-layout {
  display: flex;
  gap: 20px;
}
.albi-entries-table-wrap {
  flex: 1 1 100%;
}
.albi-entries-table-wrap--with-detail {
  flex: 1 1 55%;
}
.albi-entry-row {
  cursor: pointer;
}
.albi-entry-row--active {
  background: #eff6ff;
}
.albi-entry-details-panel {
  flex: 1 1 45%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 50px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.albi-entry-details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 10px;
  margin-bottom: 15px;
}
.albi-entry-close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #64748b;
}
.albi-entry-meta-box {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 15px;
  border-bottom: 1px dotted #e2e8f0;
  padding-bottom: 10px;
}
.albi-entry-meta-line {
  margin: 2px 0;
}
.albi-entry-value-wrap {
  margin-bottom: 15px;
}
.albi-entry-value-label {
  font-weight: 600;
  display: block;
  font-size: 13px;
  color: #475569;
  margin-bottom: 4px;
}
.albi-entry-value-content {
  font-size: 14px;
  color: #1e293b;
}

/* Albi Forms settings page */
.albi-settings-nav {
  margin-bottom: 20px;
}
.albi-recaptcha-active {
  color: #46b450;
  font-weight: 600;
}
.albi-upgrade-banner {
  margin-top: 30px;
  padding: 20px;
  background: #f0f6fc;
  border: 1px solid #c3d9ed;
  border-radius: 8px;
  max-width: 720px;
}
.albi-upgrade-banner h2 {
  margin-top: 0;
}

/* Pro upsell notice */
.albi-pro-upsell-notice {
  margin: 12px 0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
