:root {
  --admin-bg: #f5f5f7;
  --admin-sidebar-bg: #ffffff;
  --admin-content-bg: #ffffff;
  --admin-text: #1d1d1f;
  --admin-text-muted: #6e6e73;
  --admin-accent: #0071e3;
  --admin-accent-hover: #0077ed;
  --admin-border: #d2d2d7;
  --admin-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  --admin-shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.08);
  --admin-radius: 12px;
}



* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--admin-bg);
  color: var(--admin-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Admin Container */
.admin-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
  background: var(--admin-sidebar-bg);
  border-right: 1px solid var(--admin-border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.admin-brand {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--admin-text);
  border-bottom: 1px solid var(--admin-border);
}

.admin-brand i {
  font-size: 24px;
  color: var(--admin-accent);
}

.admin-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--admin-text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.admin-nav-item:hover {
  background: rgba(0, 113, 227, 0.06);
  color: var(--admin-accent);
}

.admin-nav-item.active {
  background: rgba(0, 113, 227, 0.1);
  color: var(--admin-accent);
}

.admin-nav-item i {
  width: 20px;
  text-align: center;
  font-size: 16px;
}

.admin-nav-divider {
  height: 1px;
  background: var(--admin-border);
  margin: 12px 0;
}

/* Main Content */
.admin-main {
  display: flex;
  flex-direction: column;
  overflow-x: visible;
}

.admin-header {
  background: var(--admin-content-bg);
  border-bottom: 1px solid var(--admin-border);
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.admin-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--admin-text-muted);
}

.admin-breadcrumbs a {
  color: var(--admin-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.admin-breadcrumbs a:hover {
  color: var(--admin-accent);
}

.admin-breadcrumbs .current {
  color: var(--admin-text);
  font-weight: 500;
}

.admin-breadcrumbs i {
  font-size: 10px;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--admin-text-muted);
}

.admin-user i {
  font-size: 20px;
}

/* Content Area */
.admin-content {
  padding: 24px 32px 32px;
  max-width: 1400px;
  width: 100%;
}

/* Page Header */
.page-header {
  margin-bottom: 24px;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  color: var(--admin-text);
}

.page-header p {
  font-size: 16px;
  color: var(--admin-text-muted);
}

.page-header-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

/* Alerts */
.alert {
  padding: 16px 20px;
  border-radius: var(--admin-radius);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.alert i {
  font-size: 18px;
}

.alert-success {
  background: #d1f4e0;
  color: #0d5e3a;
  border: 1px solid #34d399;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #f87171;
}

/* Cards */
.card {
  background: var(--admin-content-bg);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  padding: 28px;
  box-shadow: var(--admin-shadow);
  margin-bottom: 24px;
}

.card-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--admin-border);
}

.card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--admin-text);
  margin: 0 0 24px 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--admin-border);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--admin-content-bg);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  padding: 24px;
  box-shadow: var(--admin-shadow);
}

.stat-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--admin-text);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: var(--admin-text-muted);
  font-weight: 500;
}

/* Table */
.table-container {
  overflow-x: auto;
  border-radius: var(--admin-radius);
  border: 1px solid var(--admin-border);
  background: var(--admin-content-bg);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

thead {
  background: #f9f9fb;
  border-bottom: 1px solid var(--admin-border);
}

th {
  text-align: left;
  padding: 14px 16px;
  font-weight: 600;
  color: var(--admin-text);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

td {
  padding: 16px;
  border-bottom: 1px solid var(--admin-border);
  color: var(--admin-text);
}

tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: rgba(0, 113, 227, 0.02);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--admin-accent);
  color: white;
}

.btn-primary:hover {
  background: var(--admin-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.btn-secondary {
  background: #f5f5f7;
  color: var(--admin-text);
  border: 1px solid var(--admin-border);
}

.btn-secondary:hover {
  background: #e8e8ed;
}

.btn-danger {
  background: #ff3b30;
  color: white;
}

.btn-danger:hover {
  background: #e5372d;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.btn-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--admin-border);
  background: white;
  border-radius: 6px;
  color: var(--admin-text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--admin-text);
}

.form-label.required::after {
  content: ' *';
  color: #ff3b30;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: var(--admin-text);
  background: var(--admin-content-bg);
  transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.form-input[readonly] {
  background: #f9f9fb;
  color: var(--admin-text-muted);
  cursor: not-allowed;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;
}

.form-hint {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--admin-text-muted);
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-checkbox input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--admin-border);
  margin-top: 32px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state i {
  font-size: 48px;
  color: var(--admin-text-muted);
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--admin-text);
}

.empty-state p {
  color: var(--admin-text-muted);
  margin-bottom: 24px;
}

/* Utility Classes */
.text-muted {
  color: var(--admin-text-muted);
}

.text-sm {
  font-size: 13px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.badge-success {
  background: #d1f4e0;
  color: #0d5e3a;
}

.badge-draft {
  background: #f5f5f7;
  color: var(--admin-text-muted);
}

/* Tabs */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--admin-border);
  overflow-x: auto;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: none;
  border: none;
  color: var(--admin-text-muted);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-family: inherit;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--admin-text);
  background: rgba(0, 113, 227, 0.04);
}

.tab-btn.active {
  color: var(--admin-accent);
  border-bottom-color: var(--admin-accent);
}

.tab-btn i {
  font-size: 16px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}



/* Form Layout (WooCommerce style) */
.form-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

.form-main {
  min-width: 0;
}

.form-sidebar {
  position: sticky;
  top: 24px;
}

.form-sidebar .card {
  margin-bottom: 16px;
}

.form-sidebar .card:last-child {
  margin-bottom: 0;
}

/* Responsive: Stack on smaller screens */
@media (max-width: 1200px) {
  .form-layout {
    grid-template-columns: 1fr;
  }
  
  .form-sidebar {
    position: static;
  }
}

/* Nodes Tree (List View) */
.nodes-tree {
  padding: 8px 0;
}

.node-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--admin-border);
  transition: background 0.2s;
}

.node-item:last-child {
  border-bottom: none;
}

.node-item:hover {
  background: rgba(0, 113, 227, 0.02);
}

.node-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.node-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 113, 227, 0.08);
  border-radius: 6px;
  color: var(--admin-accent);
  font-size: 14px;
}

.node-info {
  flex: 1;
}

.node-title {
  font-weight: 500;
  color: var(--admin-text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.node-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.node-actions {
  display: flex;
  gap: 8px;
}

/* Nodes Tree (Pages List) */
.nodes-tree {
  padding: 8px 0;
}

.node-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--admin-border);
  transition: background 0.2s;
}

.node-item:last-child {
  border-bottom: none;
}

.node-item:hover {
  background: rgba(0, 113, 227, 0.02);
}

.node-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.node-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 113, 227, 0.08);
  border-radius: 6px;
  color: var(--admin-accent);
  font-size: 14px;
}

.node-info {
  flex: 1;
}

.node-title {
  font-weight: 500;
  color: var(--admin-text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.node-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.node-actions {
  display: flex;
  gap: 8px;
}

/* ============================================================================
   NODES LIST - Modern styling with drag & drop
   ============================================================================ */

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--admin-border);
}

.nodes-tree {
  padding: 0;
}

.sortable-list,
.sortable-children {
  min-height: 20px;
}

.node-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid #f0f0f0;
  background: white;
  transition: all 0.15s ease;
  cursor: default;
}

.node-item:last-child {
  border-bottom: none;
}

.node-item:hover {
  background: #fafafa;
}

/* Drag handle */
.node-handle {
  cursor: grab;
  color: var(--admin-text-muted);
  font-size: 14px;
  padding: 4px;
  transition: color 0.2s ease;
}

.node-handle:hover {
  color: var(--admin-accent);
}

.node-handle:active {
  cursor: grabbing;
}

/* Dragging states */
.node-ghost {
  opacity: 0.4;
  background: #e5e7eb;
}

.node-drag {
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border: 1px solid var(--admin-accent);
}

/* Node content */
.node-content {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.node-icon-preview {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: var(--admin-accent);
  font-size: 16px;
  flex-shrink: 0;
}

.node-info {
  flex: 1;
  min-width: 0;
}

.node-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
  flex-wrap: wrap;
}

.node-title-link {
  font-weight: 600;
  font-size: 14px;
  color: var(--admin-text);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: all 0.15s ease;
}

.node-title-link:hover {
  color: var(--admin-accent);
  text-decoration-color: var(--admin-accent);
}

.node-description {
  font-size: 12.5px;
  color: #6b7280;
  line-height: 1.4;
}
  color: var(--admin-text-muted);
  line-height: 1.4;
  margin-top: 4px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-info {
  background: #dbeafe;
  color: #1e40af;
}

/* Node actions */
.node-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  min-width: 32px; /* Reserve space even when empty */
}

.node-actions:empty {
  display: none;
}

.node-actions .btn-sm {
  min-width: 32px;
  padding: 6px 8px;
}

.toggle-children {
  background: none;
  border: none;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

.toggle-children:hover {
  opacity: 1;
}

.toggle-children i {
  font-size: 12px;
  color: var(--admin-text-muted);
  transition: transform 0.2s ease;
}

/* Children container */
.node-children {
  background: #f9fafb;
  border-left: 2px solid var(--admin-accent);
  margin-left: 32px;
}

.node-children .node-item {
  padding-left: 40px;
  background: transparent;
}

.node-children .node-item:hover {
  background: #f3f4f6;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .node-actions {
    flex-wrap: wrap;
  }
  
  .node-actions .btn-sm {
    font-size: 12px;
    padding: 6px 10px;
  }
  
  .node-meta {
    font-size: 12px;
  }
  
  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .card-header > div:last-child {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Text link buttons */
.btn-text-link:hover {
  color: var(--admin-accent) !important;
  background: rgba(59, 130, 246, 0.08) !important;
}

.btn-text-link:active {
  transform: translateY(1px);
}

/* Sidebar submenu styles */
.admin-nav-group {
  position: relative;
}

.admin-nav-item .nav-toggle {
  margin-left: auto;
  font-size: 12px;
  transition: transform 0.2s ease;
  color: var(--admin-text-muted);
}

/* Hover - rotate to down */
.admin-nav-group:hover .nav-toggle {
  transform: rotate(0deg) !important;
}

.admin-nav-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.admin-nav-submenu.active {
  max-height: 1000px;
  padding: 4px 0 8px 0;
}

.admin-nav-subgroup {
  margin: 8px 0;
}

.admin-nav-subitem-header {
  padding: 8px 16px 6px 16px;
  font-size: 11px;
  font-weight: 600;
  color: var(--admin-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-nav-subitem-links {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.admin-nav-subitem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 40px;
  color: var(--admin-text);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
  position: relative;
}

.admin-nav-subitem:hover {
  background: rgba(0, 113, 227, 0.05);
  color: var(--admin-accent);
}

.admin-nav-subitem.active {
  color: var(--admin-accent);
  background: rgba(0, 113, 227, 0.08);
  border-left-color: var(--admin-accent);
  font-weight: 500;
}

.admin-nav-subitem i {
  width: 16px;
  font-size: 13px;
  text-align: center;
  opacity: 0.6;
}

.admin-nav-subitem.active i,
.admin-nav-subitem:hover i {
  opacity: 1;
}

/**
 * Layout Page Styles
 * Alle styling voor de Layout admin pagina
 */

/* ============================================
   PAGE HEADER
   ============================================ */

.layout-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.layout-update-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ============================================
   2-COLUMN LAYOUT
   ============================================ */

.layout-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 24px;
  align-items: start;
}

.layout-left-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ============================================
   FORM GROUPS
   ============================================ */

.layout-form-group-no-margin {
  margin: 0;
}

.layout-textarea-editor {
  height: 80px;
}

/* ============================================
   NODES TREE CARD
   ============================================ */

.nodes-tree-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--admin-border);
}

.nodes-tree-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.nodes-tree-description {
  max-width: 600px;
}

.nodes-tree-description p {
  margin: 0;
  font-size: 13px;
  color: var(--admin-text-muted);
  line-height: 1.5;
}

.nodes-tree-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}

.nodes-save-status {
  font-size: 13px;
  color: var(--admin-success);
  display: none;
}

/* Toggle All Button */
.toggle-all-btn {
  font-size: 13px;
  color: #9ca3af;
  background: none;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s ease;
  font-weight: 500;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.toggle-all-btn:hover {
  background: #f3f4f6;
  color: #6b7280;
}

.toggle-all-icon {
  font-size: 12px;
  transition: transform 0.2s ease;
}

/* ============================================
   NAVIGATION BAR SETTINGS
   ============================================ */

.nav-settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-settings-description {
  font-size: 13px;
  color: var(--admin-text-muted);
  margin: 0 0 24px 0;
  line-height: 1.5;
}

/* Navigation Settings Container */
.nav-settings {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Individual Setting Item */
.nav-setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.nav-setting-item:hover {
  background: #f3f4f6;
}

/* Setting Info Section (Icon + Labels) */
.nav-setting-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-setting-icon {
  width: 40px;
  height: 40px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--admin-text-muted);
  font-size: 16px;
  flex-shrink: 0;
}

.nav-setting-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--admin-text);
  margin-bottom: 2px;
}

.nav-setting-hint {
  font-size: 12px;
  color: var(--admin-text-muted);
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #d1d5db;
  transition: .3s;
  border-radius: 26px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

input:checked + .toggle-slider {
  background-color: var(--admin-accent);
}

input:focus + .toggle-slider {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

input:checked + .toggle-slider:before {
  transform: translateX(22px);
}

/* Disabled state */
.toggle-switch input:disabled + .toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================
   MOBILE PREVIEW (RIGHT COLUMN)
   ============================================ */

.layout-preview-column {
  position: sticky;
  top: 70px;
  align-self: flex-start;
  max-height: calc(100vh - 94px);
  overflow-y: auto;
}

.preview-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--admin-border);
}

.preview-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--admin-text-muted);
}

.preview-container {
  padding: 20px;
  background: #f9fafb;
}

.preview-phone {
  width: 300px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  overflow: hidden;
  border: 4px solid #1f2937;
}

/* Mobile Topbar - dynamic color via inline style */
.preview-topbar {
  color: white;
  padding: 14px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  position: relative;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-back-btn {
  font-size: 16px;
  position: absolute;
  left: 14px;
  cursor: pointer;
}

/* Search Bar */
.preview-search-container {
  padding: 14px;
  background: white;
}

.preview-search-bar {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-search-icon {
  font-size: 12px;
  color: #9ca3af;
}

.preview-search-placeholder {
  font-size: 13px;
  color: #9ca3af;
}

/* Preview Content Area */
.mobile-nav-preview {
  background: #f8f9fa;
  min-height: 480px;
  max-height: 580px;
  overflow-y: auto;
}

/* Tiles Grid (rendered by JS - these are for reference) */
.preview-tiles-grid {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.preview-header-footer {
  padding: 12px;
  font-size: 10px;
  line-height: 1.4;
  color: #374151;
  background: white;
}

.preview-empty-state {
  padding: 40px 16px;
  text-align: center;
  color: #9ca3af;
  font-size: 12px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1400px) {
  .layout-grid {
    grid-template-columns: 1fr 350px;
  }
}

@media (max-width: 1200px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }
  
  .layout-preview-column {
    position: relative;
    top: 0;
    max-height: none;
  }
}

@media (max-width: 768px) {
  .nodes-tree-header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .nodes-tree-description {
    max-width: 100%;
  }
  
  .nodes-tree-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .layout-page-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  
  .layout-update-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================================
   AUTH PAGES STYLING
   Login, Forgot Password, Reset Password pages
   Add this at the end of admin.css
   ============================================================================ */

/* Auth Container - Full height centered layout */
.auth-page-body {
  background: var(--admin-bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-container {
  width: 100%;
  max-width: 420px;
}

.auth-card {
  background: var(--admin-content-bg);
  padding: 48px;
  border-radius: var(--admin-radius);
  box-shadow: var(--admin-shadow-lg);
  border: 1px solid var(--admin-border);
}

/* Auth Header */
.auth-header {
  text-align: center;
  margin-bottom: 36px;
}

.auth-header .brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.auth-header .brand i {
  font-size: 32px;
  color: var(--admin-accent);
}

.auth-header h1 {
  font-size: 24px;
  font-weight: 600;
  color: var(--admin-text);
  margin: 0;
}

.auth-header p {
  color: var(--admin-text-muted);
  margin: 8px 0 0 0;
  font-size: 15px;
}

/* Auth Form Elements */
.auth-form-group {
  margin-bottom: 20px;
}

.auth-form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--admin-text);
  font-weight: 500;
  font-size: 14px;
}

.auth-form-group input[type="email"],
.auth-form-group input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s ease;
  background: var(--admin-content-bg);
  color: var(--admin-text);
}

.auth-form-group input:focus {
  outline: none;
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.auth-form-group input::placeholder {
  color: var(--admin-text-muted);
  opacity: 0.6;
}

/* Auth Checkbox */
.auth-form-checkbox {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.auth-form-checkbox input[type="checkbox"] {
  margin-right: 8px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--admin-accent);
}

.auth-form-checkbox label {
  margin: 0;
  color: var(--admin-text);
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

/* Auth Button */
.auth-btn-primary {
  width: 100%;
  padding: 14px;
  background: var(--admin-accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-btn-primary:hover {
  background: var(--admin-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.auth-btn-primary:active {
  transform: translateY(0);
}

/* Auth Links */
.auth-link-section {
  text-align: center;
  margin-top: 20px;
}

.auth-link {
  color: var(--admin-accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.auth-link:hover {
  text-decoration: underline;
}

/* Auth Alerts */
.auth-alert-error {
  background: #fff5f5;
  color: #c53030;
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  border: 1px solid #feb2b2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-alert-error i {
  font-size: 18px;
  flex-shrink: 0;
}

.auth-alert-success {
  background: #f0fdf4;
  color: #166534;
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  border: 1px solid #86efac;
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-alert-success i {
  font-size: 18px;
  flex-shrink: 0;
}

/* Auth Success State (for password reset) */
.auth-success-state {
  background: #f0fdf4;
  color: #166534;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  text-align: center;
  border: 1px solid #86efac;
}

.auth-success-state i {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
}

.auth-success-state strong {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
}

.auth-success-state p {
  margin: 0;
  font-size: 14px;
}

/* Auth Message State */
.auth-message-state {
  text-align: center;
  padding: 20px 0;
}

.auth-message-state p {
  color: var(--admin-text-muted);
  margin-top: 12px;
}

/* Auth Form Help Text */
.auth-form-help {
  font-size: 13px;
  color: var(--admin-text-muted);
  margin-top: 6px;
  line-height: 1.5;
}

/* Auth Responsive */
@media (max-width: 480px) {
  .auth-card {
    padding: 32px 24px;
  }
  
  .auth-header h1 {
    font-size: 22px;
  }
  
  .auth-header .brand i {
    font-size: 28px;
  }
}

/* ============================================================================
   USER MANAGEMENT PAGES STYLING
   Add this to admin.css after the AUTH PAGES section
   ============================================================================ */

/* User Actions Dropdown Menu */
.user-actions-menu {
  position: relative;
  display: inline-block;
}

.user-actions-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1000;
  display: none;
  min-width: 180px;
  padding: 8px 0;
  margin: 4px 0 0;
  background: var(--admin-content-bg);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.user-actions-dropdown.show {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--admin-text);
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s;
  text-align: left;
  font-family: inherit;
}

.dropdown-item:hover {
  background: var(--admin-bg);
}

.dropdown-item i {
  width: 16px;
  text-align: center;
  font-size: 14px;
}

.dropdown-item-danger {
  color: #ef4444;
}

.dropdown-item-danger:hover {
  background: #fef2f2;
}

.dropdown-divider {
  height: 0;
  margin: 8px 0;
  overflow: hidden;
  border-top: 1px solid var(--admin-border);
}

/* Text alignment utilities */
.text-right {
  text-align: right;
}
/* ============================================================================
   PASSWORD TOGGLE & IMPROVEMENTS - FIXED
   Add this to admin.css after the USER MANAGEMENT section
   ============================================================================ */

/* Password Input Wrapper with Toggle Button */
.password-input-wrapper {
  position: relative;
  display: block;
  width: 100%;
}

.password-input-wrapper .form-input {
  width: 100%;
  padding-right: 45px; /* Make room for toggle button */
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--admin-text-muted);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-size: 16px;
}

.password-toggle:hover {
  color: var(--admin-accent);
  background: rgba(0, 113, 227, 0.06);
}

.password-toggle:active {
  transform: translateY(-50%) scale(0.95);
}

/* Klikbare Table Links */
td a {
  transition: color 0.2s ease;
}

td a:hover strong {
  color: var(--admin-accent);
}

/* ============================================================================
   FEEDBACK SYSTEM STYLING
   Add this to admin.css after the USER MANAGEMENT section
   ============================================================================ */

/* Feedback Info Banner */
.feedback-info-banner {
  margin-bottom: 24px;
  padding: 20px;
  background: linear-gradient(135deg, #0071e3 0%, #005bb5 100%);
  color: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.15);
}

.feedback-info-banner .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feedback-info-banner h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
}

.feedback-info-banner p {
  margin: 0;
  opacity: 0.95;
  font-size: 14px;
  line-height: 1.5;
}

/* Feedback Stats Cards */
.feedback-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.feedback-stat-card {
  padding: 20px;
}

.feedback-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feedback-stat-icon i {
  font-size: 20px;
}

.feedback-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--admin-text);
}

.feedback-stat-label {
  font-size: 13px;
  color: var(--admin-text-muted);
}

/* Feedback stat colors */
.feedback-stat-new { background: #fef3c7; color: #f59e0b; }
.feedback-stat-progress { background: #dbeafe; color: #3b82f6; }
.feedback-stat-resolved { background: #d1fae5; color: #10b981; }
.feedback-stat-closed { background: #f3f4f6; color: #6b7280; }

/* Feedback Type Icons */
.feedback-type-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.feedback-type-icon i {
  font-size: 14px;
}

.feedback-type-bug { background: #fee2e2; color: #dc2626; }
.feedback-type-feature { background: #fef3c7; color: #d97706; }
.feedback-type-question { background: #dbeafe; color: #2563eb; }
.feedback-type-general { background: #f3f4f6; color: #6b7280; }

/* Feedback Priority Badges */
.feedback-priority-critical { background: #fee2e2; color: #991b1b; }
.feedback-priority-high { background: #fed7aa; color: #9a3412; }
.feedback-priority-medium { background: #fef3c7; color: #92400e; }
.feedback-priority-low { background: #f3f4f6; color: #4b5563; }

/* Feedback Status Badges */
.feedback-status-new { background: #fef3c7; color: #92400e; }
.feedback-status-progress { background: #dbeafe; color: #1e40af; }
.feedback-status-resolved { background: #d1fae5; color: #065f46; }
.feedback-status-closed { background: #f3f4f6; color: #4b5563; }

/* Feedback Details Page */
.feedback-detail-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.feedback-detail-title {
  margin: 0 0 12px 0;
  font-size: 24px;
  font-weight: 700;
}

.feedback-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.feedback-badges .badge {
  padding: 6px 12px;
}

.feedback-section {
  border-top: 1px solid var(--admin-border);
  padding-top: 20px;
  margin-top: 20px;
}

.feedback-section h3 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--admin-text);
}

.feedback-section-small h3 {
  margin: 0 0 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--admin-text-muted);
}

.feedback-description {
  white-space: pre-wrap;
  line-height: 1.6;
  color: var(--admin-text);
}

.feedback-url {
  color: var(--admin-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.feedback-browser-info {
  margin-top: 8px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 6px;
  font-size: 13px;
  font-family: 'Monaco', 'Courier New', monospace;
  color: #4b5563;
}

/* Feedback Details Table */
.feedback-details-table {
  width: 100%;
  border-collapse: collapse;
}

.feedback-details-table td {
  padding: 12px 0;
}

.feedback-details-table td:first-child {
  font-weight: 500;
  width: 180px;
}

/* Admin Response Card */
.feedback-admin-response {
  background: #f0fdf4;
  border-color: #86efac;
}

.feedback-admin-response .card-title {
  color: #065f46;
}

.feedback-admin-response-content {
  white-space: pre-wrap;
  line-height: 1.6;
  color: #065f46;
}

/* Privacy Notice */
.feedback-privacy-notice {
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: start;
  gap: 12px;
}

.feedback-privacy-notice i {
  color: #6b7280;
  font-size: 20px;
  margin-top: 2px;
}

.feedback-privacy-notice-text {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .feedback-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .feedback-detail-header {
    flex-direction: column;
  }
}

/* ============================================================================
   FEEDBACK SYSTEM STYLING
   Add this to admin.css after the USER MANAGEMENT section
   ============================================================================ */

/* Feedback Info Banner */
.feedback-info-banner {
  margin-bottom: 24px;
  padding: 20px;
  background: linear-gradient(135deg, #0071e3 0%, #005bb5 100%);
  color: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.15);
}

.feedback-info-banner .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feedback-info-banner h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
}

.feedback-info-banner p {
  margin: 0;
  opacity: 0.95;
  font-size: 14px;
  line-height: 1.5;
}

/* Feedback Stats Cards */
.feedback-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.feedback-stat-card {
  padding: 20px;
}

.feedback-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feedback-stat-icon i {
  font-size: 20px;
}

.feedback-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--admin-text);
}

.feedback-stat-label {
  font-size: 13px;
  color: var(--admin-text-muted);
}

/* Feedback stat colors */
.feedback-stat-new { background: #fef3c7; color: #f59e0b; }
.feedback-stat-progress { background: #dbeafe; color: #3b82f6; }
.feedback-stat-resolved { background: #d1fae5; color: #10b981; }
.feedback-stat-closed { background: #f3f4f6; color: #6b7280; }

/* Feedback Type Icons */
.feedback-type-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.feedback-type-icon i {
  font-size: 14px;
}

.feedback-type-bug { background: #fee2e2; color: #dc2626; }
.feedback-type-feature { background: #fef3c7; color: #d97706; }
.feedback-type-question { background: #dbeafe; color: #2563eb; }
.feedback-type-general { background: #f3f4f6; color: #6b7280; }

/* Feedback Priority Badges */
.feedback-priority-critical { background: #fee2e2; color: #991b1b; }
.feedback-priority-high { background: #fed7aa; color: #9a3412; }
.feedback-priority-medium { background: #fef3c7; color: #92400e; }
.feedback-priority-low { background: #f3f4f6; color: #4b5563; }

/* Feedback Status Badges */
.feedback-status-new { background: #fef3c7; color: #92400e; }
.feedback-status-progress { background: #dbeafe; color: #1e40af; }
.feedback-status-resolved { background: #d1fae5; color: #065f46; }
.feedback-status-closed { background: #f3f4f6; color: #4b5563; }

/* Feedback Details Page */
.feedback-detail-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.feedback-detail-title {
  margin: 0 0 12px 0;
  font-size: 24px;
  font-weight: 700;
}

.feedback-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.feedback-badges .badge {
  padding: 6px 12px;
}

.feedback-section {
  border-top: 1px solid var(--admin-border);
  padding-top: 20px;
  margin-top: 20px;
}

.feedback-section h3 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--admin-text);
}

.feedback-section-small h3 {
  margin: 0 0 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--admin-text-muted);
}

.feedback-description {
  white-space: pre-wrap;
  line-height: 1.6;
  color: var(--admin-text);
}

.feedback-url {
  color: var(--admin-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.feedback-browser-info {
  margin-top: 8px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 6px;
  font-size: 13px;
  font-family: 'Monaco', 'Courier New', monospace;
  color: #4b5563;
}

/* Feedback Details Table */
.feedback-details-table {
  width: 100%;
  border-collapse: collapse;
}

.feedback-details-table td {
  padding: 12px 0;
}

.feedback-details-table td:first-child {
  font-weight: 500;
  width: 180px;
}

/* Admin Response Card */
.feedback-admin-response {
  background: #f0fdf4;
  border-color: #86efac;
}

.feedback-admin-response .card-title {
  color: #065f46;
}

.feedback-admin-response-content {
  white-space: pre-wrap;
  line-height: 1.6;
  color: #065f46;
}

/* Privacy Notice */
.feedback-privacy-notice {
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: start;
  gap: 12px;
}

.feedback-privacy-notice i {
  color: #6b7280;
  font-size: 20px;
  margin-top: 2px;
}

.feedback-privacy-notice-text {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
}

/* Clickable Stats Cards */
.feedback-stat-clickable {
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.feedback-stat-clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feedback-stat-clickable.active {
  border: 2px solid var(--admin-accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.feedback-stat-clickable:active {
  transform: translateY(0);
}

/* Quick Edit Dropdown */
.feedback-quick-edit-dropdown {
  position: relative;
  display: inline-block;
}

.feedback-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: none;
  min-width: 130px;
  padding: 4px 0;
  margin: 4px 0 0;
  background: var(--admin-content-bg);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-height: 300px;
  overflow-y: auto;
}

.feedback-dropdown-menu.show {
  display: block;
}

.feedback-dropdown-menu .dropdown-item {
  display: block;
  width: 100%;
  padding: 6px 12px;
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s;
  text-align: left;
  font-family: inherit;
}

.feedback-dropdown-menu .dropdown-item:hover {
  background: var(--admin-bg);
}

.feedback-dropdown-menu .badge {
  display: inline-block;
  text-align: center;
}

/* Filter Form Styling */
form[action="/admin/feedback.php"] label {
  display: flex;
  align-items: center;
  gap: 6px;
}

form[action="/admin/feedback.php"] label i {
  font-size: 12px;
  opacity: 0.7;
}

/* Filter Dropdown Selects */
.filter-select {
  padding: 8px 12px;
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  background: var(--admin-content-bg);
  color: var(--admin-text);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
  min-width: 120px;
}

.filter-select:hover {
  border-color: var(--admin-accent);
}

.filter-select:focus {
  outline: none;
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.filter-dropdowns-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
  .feedback-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .feedback-detail-header {
    flex-direction: column;
  }
  
  .filter-right {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-dropdowns-form {
    width: 100%;
  }
  
  .filter-select {
    flex: 1;
  }
}


 .list-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  }
  
  .filter-tabs {
    display: flex;
    gap: 4px;
  }
  
  .filter-tab {
    padding: 8px 16px;
    text-decoration: none;
    color: var(--admin-text);
    border-radius: 6px;
    transition: all 0.15s;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
  }
  
  .filter-tab:hover {
    background: var(--admin-bg-hover);
  }
  
  .filter-tab.active {
    background: var(--admin-accent);
    color: white;
    font-weight: 500;
  }
  
  .filter-tab .count {
    opacity: 0.8;
    font-size: 13px;
  }
  
  .search-form {
    display: flex;
    gap: 8px;
  }
  
.search-input {
  padding: 8px 12px;
  height: 40px;
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  font-size: 14px;
  width: 250px;
}
  
  .search-input:focus {
    outline: none;
    border-color: var(--admin-accent);
  }
  
  /* Active Filters */
  .active-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 16px;
    background: #f7fafc;
    border-radius: 6px;
    margin-bottom: 16px;
  }
  
  .active-filters-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--admin-text-muted);
    margin-right: 8px;
  }
  
  .filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: white;
    border: 1px solid #cbd5e0;
    border-radius: 16px;
    font-size: 13px;
    color: var(--admin-text);
    text-decoration: none;
    transition: all 0.15s;
  }
  
  .filter-badge:hover {
    background: #fee;
    border-color: #fcc;
    color: #c00;
  }
  
  .filter-badge i {
    font-size: 11px;
  }
  
  .filter-clear-all {
    background: #fee;
    border-color: #fcc;
    color: #c00;
    font-weight: 500;
  }
  
  .filter-clear-all:hover {
    background: #fcc;
    border-color: #f99;
  }
  
  .table-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  }
  
  .data-table {
    width: 100%;
    border-collapse: collapse;
  }
  
  .data-table thead {
    background: #f9fafb;
  }
  
  .data-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--admin-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--admin-border);
  }
  
  .data-table th.sortable {
    cursor: pointer;
    user-select: none;
  }
  
  .data-table th.sortable a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s;
  }
  
  .data-table th.sortable a:hover {
    color: var(--admin-accent);
  }
  
  .sort-icon {
    font-size: 11px;
    opacity: 0.4;
    transition: opacity 0.15s;
  }
  
  .sort-icon.active {
    opacity: 1;
    color: var(--admin-accent);
  }
  
  .data-table th.sortable:hover .sort-icon {
    opacity: 0.7;
  }
  
  .data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
  }
  
  .data-table tbody tr:hover {
    background: #f9fafb;
  }
  
  .cell-title {
    display: flex;
    align-items: flex-start;
    gap: 8px;
  }
  
  .cell-title-link {
    color: var(--admin-text);
    text-decoration: none;
    font-weight: 500;
  }
  
  .cell-title-link:hover {
    color: var(--admin-accent);
  }
  
  .cell-subtitle {
    font-size: 12px;
    color: var(--admin-text-muted);
    margin-top: 4px;
  }
  
  .badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
  }
  
  .badge-clickable {
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
  }
  
  .badge-clickable:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    opacity: 0.9;
  }
  
  .badge-success {
    background: #d1fae5;
    color: #065f46;
  }
  
  .badge-draft {
    background: #fee;
    color: #991b1b;
  }
  
  .badge-secondary {
    background: #e5e7eb;
    color: #374151;
  }
  
  .badge-info {
    background: #dbeafe;
    color: #1e40af;
  }
  
  .badge-neutral {
    background: #f3f4f6;
    color: #6b7280;
  }
  
  .row-actions {
    display: flex;
    gap: 4px;
  }
  
  .btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--admin-border);
    background: white;
    border-radius: 6px;
    color: var(--admin-text-muted);
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
  }
  
  .btn-icon:hover {
    background: var(--admin-bg-hover);
    color: var(--admin-accent);
    border-color: var(--admin-accent);
  }

  
/* Feedback Dropdown - Apple/Confluence Style */
.table-container {
  overflow: visible !important;
}

.feedback-quick-edit-dropdown {
  position: static;
}

.feedback-dropdown-menu {
  position: fixed !important;
  z-index: 9999 !important;
  margin-top: 6px;
  min-width: 180px;
  padding: 6px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(10px);
}

.feedback-dropdown-menu .dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
  font-family: inherit;
  border-radius: 6px;
}

.feedback-dropdown-menu .dropdown-item:hover {
  background: rgba(0, 113, 227, 0.08);
}

.feedback-dropdown-menu .dropdown-item:active {
  background: rgba(0, 113, 227, 0.12);
  transform: scale(0.98);
}

.feedback-dropdown-menu .badge {
  width: 110px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  justify-content: center;
  border-radius: 6px;
  letter-spacing: 0.01em;
}

tbody tr {
  position: static;
}

/* Beta Notice - Always Visible */
.beta-notice {
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
  background: #f0f9ff !important;
  border: 1px solid #bae6fd !important;
  color: #075985 !important;
}

.beta-notice * {
  pointer-events: none;
}