body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

/* src/components/css/LandingPage.css - Complete Version */

/* Main Backdrop */
.landing-backdrop {
  height: 100vh;
  width: 100vw;
  background: radial-gradient(ellipse at center, #0f0f0f, #000000);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
}

/* Landing Modal */
.landing-modal {
  background: rgba(20, 20, 20, 0.95);
  border-radius: 16px;
  padding: 40px 30px;
  width: 400px;
  max-width: 90%;
  color: #fff;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Logo */
.logo {
  font-size: 32px;
  margin-bottom: 16px;
  color: #fff;
}

/* Heading */
h2 {
  margin: 0 0 8px 0;
  font-size: 24px;
  font-weight: 400;
  color: #fff;
}

h2 strong {
  font-weight: 700;
  color: #fff;
}

/* Subtitle */
.subtitle {
  color: #aaa;
  margin-top: 4px;
  margin-bottom: 24px;
  font-size: 15px;
}

/* ============================================
   INLINE ERROR MESSAGE STYLES
   ============================================ */

.inline-error {
  background: rgba(255, 50, 50, 0.15);
  border: 2px solid rgba(255, 107, 107, 0.5);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  animation: errorSlideIn 0.4s ease-out;
  text-align: center;
}

@keyframes errorSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.error-icon {
  font-size: 40px;
  margin-bottom: 12px;
  display: block;
  animation: errorPulse 2s ease-in-out infinite;
}

@keyframes errorPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

.error-message {
  color: #ff6b6b;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px 0;
  font-weight: 500;
}

.error-email {
  background: rgba(0, 0, 0, 0.4);
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #ddd;
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  word-break: break-all;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.error-email span {
  color: #ccc;
}

.dismiss-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
}

.dismiss-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

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

/* ============================================
   GOOGLE LOGIN BUTTON
   ============================================ */

.google-btn {
  width: 100%;
  background: #fff;
  color: #000;
  padding: 12px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 15px;
}

.google-btn:hover:not(:disabled) {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.google-btn:active:not(:disabled) {
  transform: translateY(0);
}

.google-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

.google-icon {
  width: 20px;
  height: 20px;
}

/* Loading Spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   TERMS & CONDITIONS
   ============================================ */

.terms {
  font-size: 12px;
  color: #777;
  margin-top: 20px;
  line-height: 1.6;
}

.terms a {
  color: #aaa;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.terms a:hover {
  color: #fff;
}

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

@media (max-width: 480px) {
  .landing-modal {
    width: 90%;
    padding: 32px 24px;
  }

  .logo {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }

  .error-icon {
    font-size: 36px;
  }

  .error-message {
    font-size: 13px;
  }

  .inline-error {
    padding: 16px;
  }
}

/* ============================================
   DEBUG HELPER (Remove in production)
   ============================================ */

/* Uncomment this to test if error box appears */
/*
.inline-error {
  border: 3px solid red !important;
  background: rgba(255, 0, 0, 0.3) !important;
}
*/

/* this gets exported as style.css and can be used for the default theming */
/* these are the necessary styles for React/Svelte Flow, they get used by base.css and style.css */
.react-flow {
  direction: ltr;

  --xy-edge-stroke-default: #b1b1b7;
  --xy-edge-stroke-width-default: 1;
  --xy-edge-stroke-selected-default: #555;

  --xy-connectionline-stroke-default: #b1b1b7;
  --xy-connectionline-stroke-width-default: 1;

  --xy-attribution-background-color-default: rgba(255, 255, 255, 0.5);

  --xy-minimap-background-color-default: #fff;
  --xy-minimap-mask-background-color-default: rgba(240, 240, 240, 0.6);
  --xy-minimap-mask-stroke-color-default: transparent;
  --xy-minimap-mask-stroke-width-default: 1;
  --xy-minimap-node-background-color-default: #e2e2e2;
  --xy-minimap-node-stroke-color-default: transparent;
  --xy-minimap-node-stroke-width-default: 2;

  --xy-background-color-default: transparent;
  --xy-background-pattern-dots-color-default: #91919a;
  --xy-background-pattern-lines-color-default: #eee;
  --xy-background-pattern-cross-color-default: #e2e2e2;
  background-color: var(--xy-background-color-default);
  background-color: var(--xy-background-color, var(--xy-background-color-default));
  --xy-node-color-default: inherit;
  --xy-node-border-default: 1px solid #1a192b;
  --xy-node-background-color-default: #fff;
  --xy-node-group-background-color-default: rgba(240, 240, 240, 0.25);
  --xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(0, 0, 0, 0.08);
  --xy-node-boxshadow-selected-default: 0 0 0 0.5px #1a192b;
  --xy-node-border-radius-default: 3px;

  --xy-handle-background-color-default: #1a192b;
  --xy-handle-border-color-default: #fff;

  --xy-selection-background-color-default: rgba(0, 89, 220, 0.08);
  --xy-selection-border-default: 1px dotted rgba(0, 89, 220, 0.8);

  --xy-controls-button-background-color-default: #fefefe;
  --xy-controls-button-background-color-hover-default: #f4f4f4;
  --xy-controls-button-color-default: inherit;
  --xy-controls-button-color-hover-default: inherit;
  --xy-controls-button-border-color-default: #eee;
  --xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, 0.08);

  --xy-edge-label-background-color-default: #ffffff;
  --xy-edge-label-color-default: inherit;
  --xy-resize-background-color-default: #3367d9;
}
.react-flow.dark {
  --xy-edge-stroke-default: #3e3e3e;
  --xy-edge-stroke-width-default: 1;
  --xy-edge-stroke-selected-default: #727272;

  --xy-connectionline-stroke-default: #b1b1b7;
  --xy-connectionline-stroke-width-default: 1;

  --xy-attribution-background-color-default: rgba(150, 150, 150, 0.25);

  --xy-minimap-background-color-default: #141414;
  --xy-minimap-mask-background-color-default: rgba(60, 60, 60, 0.6);
  --xy-minimap-mask-stroke-color-default: transparent;
  --xy-minimap-mask-stroke-width-default: 1;
  --xy-minimap-node-background-color-default: #2b2b2b;
  --xy-minimap-node-stroke-color-default: transparent;
  --xy-minimap-node-stroke-width-default: 2;

  --xy-background-color-default: #141414;
  --xy-background-pattern-dots-color-default: #777;
  --xy-background-pattern-lines-color-default: #777;
  --xy-background-pattern-cross-color-default: #777;
  --xy-node-color-default: #f8f8f8;
  --xy-node-border-default: 1px solid #3c3c3c;
  --xy-node-background-color-default: #1e1e1e;
  --xy-node-group-background-color-default: rgba(240, 240, 240, 0.25);
  --xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(255, 255, 255, 0.08);
  --xy-node-boxshadow-selected-default: 0 0 0 0.5px #999;

  --xy-handle-background-color-default: #bebebe;
  --xy-handle-border-color-default: #1e1e1e;

  --xy-selection-background-color-default: rgba(200, 200, 220, 0.08);
  --xy-selection-border-default: 1px dotted rgba(200, 200, 220, 0.8);

  --xy-controls-button-background-color-default: #2b2b2b;
  --xy-controls-button-background-color-hover-default: #3e3e3e;
  --xy-controls-button-color-default: #f8f8f8;
  --xy-controls-button-color-hover-default: #fff;
  --xy-controls-button-border-color-default: #5b5b5b;
  --xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, 0.08);

  --xy-edge-label-background-color-default: #141414;
  --xy-edge-label-color-default: #f8f8f8;
}
.react-flow__background {
  background-color: var(--xy-background-color-default);
  background-color: var(--xy-background-color, var(--xy-background-color-props, var(--xy-background-color-default)));
  pointer-events: none;
  z-index: -1;
}
.react-flow__container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}
.react-flow__pane {
  z-index: 1;
}
.react-flow__pane.draggable {
    cursor: grab;
  }
.react-flow__pane.dragging {
    cursor: grabbing;
  }
.react-flow__pane.selection {
    cursor: pointer;
  }
.react-flow__viewport {
  transform-origin: 0 0;
  z-index: 2;
  pointer-events: none;
}
.react-flow__renderer {
  z-index: 4;
}
.react-flow__selection {
  z-index: 6;
}
.react-flow__nodesselection-rect:focus,
.react-flow__nodesselection-rect:focus-visible {
  outline: none;
}
.react-flow__edge-path {
  stroke: var(--xy-edge-stroke-default);
  stroke: var(--xy-edge-stroke, var(--xy-edge-stroke-default));
  stroke-width: var(--xy-edge-stroke-width-default);
  stroke-width: var(--xy-edge-stroke-width, var(--xy-edge-stroke-width-default));
  fill: none;
}
.react-flow__connection-path {
  stroke: var(--xy-connectionline-stroke-default);
  stroke: var(--xy-connectionline-stroke, var(--xy-connectionline-stroke-default));
  stroke-width: var(--xy-connectionline-stroke-width-default);
  stroke-width: var(--xy-connectionline-stroke-width, var(--xy-connectionline-stroke-width-default));
  fill: none;
}
.react-flow .react-flow__edges {
  position: absolute;
}
.react-flow .react-flow__edges svg {
    overflow: visible;
    position: absolute;
    pointer-events: none;
  }
.react-flow__edge {
  pointer-events: visibleStroke;
}
.react-flow__edge.selectable {
    cursor: pointer;
  }
.react-flow__edge.animated path {
    stroke-dasharray: 5;
    animation: dashdraw 0.5s linear infinite;
  }
.react-flow__edge.animated path.react-flow__edge-interaction {
    stroke-dasharray: none;
    animation: none;
  }
.react-flow__edge.inactive {
    pointer-events: none;
  }
.react-flow__edge.selected,
  .react-flow__edge:focus,
  .react-flow__edge:focus-visible {
    outline: none;
  }
.react-flow__edge.selected .react-flow__edge-path,
  .react-flow__edge.selectable:focus .react-flow__edge-path,
  .react-flow__edge.selectable:focus-visible .react-flow__edge-path {
    stroke: var(--xy-edge-stroke-selected-default);
    stroke: var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default));
  }
.react-flow__edge-textwrapper {
    pointer-events: all;
  }
.react-flow__edge .react-flow__edge-text {
    pointer-events: none;
    -webkit-user-select: none;
            user-select: none;
  }
.react-flow__connection {
  pointer-events: none;
}
.react-flow__connection .animated {
    stroke-dasharray: 5;
    animation: dashdraw 0.5s linear infinite;
  }
svg.react-flow__connectionline {
  z-index: 1001;
  overflow: visible;
  position: absolute;
}
.react-flow__nodes {
  pointer-events: none;
  transform-origin: 0 0;
}
.react-flow__node {
  position: absolute;
  -webkit-user-select: none;
          user-select: none;
  pointer-events: all;
  transform-origin: 0 0;
  box-sizing: border-box;
  cursor: default;
}
.react-flow__node.selectable {
    cursor: pointer;
  }
.react-flow__node.draggable {
    cursor: grab;
    pointer-events: all;
  }
.react-flow__node.draggable.dragging {
      cursor: grabbing;
    }
.react-flow__nodesselection {
  z-index: 3;
  transform-origin: left top;
  pointer-events: none;
}
.react-flow__nodesselection-rect {
    position: absolute;
    pointer-events: all;
    cursor: grab;
  }
.react-flow__handle {
  position: absolute;
  pointer-events: none;
  min-width: 5px;
  min-height: 5px;
  width: 6px;
  height: 6px;
  background-color: var(--xy-handle-background-color-default);
  background-color: var(--xy-handle-background-color, var(--xy-handle-background-color-default));
  border: 1px solid var(--xy-handle-border-color-default);
  border: 1px solid var(--xy-handle-border-color, var(--xy-handle-border-color-default));
  border-radius: 100%;
}
.react-flow__handle.connectingfrom {
    pointer-events: all;
  }
.react-flow__handle.connectionindicator {
    pointer-events: all;
    cursor: crosshair;
  }
.react-flow__handle-bottom {
    top: auto;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%);
  }
.react-flow__handle-top {
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
  }
.react-flow__handle-left {
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
  }
.react-flow__handle-right {
    top: 50%;
    right: 0;
    transform: translate(50%, -50%);
  }
.react-flow__edgeupdater {
  cursor: move;
  pointer-events: all;
}
.react-flow__panel {
  position: absolute;
  z-index: 5;
  margin: 15px;
}
.react-flow__panel.top {
    top: 0;
  }
.react-flow__panel.bottom {
    bottom: 0;
  }
.react-flow__panel.top.center, .react-flow__panel.bottom.center {
      left: 50%;
      transform: translateX(-50%);
    }
.react-flow__panel.left {
    left: 0;
  }
.react-flow__panel.right {
    right: 0;
  }
.react-flow__panel.left.center, .react-flow__panel.right.center {
      top: 50%;
      transform: translateY(-50%);
    }
.react-flow__attribution {
  font-size: 10px;
  background: var(--xy-attribution-background-color-default);
  background: var(--xy-attribution-background-color, var(--xy-attribution-background-color-default));
  padding: 2px 3px;
  margin: 0;
}
.react-flow__attribution a {
    text-decoration: none;
    color: #999;
  }
@keyframes dashdraw {
  from {
    stroke-dashoffset: 10;
  }
}
.react-flow__edgelabel-renderer {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-user-select: none;
          user-select: none;
  left: 0;
  top: 0;
}
.react-flow__viewport-portal {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  -webkit-user-select: none;
          user-select: none;
}
.react-flow__minimap {
  background: var(--xy-minimap-background-color-default);
  background: var(
    --xy-minimap-background-color-props,
    var(--xy-minimap-background-color, var(--xy-minimap-background-color-default))
  );
}
.react-flow__minimap-svg {
    display: block;
  }
.react-flow__minimap-mask {
    fill: var(--xy-minimap-mask-background-color-default);
    fill: var(
      --xy-minimap-mask-background-color-props,
      var(--xy-minimap-mask-background-color, var(--xy-minimap-mask-background-color-default))
    );
    stroke: var(--xy-minimap-mask-stroke-color-default);
    stroke: var(
      --xy-minimap-mask-stroke-color-props,
      var(--xy-minimap-mask-stroke-color, var(--xy-minimap-mask-stroke-color-default))
    );
    stroke-width: var(--xy-minimap-mask-stroke-width-default);
    stroke-width: var(
      --xy-minimap-mask-stroke-width-props,
      var(--xy-minimap-mask-stroke-width, var(--xy-minimap-mask-stroke-width-default))
    );
  }
.react-flow__minimap-node {
    fill: var(--xy-minimap-node-background-color-default);
    fill: var(
      --xy-minimap-node-background-color-props,
      var(--xy-minimap-node-background-color, var(--xy-minimap-node-background-color-default))
    );
    stroke: var(--xy-minimap-node-stroke-color-default);
    stroke: var(
      --xy-minimap-node-stroke-color-props,
      var(--xy-minimap-node-stroke-color, var(--xy-minimap-node-stroke-color-default))
    );
    stroke-width: var(--xy-minimap-node-stroke-width-default);
    stroke-width: var(
      --xy-minimap-node-stroke-width-props,
      var(--xy-minimap-node-stroke-width, var(--xy-minimap-node-stroke-width-default))
    );
  }
.react-flow__background-pattern.dots {
    fill: var(--xy-background-pattern-dots-color-default);
    fill: var(
      --xy-background-pattern-color-props,
      var(--xy-background-pattern-color, var(--xy-background-pattern-dots-color-default))
    );
  }
.react-flow__background-pattern.lines {
    stroke: var(--xy-background-pattern-lines-color-default);
    stroke: var(
      --xy-background-pattern-color-props,
      var(--xy-background-pattern-color, var(--xy-background-pattern-lines-color-default))
    );
  }
.react-flow__background-pattern.cross {
    stroke: var(--xy-background-pattern-cross-color-default);
    stroke: var(
      --xy-background-pattern-color-props,
      var(--xy-background-pattern-color, var(--xy-background-pattern-cross-color-default))
    );
  }
.react-flow__controls {
  display: flex;
  flex-direction: column;
  box-shadow: var(--xy-controls-box-shadow-default);
  box-shadow: var(--xy-controls-box-shadow, var(--xy-controls-box-shadow-default));
}
.react-flow__controls.horizontal {
    flex-direction: row;
  }
.react-flow__controls-button {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 26px;
    width: 26px;
    padding: 4px;
    border: none;
    background: var(--xy-controls-button-background-color-default);
    background: var(--xy-controls-button-background-color, var(--xy-controls-button-background-color-default));
    border-bottom: 1px solid
      var(--xy-controls-button-border-color-default);
    border-bottom: 1px solid
      var(
        --xy-controls-button-border-color-props,
        var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default))
      );
    color: var(--xy-controls-button-color-default);
    color: var(
      --xy-controls-button-color-props,
      var(--xy-controls-button-color, var(--xy-controls-button-color-default))
    );
    cursor: pointer;
    -webkit-user-select: none;
            user-select: none;
  }
.react-flow__controls-button svg {
      width: 100%;
      max-width: 12px;
      max-height: 12px;
      fill: currentColor;
    }
.react-flow__edge.updating .react-flow__edge-path {
      stroke: #777;
    }
.react-flow__edge-text {
    font-size: 10px;
  }
.react-flow__node.selectable:focus,
  .react-flow__node.selectable:focus-visible {
    outline: none;
  }
.react-flow__node-input,
.react-flow__node-default,
.react-flow__node-output,
.react-flow__node-group {
  padding: 10px;
  border-radius: var(--xy-node-border-radius-default);
  border-radius: var(--xy-node-border-radius, var(--xy-node-border-radius-default));
  width: 150px;
  font-size: 12px;
  color: var(--xy-node-color-default);
  color: var(--xy-node-color, var(--xy-node-color-default));
  text-align: center;
  border: var(--xy-node-border-default);
  border: var(--xy-node-border, var(--xy-node-border-default));
  background-color: var(--xy-node-background-color-default);
  background-color: var(--xy-node-background-color, var(--xy-node-background-color-default));
}
.react-flow__node-input.selectable:hover, .react-flow__node-default.selectable:hover, .react-flow__node-output.selectable:hover, .react-flow__node-group.selectable:hover {
      box-shadow: var(--xy-node-boxshadow-hover-default);
      box-shadow: var(--xy-node-boxshadow-hover, var(--xy-node-boxshadow-hover-default));
    }
.react-flow__node-input.selectable.selected,
    .react-flow__node-input.selectable:focus,
    .react-flow__node-input.selectable:focus-visible,
    .react-flow__node-default.selectable.selected,
    .react-flow__node-default.selectable:focus,
    .react-flow__node-default.selectable:focus-visible,
    .react-flow__node-output.selectable.selected,
    .react-flow__node-output.selectable:focus,
    .react-flow__node-output.selectable:focus-visible,
    .react-flow__node-group.selectable.selected,
    .react-flow__node-group.selectable:focus,
    .react-flow__node-group.selectable:focus-visible {
      box-shadow: var(--xy-node-boxshadow-selected-default);
      box-shadow: var(--xy-node-boxshadow-selected, var(--xy-node-boxshadow-selected-default));
    }
.react-flow__node-group {
  background-color: var(--xy-node-group-background-color-default);
  background-color: var(--xy-node-group-background-color, var(--xy-node-group-background-color-default));
}
.react-flow__nodesselection-rect,
.react-flow__selection {
  background: var(--xy-selection-background-color-default);
  background: var(--xy-selection-background-color, var(--xy-selection-background-color-default));
  border: var(--xy-selection-border-default);
  border: var(--xy-selection-border, var(--xy-selection-border-default));
}
.react-flow__nodesselection-rect:focus,
  .react-flow__nodesselection-rect:focus-visible,
  .react-flow__selection:focus,
  .react-flow__selection:focus-visible {
    outline: none;
  }
.react-flow__controls-button:hover {
      background: var(--xy-controls-button-background-color-hover-default);
      background: var(
        --xy-controls-button-background-color-hover-props,
        var(--xy-controls-button-background-color-hover, var(--xy-controls-button-background-color-hover-default))
      );
      color: var(--xy-controls-button-color-hover-default);
      color: var(
        --xy-controls-button-color-hover-props,
        var(--xy-controls-button-color-hover, var(--xy-controls-button-color-hover-default))
      );
    }
.react-flow__controls-button:disabled {
      pointer-events: none;
    }
.react-flow__controls-button:disabled svg {
        fill-opacity: 0.4;
      }
.react-flow__controls-button:last-child {
    border-bottom: none;
  }
.react-flow__controls.horizontal .react-flow__controls-button {
    border-bottom: none;
    border-right: 1px solid
      var(--xy-controls-button-border-color-default);
    border-right: 1px solid
      var(
        --xy-controls-button-border-color-props,
        var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default))
      );
  }
.react-flow__controls.horizontal .react-flow__controls-button:last-child {
    border-right: none;
  }
.react-flow__resize-control {
  position: absolute;
}
.react-flow__resize-control.left,
.react-flow__resize-control.right {
  cursor: ew-resize;
}
.react-flow__resize-control.top,
.react-flow__resize-control.bottom {
  cursor: ns-resize;
}
.react-flow__resize-control.top.left,
.react-flow__resize-control.bottom.right {
  cursor: nwse-resize;
}
.react-flow__resize-control.bottom.left,
.react-flow__resize-control.top.right {
  cursor: nesw-resize;
}
/* handle styles */
.react-flow__resize-control.handle {
  width: 4px;
  height: 4px;
  border: 1px solid #fff;
  border-radius: 1px;
  background-color: var(--xy-resize-background-color-default);
  background-color: var(--xy-resize-background-color, var(--xy-resize-background-color-default));
  transform: translate(-50%, -50%);
}
.react-flow__resize-control.handle.left {
  left: 0;
  top: 50%;
}
.react-flow__resize-control.handle.right {
  left: 100%;
  top: 50%;
}
.react-flow__resize-control.handle.top {
  left: 50%;
  top: 0;
}
.react-flow__resize-control.handle.bottom {
  left: 50%;
  top: 100%;
}
.react-flow__resize-control.handle.top.left {
  left: 0;
}
.react-flow__resize-control.handle.bottom.left {
  left: 0;
}
.react-flow__resize-control.handle.top.right {
  left: 100%;
}
.react-flow__resize-control.handle.bottom.right {
  left: 100%;
}
/* line styles */
.react-flow__resize-control.line {
  border-color: var(--xy-resize-background-color-default);
  border-color: var(--xy-resize-background-color, var(--xy-resize-background-color-default));
  border-width: 0;
  border-style: solid;
}
.react-flow__resize-control.line.left,
.react-flow__resize-control.line.right {
  width: 1px;
  transform: translate(-50%, 0);
  top: 0;
  height: 100%;
}
.react-flow__resize-control.line.left {
  left: 0;
  border-left-width: 1px;
}
.react-flow__resize-control.line.right {
  left: 100%;
  border-right-width: 1px;
}
.react-flow__resize-control.line.top,
.react-flow__resize-control.line.bottom {
  height: 1px;
  transform: translate(0, -50%);
  left: 0;
  width: 100%;
}
.react-flow__resize-control.line.top {
  top: 0;
  border-top-width: 1px;
}
.react-flow__resize-control.line.bottom {
  border-bottom-width: 1px;
  top: 100%;
}
.react-flow__edge-textbg {
  fill: var(--xy-edge-label-background-color-default);
  fill: var(--xy-edge-label-background-color, var(--xy-edge-label-background-color-default));
}
.react-flow__edge-text {
  fill: var(--xy-edge-label-color-default);
  fill: var(--xy-edge-label-color, var(--xy-edge-label-color-default));
}

/* components/css/NewProjectModal.css */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
}

.modal-content {
  background: #2a2a2a;
  border-radius: 16px;
  padding: 32px;
  max-width: 480px;
  width: 90%;
  position: relative;
  color: white;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid #444;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #999;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: color 0.2s;
}

.modal-close:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
}

.modal-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 16px 0;
  color: white;
}

.modal-description {
  font-size: 16px;
  line-height: 1.5;
  color: #ccc;
  margin: 0 0 32px 0;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.btn-cancel {
  background: white;
  color: #333;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cancel:hover {
  background: #f0f0f0;
}

.btn-confirm {
  background: #ff6b35;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-confirm:hover {
  background: #e55a2b;
}

.modal-actions button {
  min-width: 120px;
}

/* Progress indicator styles */
.clearing-progress {
  text-align: center;
  padding: 20px 0;
}

.progress-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #444;
  border-top: 4px solid #ff6b35;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.progress-text {
  font-size: 16px;
  color: #ccc;
  margin: 0 0 24px 0;
}

.progress-steps {
  text-align: left;
  background: rgba(0, 0, 0, 0.3);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #444;
}

.step {
  font-size: 14px;
  color: #999;
  padding: 8px 0;
  position: relative;
  padding-left: 30px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.step.pending {
  opacity: 0.5;
}

.step.active {
  color: #ff6b35;
  opacity: 1;
}

.step.completed {
  color: #4caf50;
  opacity: 1;
}

.step .dot,
.step .spinner-dot,
.step .checkmark {
  position: absolute;
  left: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.step .dot {
  color: #666;
}

.step .spinner-dot {
  width: 12px;
  height: 12px;
  border: 2px solid #444;
  border-top: 2px solid #ff6b35;
  border-radius: 50%;
  animation: spin-small 1s linear infinite;
}

@keyframes spin-small {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.step .checkmark {
  color: #4caf50;
  font-weight: bold;
  animation: checkmark-appear 0.3s ease-in-out;
}

@keyframes checkmark-appear {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive design */
@media (max-width: 600px) {
  .modal-content {
    padding: 24px;
    margin: 16px;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions button {
    width: 100%;
  }

  .progress-spinner {
    width: 40px;
    height: 40px;
  }
}

/* components/css/CreditBalance.css - Professional design, smaller modal */

/* ==================== MODAL OVERLAY ==================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: #1e1e1e;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s;
  line-height: 1;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.modal-title {
  margin: 0 0 20px 0;
  font-size: 20px;
  color: white;
  font-weight: 600;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-cancel {
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-cancel:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Smaller modal size - More compact */
.modal-content.smaller {
  max-width: 360px;
  width: 90%;
  padding: 20px;
}

/* ==================== CREDIT BALANCE DISPLAY ==================== */
.credit-balance {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 16px;
}

.credit-balance.loading {
  cursor: default;
}

.credit-balance .balance-display {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  transition: all 0.2s ease;
  min-width: 70px;
  justify-content: center;
  cursor: pointer;
}

.credit-balance .balance-display:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.credit-balance .currency {
  font-size: 12px;
  color: #ccc;
  font-weight: 500;
}

.credit-balance .amount {
  font-size: 14px;
  color: white;
  font-weight: 600;
  font-family: 'Monaco', 'Menlo', monospace;
}

.credit-balance .warning-icon {
  font-size: 10px;
  margin-left: 4px;
  color: #ffc107;
}

/* Balance State Styles */
.credit-balance.low-balance .balance-display {
  background: rgba(255, 193, 7, 0.2);
  border-color: rgba(255, 193, 7, 0.4);
}

.credit-balance.low-balance .amount {
  color: #ffc107;
}

.credit-balance.critical-balance .balance-display {
  background: rgba(220, 53, 69, 0.2);
  border-color: rgba(220, 53, 69, 0.4);
  animation: credit-pulse-red 2s ease-in-out infinite;
}

.credit-balance.critical-balance .amount {
  color: #dc3545;
}

@keyframes credit-pulse-red {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(220, 53, 69, 0);
  }
}

.credit-balance .critical-message {
  font-size: 10px;
  color: #dc3545;
  text-align: center;
  margin-top: 2px;
  font-weight: 500;
}

/* Loading Spinner */
.credit-balance .credit-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #444;
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: credit-spin 1s linear infinite;
}

@keyframes credit-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ==================== MODAL BODY ==================== */
.modal-body {
  padding: 0;
}

/* Balance Section - Redesigned */
.balance-section {
  text-align: center;
  margin-bottom: 24px;
}

.current-balance {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.balance-label {
  display: block;
  font-size: 11px;
  color: #999;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 500;
}

.balance-amount {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 10px;
}

.currency-large {
  font-size: 18px;
  color: #999;
  font-weight: 500;
}

.amount-large {
  font-size: 28px;
  font-weight: 700;
  color: white;
  font-family: 'Monaco', 'Menlo', monospace;
}

.balance-status {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: 10px;
}

.balance-status.good {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.balance-status.low {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.balance-status.critical {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
  border: 1px solid rgba(244, 67, 54, 0.3);
  animation: credit-status-pulse 2s ease-in-out infinite;
}

@keyframes credit-status-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Refresh button - Now under status */
.refresh-balance-btn {
  background: transparent;
  color: #ff6b35;
  border: 1px solid rgba(255, 107, 53, 0.3);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.refresh-balance-btn:hover:not(:disabled) {
  background: rgba(255, 107, 53, 0.1);
  border-color: rgba(255, 107, 53, 0.5);
  color: #ff8555;
}

.refresh-balance-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  color: #666;
  border-color: rgba(255, 255, 255, 0.1);
}

/* ==================== PRICING SECTION ==================== */
.pricing-section {
  margin-bottom: 20px;
}

.section-title {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #ff6b35;
  font-weight: 600;
}

.pricing-grid.simplified {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pricing-row .service-name {
  font-size: 13px;
  color: #ccc;
  font-weight: 500;
}

.pricing-row .service-price {
  font-size: 12px;
  color: #4caf50;
  font-weight: 600;
  font-family: 'Monaco', 'Menlo', monospace;
}

/* ==================== HELP SECTION ==================== */
.help-section {
  margin-bottom: 16px;
}

.help-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: rgba(33, 150, 243, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(33, 150, 243, 0.15);
}

.help-icon {
  font-size: 18px;
  color: #2196f3;
  line-height: 1;
}

.help-content h4 {
  margin: 0 0 6px 0;
  font-size: 13px;
  color: #2196f3;
  font-weight: 600;
}

.help-content p {
  margin: 0;
  font-size: 12px;
  color: #ccc;
  line-height: 1.4;
}

/* ==================== LOADING & ERROR STATES ==================== */
.credit-balance.refreshing .balance-display {
  opacity: 0.7;
}

.refresh-spinner {
  width: 12px;
  height: 12px;
  border: 1px solid #666;
  border-top: 1px solid #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 4px;
}

.inline-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #333;
  border-top: 2px solid #ff6b35;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.error-icon {
  font-size: 10px;
  margin-left: 4px;
  cursor: pointer;
  opacity: 0.7;
  color: #dc3545;
}

.error-icon:hover {
  opacity: 1;
}

.error-message {
  font-size: 10px;
  color: #dc3545;
  text-align: center;
  margin-top: 2px;
}

.retry-button {
  background: none;
  border: none;
  color: #dc3545;
  text-decoration: underline;
  cursor: pointer;
  font-size: 10px;
  margin-left: 4px;
}

.retry-button:hover {
  color: #ff4d4d;
}

.loading-text {
  font-size: 10px;
  color: #ccc;
  margin-top: 2px;
  text-align: center;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
  .credit-balance .balance-display {
    padding: 4px 8px;
    min-width: 60px;
  }

  .credit-balance .amount {
    font-size: 12px;
  }

  .credit-balance .currency {
    font-size: 10px;
  }

  .modal-content.smaller {
    max-width: 340px;
    width: 92%;
    padding: 18px;
  }

  .modal-title {
    font-size: 18px;
  }

  .current-balance {
    padding: 16px;
  }

  .amount-large {
    font-size: 24px;
  }

  .help-card {
    padding: 12px;
  }
}

/* components/css/TopNav.css - Complete Professional Design */

/* ==================== GLOBAL BOX-SIZING FIX ==================== */
.topnav *,
.topnav *::before,
.topnav *::after {
  box-sizing: border-box;
}

/* ==================== TOPNAV CONTAINER ==================== */
.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 0 20px;
  background: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  box-sizing: border-box;
}

/* ==================== LEFT SECTION ==================== */
.topnav-left {
  display: flex;
  align-items: center;
}

.topnav-logo {
  height: 20px;
  width: auto;
  object-fit: contain;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.15s ease;
}

.topnav-logo:hover {
  opacity: 0.85;
}

/* ==================== RIGHT SECTION ==================== */
.topnav-right {
  display: flex;
  align-items: center;
  gap: 8px; /* CONSISTENT 8px gap between ALL items */
}

/* Remove any margins from children */
.topnav-right > * {
  margin: 0 !important;
}

/* ==================== CONSISTENT HEIGHT FOR ALL ITEMS ==================== */
.topnav-btn-icon,
.credits-display,
.topnav-user-btn {
  height: 36px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  border-radius: 8px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

/* ==================== NEW PROJECT BUTTON ==================== */
.topnav-btn-icon {
  padding: 0 14px;
  margin: 0;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  color: #ffffff;
  cursor: pointer;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.topnav-btn-icon:hover:not(:disabled) {
  background: #333333;
  border-color: #444444;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.topnav-btn-icon:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.topnav-btn-icon:disabled {
  background: #1a1a1a;
  border-color: #2a2a2a;
  color: #666666;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.topnav-btn-icon svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.topnav-btn-icon span {
  line-height: 1;
}

/* ==================== USER DROPDOWN ==================== */
.topnav-user-dropdown {
  position: relative;
  margin: 0;
}

.topnav-user-btn {
  padding: 0 8px 0 4px;
  margin: 0;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  gap: 6px;
  cursor: pointer;
}

.topnav-user-btn:hover {
  background: #252525;
  border-color: #333333;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.topnav-user-btn:active {
  transform: translateY(0);
}

.topnav-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f0702c 0%, #ea580c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
  flex-shrink: 0;
  line-height: 1;
}

.topnav-chevron {
  color: #999;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.topnav-chevron.open {
  transform: rotate(180deg);
}

/* ==================== DROPDOWN MENU ==================== */
.topnav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  padding: 6px;
  z-index: 10001;
  animation: dropdownSlide 0.2s ease;
}

@keyframes dropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.topnav-dropdown-header {
  padding: 10px 12px;
}

.topnav-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.topnav-user-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.topnav-user-email {
  font-size: 12px;
  color: #666;
  line-height: 1.3;
  word-break: break-word;
}

.topnav-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 0;
}

.topnav-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: none;
  border: none;
  border-radius: 6px;
  color: #999;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.topnav-dropdown-item:hover {
  background: #1a1a1a;
  color: #fff;
}

.topnav-dropdown-item svg {
  flex-shrink: 0;
}

/* Danger item (for logout) */
.topnav-dropdown-item.danger {
  color: #dc2626;
}

.topnav-dropdown-item.danger:hover {
  background: rgba(220, 38, 38, 0.1);
  color: #ef4444;
}

/* ==================== SPINNER (Loading state) ==================== */
.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==================== FOCUS STATES (Accessibility) ==================== */
.topnav-btn-icon:focus-visible,
.topnav-user-btn:focus-visible,
.credits-display:focus-visible,
.topnav-dropdown-item:focus-visible {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}
/* Beta Badge Styling */
.topnav-left {
  display: flex;
  align-items: center;
  gap: 12px; /* Space between logo and beta badge */
}

.topnav-left span {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Alternative darker style (if your background is light) */
.topnav-left span.beta-dark {
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Alternative colored style (like your example) */
.topnav-left span.beta-accent {
  background: rgba(100, 100, 100, 0.3);
  color: #a0a0a0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

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

/* Tablet and below */
@media (max-width: 768px) {
  .topnav {
    padding: 0 16px;
    height: 52px;
  }

  .topnav-right {
    gap: 6px; /* Slightly tighter on mobile */
  }

  .topnav-logo {
    height: 20px;
  }

  /* Adjust all button heights for mobile */
  .topnav-btn-icon,
  .credits-display,
  .topnav-user-btn {
    height: 34px;
  }

  .topnav-btn-icon {
    padding: 0 12px;
    font-size: 12px;
  }

  .topnav-btn-icon svg {
    width: 13px;
    height: 13px;
  }

  .credits-display {
    padding: 0 10px;
    gap: 6px;
    font-size: 12px;
  }

  .credits-amount {
    font-size: 13px;
  }

  .credits-label {
    font-size: 12px;
  }

  .topnav-user-btn {
    padding: 0 6px 0 3px;
  }

  .topnav-user-avatar {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }

  .topnav-dropdown-menu {
    width: 220px;
  }
}

/* Mobile - Small screens */
@media (max-width: 480px) {
  .topnav {
    padding: 0 12px;
    height: 50px;
  }

  .topnav-right {
    gap: 4px; /* Even tighter on very small screens */
  }

  .topnav-logo {
    height: 18px;
  }

  /* Make buttons even smaller */
  .topnav-btn-icon,
  .credits-display,
  .topnav-user-btn {
    height: 32px;
  }

  /* Hide "New Project" text, show only icon */
  .topnav-btn-icon span {
    display: none;
  }

  .topnav-btn-icon {
    width: 32px;
    padding: 0;
    justify-content: center;
  }

  /* Hide "Credits" label, show only amount */
  .credits-label {
    display: none;
  }

  .credits-display {
    padding: 0 8px;
    gap: 5px;
  }

  .credits-display::before {
    font-size: 14px;
  }

  .credits-amount {
    font-size: 12px;
  }

  .topnav-user-btn {
    padding: 0 5px 0 3px;
  }

  .topnav-user-avatar {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }

  .topnav-chevron {
    width: 10px;
    height: 10px;
  }

  /* Smaller dropdown on mobile */
  .topnav-dropdown-menu {
    width: 200px;
    right: -12px; /* Align better with screen edge */
  }

  .topnav-dropdown-item {
    padding: 9px 10px;
    font-size: 13px;
    gap: 8px;
  }

  .topnav-dropdown-item svg {
    width: 14px;
    height: 14px;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .topnav {
    padding: 0 10px;
  }

  .topnav-right {
    gap: 3px;
  }

  .topnav-btn-icon,
  .credits-display,
  .topnav-user-btn {
    height: 30px;
  }

  .topnav-btn-icon {
    width: 30px;
  }

  .topnav-btn-icon svg {
    width: 12px;
    height: 12px;
  }

  .credits-display {
    padding: 0 6px;
  }

  .credits-amount {
    font-size: 11px;
  }

  .topnav-user-avatar {
    width: 22px;
    height: 22px;
    font-size: 9px;
  }
}

/* ==================== PRINT STYLES ==================== */
@media print {
  .topnav {
    display: none;
  }
}

/* ==================== HIGH CONTRAST MODE (Accessibility) ==================== */
@media (prefers-contrast: high) {
  .topnav {
    border-bottom-color: #fff;
  }

  .topnav-btn-icon,
  .credits-display,
  .topnav-user-btn {
    border-color: #666;
  }

  .topnav-dropdown-menu {
    border-color: #666;
  }
}

/* ==================== REDUCED MOTION (Accessibility) ==================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==================== DARK MODE SUPPORT ==================== */
@media (prefers-color-scheme: dark) {
  /* Already dark by default, but you can add overrides here if needed */
}

.block-menu-new {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 8px;
  width: 180px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid #333;
}

.block-section {
  margin-bottom: 8px;
}

.block-icon-new svg path {
  fill: white;
}

.block-icon-new svg {
  width: 20px;
  height: 20px;
}

.block-section:last-child {
  margin-bottom: 0;
}

.block-section-title {
  color: #666;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 8px 12px 6px;
  padding: 0;
}

.block-item-new {
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  padding: 10px 12px;
  margin: 2px 0;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
}

.block-item-new:hover {
  background: #2a2a2a;
}

.block-icon-new {
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
}

.block-name {
  flex: 1 1;
  text-align: left;
}

.floating-toolbar {
  position: fixed;
  top: 70px;
  left: 20px;
  background: #1a1a1a;
  color: white;
  padding: 10px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1000;
}

.icon-button {
  background: white;
  color: black;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 300;
  transition: all 0.2s ease;
}

.icon-button:hover {
  background: #f0f0f0;
  transform: scale(1.05);
}

/* Block menu container - positioned to the right */
.block-menu-container {
  position: fixed;
  left: 80px; /* Position to the right of the toolbar */
  top: 70px; /* Same top position as toolbar */
  z-index: 1001;
}

.block-menu-container {
  pointer-events: auto; /* Ensure clicks are registered */
  z-index: 1000;
}

.block-menu-new {
  pointer-events: auto;
}

.toolbar-icons button {
  background: transparent;
  border: none;
  color: white;
  margin: 8px 0;
  font-size: 18px;
  cursor: pointer;
}

.profile img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-top: 10px;
}

/* Responsive design */
@media (max-width: 768px) {
  .floating-toolbar {
    top: 60px;
    left: 10px;
  }

  .block-menu-container {
    left: 70px;
    top: 60px;
  }
}

/* auth-loading.css */
.auth-loading-screen {
  background-color: black;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-logo {
  width: 150px;
  height: auto;
}

/* NodeBase.css - Common styles for all node types */
/* @import url('https://fonts.googleapis.com/css2?family=Vollkorn:wght@500&display=swap'); */

.updated-node {
  width: 380px;
  height: auto;
  background: #111;
  border: 1px solid #444;
  border-radius: 16px;
  padding: 16px;
  color: white;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: height 0.2s ease;
}

/* ADD THIS - Add spacing below intro section */
.node__intro-section,
.text-node__intro-section,
.image-node__intro-section,
.video-node__intro-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  padding: 10px 0;
  margin-bottom: 66px; /* Add space between intro and input box */
}

/* ADD THIS - Add top margin to input box when it follows intro */
.node__input-box,
.text-node__input-box,
.image-node__input-box,
.video-node__input-box {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  margin-top: auto; /* Push to bottom when intro section exists */
}

/* When content is generated/added - remove min-height constraint */
.updated-node.with-dropped-image {
  min-height: 150px;
}
/* When content is generated/added - remove min-height constraint */
.updated-node.with-image,
.updated-node.with-video,
.updated-node.with-output {
  height: auto !important;
}

/* Error state */
.updated-node.with-error {
  height: auto !important;
  min-height: 520px !important;
  max-height: none !important;
  transition: height 0.2s ease;
}

/* Common header styles */
.node__header,
.text-node__header,
.image-node__header,
.video-node__header {
  display: flex;
  flex-shrink: 0;
}

.node__title,
.text-node__title,
.image-node__title,
.video-node__title {
  font-weight: bold;
  font-size: 16px;
  padding-bottom: 12px;
  text-align: center; /* Added center alignment */
  width: 100%; /* Ensure it takes full width */
}

.node__favicon,
.text-node__favicon,
.image-node__favicon,
.video-node__favicon {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.node__typing-text,
.text-node__typing-text,
.image-node__typing-text,
.video-node__typing-text {
  /* font-family: 'Vollkorn', serif; */
  /* font-weight: 500; */
  /* font-size: 20px; */
  margin: 0;
  line-height: 1.5;
  color: #fff;
  text-align: center;
  height: 60px; /* Fixed height instead of min-height */
  display: flex;
  align-items: center;
  justify-content: center;
  contain: layout; /* Isolate layout changes */
  will-change: contents; /* Hint to browser */
}

.node__input-header,
.text-node__input-header,
.image-node__input-header,
.video-node__input-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.node__input-header textarea,
.text-node__input-header textarea,
.image-node__input-header textarea,
.video-node__input-header textarea {
  width: 100%;
  background: transparent;
  border: none;
  color: white;
  font-size: 13px;
  resize: none;
  overflow-y: auto;
  min-height: 60px;
  max-height: 150px;
  outline: none;
  line-height: 1.4;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: #444 transparent;
}

.node__input-header textarea::placeholder,
.text-node__input-header textarea::placeholder,
.image-node__input-header textarea::placeholder,
.video-node__input-header textarea::placeholder {
  color: #777;
}

.node__input-header textarea:focus,
.text-node__input-header textarea:focus,
.image-node__input-header textarea:focus,
.video-node__input-header textarea:focus {
  outline: none;
}

.node__input-header textarea::-webkit-scrollbar,
.text-node__input-header textarea::-webkit-scrollbar,
.image-node__input-header textarea::-webkit-scrollbar,
.video-node__input-header textarea::-webkit-scrollbar {
  width: 6px;
}

.node__input-header textarea::-webkit-scrollbar-track,
.text-node__input-header textarea::-webkit-scrollbar-track,
.image-node__input-header textarea::-webkit-scrollbar-track,
.video-node__input-header textarea::-webkit-scrollbar-track {
  background: transparent;
}

.node__input-header textarea::-webkit-scrollbar-thumb,
.text-node__input-header textarea::-webkit-scrollbar-thumb,
.image-node__input-header textarea::-webkit-scrollbar-thumb,
.video-node__input-header textarea::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 3px;
}

.node__input-header textarea::-webkit-scrollbar-thumb:hover,
.text-node__input-header textarea::-webkit-scrollbar-thumb:hover,
.image-node__input-header textarea::-webkit-scrollbar-thumb:hover,
.video-node__input-header textarea::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Common toolbar styles */
.node__toolbar,
.text-node__toolbar,
.image-node__toolbar,
.video-node__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.node__toolbar select,
.text-node__toolbar select,
.image-node__toolbar select,
.video-node__toolbar select,
.node__toolbar span,
.text-node__toolbar span,
.image-node__toolbar span,
.video-node__toolbar span {
  background: #222;
  border: none;
  border-radius: 6px;
  padding: 6px 8px;
  color: white;
  font-size: 12px;
  cursor: pointer;
}

.node__toolbar select:focus,
.text-node__toolbar select:focus,
.image-node__toolbar select:focus,
.video-node__toolbar select:focus {
  outline: none;
  background: #2a2a2a;
}

.node__toolbar select option,
.text-node__toolbar select option,
.image-node__toolbar select option,
.video-node__toolbar select option {
  background: #222;
  color: white;
}

.node__generate,
.text-node__generate,
.image-node__generate,
.video-node__generate {
  background: #f97316;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  color: white;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.node__generate:hover:not(:disabled),
.text-node__generate:hover:not(:disabled),
.image-node__generate:hover:not(:disabled),
.video-node__generate:hover:not(:disabled) {
  background: #ea580c;
}

.node__generate:disabled,
.text-node__generate:disabled,
.image-node__generate:disabled,
.video-node__generate:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Common loader styles */
.node__loader,
.text-node__loader,
.image-node__loader,
.video-node__loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  min-height: 300px;
  padding-top: 40px;
}

.node__progress,
.text-node__progress,
.image-node__progress,
.video-node__progress {
  width: 80%;
  height: 8px;
  background: #333;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}

.node__progress-bar,
.text-node__progress-bar,
.image-node__progress-bar,
.video-node__progress-bar {
  height: 100%;
  background: #f97316;
  transition: width 0.2s ease;
}

.node__loader-text,
.text-node__loader-text,
.image-node__loader-text,
.video-node__loader-text {
  font-size: 12px;
  color: #aaa;
}

/* Common error styles */
.node__error,
.text-node__error,
.image-node__error,
.video-node__error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  padding: 30px 20px;
  text-align: center;
  flex-shrink: 0;
}

.node__error .icon-error,
.text-node__error .icon-error,
.image-node__error .icon-error,
.video-node__error .icon-error {
  width: 80px;
  height: 80px;
  color: #dc2626;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.node__error-message,
.text-node__error-message,
.image-node__error-message,
.video-node__error-message {
  color: #ffffff;
  max-width: 300px;
}

.node__error-message h1,
.text-node__error-message h1,
.image-node__error-message h1,
.video-node__error-message h1 {
  font-size: 32px;
  font-weight: bold;
  margin: 0 0 10px 0;
  color: #ffffff;
}

.node__error-message br,
.text-node__error-message br,
.image-node__error-message br,
.video-node__error-message br {
  line-height: 1.5;
}

/* Common bottom bar styles */
.node__bottom,
.text-node__bottom,
.image-node__bottom,
.video-node__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.node__prompt-display,
.text-node__prompt-display,
.image-node__prompt-display,
.video-node__prompt-display {
  font-size: 12px;
  color: #ccc;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 1 1;
  padding-right: 10px;
}

.node__generate-button,
.text-node__generate-button,
.image-node__generate-button,
.video-node__generate-button {
  background: #f97316;
  border: none;
  border-radius: 6px;
  color: white;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 500;
}

.node__generate-button:hover:not(:disabled),
.text-node__generate-button:hover:not(:disabled),
.image-node__generate-button:hover:not(:disabled),
.video-node__generate-button:hover:not(:disabled) {
  background: #ea580c;
}

.node__generate-button:disabled,
.text-node__generate-button:disabled,
.image-node__generate-button:disabled,
.video-node__generate-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Common expand/shrink toggle */
.node__expand-toggle,
.text-node__expand-toggle,
.image-node__expand-toggle,
.video-node__expand-toggle {
  background: transparent;
  border: none;
  color: #aaa;
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.node__expand-toggle:hover,
.text-node__expand-toggle:hover,
.image-node__expand-toggle:hover,
.video-node__expand-toggle:hover {
  color: white;
}

.node__shrink-bar,
.text-node__shrink-bar,
.image-node__shrink-bar,
.video-node__shrink-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

/* Common dialog styles */
.node__dialog,
.text-node__dialog,
.image-node__dialog,
.video-node__dialog {
  border: none;
  border-radius: 8px;
  padding: 0;
  background: transparent;
  width: 90vw;
  max-width: 800px;
  height: auto;
  margin: auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

.node__dialog::backdrop,
.text-node__dialog::backdrop,
.image-node__dialog::backdrop,
.video-node__dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

.dialog-content {
  position: relative;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.dialog-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 18px;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  z-index: 10;
}

/* Common handle styles */
.image-node .react-flow__handle,
.text-node .react-flow__handle,
.video-node .react-flow__handle {
  width: 14px !important;
  height: 14px !important;
  background-color: #afcd3f;
  border: 2px solid #fff !important;
}

/* Common animations */
@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

@keyframes loading-bar {
  0% {
    width: 0%;
  }
  50% {
    width: 50%;
  }
  100% {
    width: 35%;
  }
}

@keyframes bounce {
  0%,
  80%,
  100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-4px);
  }
}

/* components/css/NodeTypography.css - Unified typography for all nodes */

/* System font stack for consistency */
:root {
  --font-stack: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
    'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
}

/* Node titles */
.text-node__title,
.image-node__title,
.video-node__title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
    'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  font-family: var(--font-stack);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* Subtitles */
.text-node__subtitle,
.image-node__subtitle,
.video-node__subtitle {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
    'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  font-family: var(--font-stack);
  font-size: 12px;
  font-weight: 400;
  color: #aaa;
  line-height: 1.4;
}

/* Action list items */
.text-node__actions li,
.image-node__actions li,
.video-node__actions li {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
    'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  font-family: var(--font-stack);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

/* Textarea inputs */
.text-node__input-header textarea,
.image-node__input-header textarea,
.video-node__input-header textarea {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
    'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  font-family: var(--font-stack);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: #ffffff;
}

/* Textarea placeholders */
.text-node__input-header textarea::placeholder,
.image-node__input-header textarea::placeholder,
.video-node__input-header textarea::placeholder {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
    'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  font-family: var(--font-stack);
  font-size: 13px;
  font-weight: 400;
  color: #777;
}

/* Prompt display text */
.text-node__prompt-display,
.image-node__prompt-display,
.video-node__prompt-display {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
    'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  font-family: var(--font-stack);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: #ccc;
}

/* Output text */
.text-node__output {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
    'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  font-family: var(--font-stack);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  color: #eee;
}

/* Generate buttons */
.text-node__generate,
.image-node__generate,
.video-node__generate,
.text-node__generate-button,
.image-node__generate-button,
.video-node__generate-button {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
    'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  font-family: var(--font-stack);
  font-size: 12px;
  font-weight: 500;
}

/* Loader text */
.text-node__loader-text,
.image-node__loader-text,
.video-node__loader-text {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
    'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  font-family: var(--font-stack);
  font-size: 12px;
  font-weight: 400;
  color: #aaa;
}

/* Error messages */
.text-node__error-message,
.image-node__error-message,
.video-node__error-message {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
    'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  font-family: var(--font-stack);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

.text-node__error-message h1,
.image-node__error-message h1,
.video-node__error-message h1 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
    'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  font-family: var(--font-stack);
  font-size: 32px;
  font-weight: 700;
}

/* Select dropdowns */
.text-node__toolbar select,
.image-node__toolbar select,
.video-node__toolbar select {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
    'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  font-family: var(--font-stack);
  font-size: 12px;
  font-weight: 400;
}

/* Source labels */
.source-label {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
    'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  font-family: var(--font-stack);
  font-size: 8px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Warning messages */
.image-node__warning {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
    'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  font-family: var(--font-stack);
  font-size: 12px;
  font-weight: 400;
}

/* Copied label */
.copied-label {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
    'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  font-family: var(--font-stack);
  font-size: 11px;
  font-weight: 600;
}

/* ImageNode-specific styles only */

/* Ensure input box takes proper space in error state */
.updated-node.with-error .image-node__input-box {
  flex-shrink: 0;
  margin-top: 12px;
}

/* Ensure error section has proper space */
.updated-node.with-error .image-node__error {
  flex-grow: 1;
  min-height: 200px;
  margin-bottom: 16px;
}

/* Reduce padding between image and input box when expanded */
.updated-node.with-image .image-node__input-box {
  margin-top: 10px;
}

/* Image Viewer */
.image-node__image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  background: transparent;
  overflow: hidden;
  border-radius: 12px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-node__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-node__image-wrapper .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: white;
  font-size: 20px;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.image-node__image-wrapper .nav.left {
  left: 8px;
}

.image-node__image-wrapper .nav.right {
  right: 8px;
}

.image-node__image-wrapper .top-right,
.image-node__image-wrapper .bottom-left {
  position: absolute;
  z-index: 2;
  background: transparent;
  color: white;
  padding: 6px;
  border: none;
  cursor: pointer;
}

.image-node__image-wrapper .top-right {
  top: 8px;
  right: 8px;
}

.image-node__image-wrapper .bottom-left {
  bottom: 8px;
  left: 8px;
}

.image-node__image-count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 12px;
  color: white;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 6px;
  padding: 4px 8px;
}

/* Upload functionality */
.image-node__upload {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 10px;
  color: #ccc;
}

.image-node__upload-button {
  background: transparent;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  color: white;
  font-size: 14px;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
}

/* Preview Gallery */
.image-node__preview-gallery {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.image-node__preview-item {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
}

.image-node__preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.image-node__preview-item button {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  font-size: 12px;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.image-node__preview-item .source-label {
  position: absolute;
  bottom: 2px;
  left: 2px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  font-size: 8px;
  padding: 1px 4px;
  border-radius: 3px;
}

.image-node__warning {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 8px;
  border-radius: 6px;
  font-size: 12px;
  text-align: center;
  margin-bottom: 10px;
}

.image-node__input {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.image-node__input input {
  flex: 1 1;
  background: transparent;
  border: none;
  border-bottom: 1px solid #555;
  color: white;
  padding: 2px;
  font-size: 11px;
}

.image-node__input input:focus {
  outline: none;
  border-color: white;
}

.image-node__input button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 14px;
  padding-bottom: 4px;
}

.image-node__loading {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: 10px;
}

.image-node__loading .dot {
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.image-node__loading .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.image-node__loading .dot:nth-child(3) {
  animation-delay: 0.4s;
}

.image-node.drag-over {
  border: 2px dashed #3366cc;
  background: #f0f8ff;
}

.image-node__image-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 8px;
  z-index: 10;
}

.preview-image-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.preview-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s;
}

.preview-loading-overlay.show {
  opacity: 1;
}

.preview-loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #333;
  border-top: 2px solid #ff6b35;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-animation {
  animation: loading-pulse 1.5s ease-in-out infinite;
  background: linear-gradient(90deg, #ff6b35 0%, #f7931e 50%, #ff6b35 100%);
}

.upload-indicator {
  position: absolute;
  top: 0; /* Changed from 50% */
  left: 0; /* Changed from 50% */
  right: 0;
  bottom: 0;
  transform: none; /* Remove translate(-50%, -50%) */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* This centers content */
  gap: 4px;
  background: rgba(0, 0, 0, 0.8);
  padding: 8px;
  border-radius: 6px;
  z-index: 10; /* Ensure it's on top */
}

.upload-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #333;
  border-top: 2px solid #f97316;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.upload-indicator span {
  font-size: 10px;
  color: white;
}

.dialog-content img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* NodeDeleteButton.css - Shared delete button styles for all nodes */

/* Ensure all nodes can show the delete button outside their boundaries */
.text-node,
.updated-node,
.image-node,
.video-node,
.image-to-image-node,
.dropped-image-node,
.output-node {
  position: relative;
  overflow: visible !important;
}

/* Delete button styling */
.node-delete-button {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  transition: all 0.2s ease;
  padding: 0;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.node-delete-button:hover {
  background: rgba(239, 68, 68, 0.95);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.node-delete-button:active {
  transform: scale(0.95);
}

.node-delete-button svg {
  pointer-events: none;
}

/* VideoNode-specific styles only */

.video-node__video {
  max-width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.video-node__video-preview {
  width: 100%;
  border-radius: 12px;
  background: black;
  display: block;
}

.video-node__video-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
}

.video-node__expand {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

.video-node__download {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: transparent;
  border: none;
  color: white;
  font-size: 18px;
  text-decoration: none;
}

.video-node__video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-node__media {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.video-node__download,
.video-node__fullscreen {
  position: absolute;
  background: transparent;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

.video-node__download {
  bottom: 8px;
  left: 8px;
}

.video-node__fullscreen {
  top: 8px;
  right: 8px;
}

/* Preview Gallery */
.video-node__preview-gallery {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.video-node__preview-item {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
}

.video-node__preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.video-node__preview-item .video-node__unlink-button {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  font-size: 12px;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.video-node__preview-item .video-node__unlink-button:hover {
  background: rgba(0, 0, 0, 0.8);
}

.video-node__preview-item .source-label {
  position: absolute;
  bottom: 2px;
  left: 2px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  font-size: 8px;
  padding: 1px 4px;
  border-radius: 3px;
}

/* Video Viewer */
.video-node__video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  background: transparent;
  overflow: hidden;
  border-radius: 12px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-node__video-wrapper .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: white;
  font-size: 20px;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.video-node__video-wrapper .nav.left {
  left: 8px;
}

.video-node__video-wrapper .nav.right {
  right: 8px;
}

.video-node__video-wrapper .top-right,
.video-node__video-wrapper .bottom-left {
  position: absolute;
  z-index: 2;
  background: transparent;
  color: white;
  padding: 6px;
  border: none;
  cursor: pointer;
}

.video-node__video-wrapper .top-right {
  top: 8px;
  right: 8px;
}

.video-node__video-wrapper .bottom-left {
  bottom: 8px;
  left: 8px;
}

.video-node__upload-button {
  background: transparent;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  color: white;
  font-size: 14px;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
}

.video-node__model-select {
  background: #222;
  border: none;
  border-radius: 6px;
  padding: 6px 8px;
  color: white;
  font-size: 12px;
  cursor: pointer;
}

.video-node__model-select:focus {
  outline: none;
  background: #2a2a2a;
}

.video-node__model-select option {
  background: #222;
  color: white;
}

.dialog-content video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.video-node.drag-over {
  border: 2px dashed #3366cc;
  background: #f0f8ff;
}

/* TextNode-specific styles only */

/* Output Wrapper */
.text-node__output-wrapper {
  position: relative;
  background: #1a1a1a;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.top-right {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  color: white;
  padding: 6px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Output Text Area - Enhanced Scrollbar */
.text-node__output {
  white-space: pre-wrap;
  font-size: 13px;
  color: #eee;
  line-height: 1.5;
  max-height: 180px;
  overflow-y: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-right: 8px; /* Space for scrollbar */

  /* Custom scrollbar for Webkit browsers (Chrome, Safari, Edge) */
  scrollbar-width: thin;
  scrollbar-color: #666 #1a1a1a;
}

/* Webkit Scrollbar Styling */
.text-node__output::-webkit-scrollbar {
  width: 8px;
}

.text-node__output::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 4px;
}

.text-node__output::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 4px;
  border: 2px solid #1a1a1a;
}

.text-node__output::-webkit-scrollbar-thumb:hover {
  background: #666;
}

.text-node__output::-webkit-scrollbar-thumb:active {
  background: #888;
}

/* Show scrollbar on hover/focus */
.text-node__output-wrapper:hover .text-node__output::-webkit-scrollbar-thumb,
.text-node__output:focus::-webkit-scrollbar-thumb {
  background: #666;
}

/* Visual indicator for scrollable content */
.text-node__output-wrapper::after {
  content: '';
  position: absolute;
  bottom: 12px;
  right: 12px;
  left: 12px;
  height: 20px;
  background: linear-gradient(to top, #1a1a1a 0%, transparent 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Show gradient indicator when content is scrollable */
.text-node__output-wrapper.has-scroll::after {
  opacity: 1;
}

.copied-label {
  position: absolute;
  top: 8px;
  right: 1px;
  background: white;
  color: #111;
  padding: 2px 6px;
  font-size: 11px;
  border-radius: 4px;
  font-weight: bold;
  animation: fadeOut 1.2s ease forwards;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-4px);
  }
}

/* NodeBase.css - Common styles for all node types */
/* @import url('https://fonts.googleapis.com/css2?family=Vollkorn:wght@500&display=swap'); */

.updated-node {
  width: 380px;
  height: auto;
  background: #111;
  border: 1px solid #444;
  border-radius: 16px;
  padding: 16px;
  color: white;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: height 0.2s ease;
}

/* ADD THIS - Add spacing below intro section */
.node__intro-section,
.text-node__intro-section,
.image-node__intro-section,
.video-node__intro-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  padding: 10px 0;
  margin-bottom: 66px; /* Add space between intro and input box */
}

/* ADD THIS - Add top margin to input box when it follows intro */
.node__input-box,
.text-node__input-box,
.image-node__input-box,
.video-node__input-box {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  margin-top: auto; /* Push to bottom when intro section exists */
}

/* When content is generated/added - remove min-height constraint */
.updated-node.with-dropped-image {
  min-height: 150px;
}
/* When content is generated/added - remove min-height constraint */
.updated-node.with-image,
.updated-node.with-video,
.updated-node.with-output {
  height: auto !important;
}

/* Error state */
.updated-node.with-error {
  height: auto !important;
  min-height: 520px !important;
  max-height: none !important;
  transition: height 0.2s ease;
}

/* Common header styles */
.node__header,
.text-node__header,
.image-node__header,
.video-node__header {
  display: flex;
  flex-shrink: 0;
}

.node__title,
.text-node__title,
.image-node__title,
.video-node__title {
  font-weight: bold;
  font-size: 16px;
  padding-bottom: 12px;
  text-align: center; /* Added center alignment */
  width: 100%; /* Ensure it takes full width */
}

.node__favicon,
.text-node__favicon,
.image-node__favicon,
.video-node__favicon {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.node__typing-text,
.text-node__typing-text,
.image-node__typing-text,
.video-node__typing-text {
  /* font-family: 'Vollkorn', serif; */
  /* font-weight: 500; */
  /* font-size: 20px; */
  margin: 0;
  line-height: 1.5;
  color: #fff;
  text-align: center;
  height: 60px; /* Fixed height instead of min-height */
  display: flex;
  align-items: center;
  justify-content: center;
  contain: layout; /* Isolate layout changes */
  will-change: contents; /* Hint to browser */
}

.node__input-header,
.text-node__input-header,
.image-node__input-header,
.video-node__input-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.node__input-header textarea,
.text-node__input-header textarea,
.image-node__input-header textarea,
.video-node__input-header textarea {
  width: 100%;
  background: transparent;
  border: none;
  color: white;
  font-size: 13px;
  resize: none;
  overflow-y: auto;
  min-height: 60px;
  max-height: 150px;
  outline: none;
  line-height: 1.4;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: #444 transparent;
}

.node__input-header textarea::placeholder,
.text-node__input-header textarea::placeholder,
.image-node__input-header textarea::placeholder,
.video-node__input-header textarea::placeholder {
  color: #777;
}

.node__input-header textarea:focus,
.text-node__input-header textarea:focus,
.image-node__input-header textarea:focus,
.video-node__input-header textarea:focus {
  outline: none;
}

.node__input-header textarea::-webkit-scrollbar,
.text-node__input-header textarea::-webkit-scrollbar,
.image-node__input-header textarea::-webkit-scrollbar,
.video-node__input-header textarea::-webkit-scrollbar {
  width: 6px;
}

.node__input-header textarea::-webkit-scrollbar-track,
.text-node__input-header textarea::-webkit-scrollbar-track,
.image-node__input-header textarea::-webkit-scrollbar-track,
.video-node__input-header textarea::-webkit-scrollbar-track {
  background: transparent;
}

.node__input-header textarea::-webkit-scrollbar-thumb,
.text-node__input-header textarea::-webkit-scrollbar-thumb,
.image-node__input-header textarea::-webkit-scrollbar-thumb,
.video-node__input-header textarea::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 3px;
}

.node__input-header textarea::-webkit-scrollbar-thumb:hover,
.text-node__input-header textarea::-webkit-scrollbar-thumb:hover,
.image-node__input-header textarea::-webkit-scrollbar-thumb:hover,
.video-node__input-header textarea::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Common toolbar styles */
.node__toolbar,
.text-node__toolbar,
.image-node__toolbar,
.video-node__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.node__toolbar select,
.text-node__toolbar select,
.image-node__toolbar select,
.video-node__toolbar select,
.node__toolbar span,
.text-node__toolbar span,
.image-node__toolbar span,
.video-node__toolbar span {
  background: #222;
  border: none;
  border-radius: 6px;
  padding: 6px 8px;
  color: white;
  font-size: 12px;
  cursor: pointer;
}

.node__toolbar select:focus,
.text-node__toolbar select:focus,
.image-node__toolbar select:focus,
.video-node__toolbar select:focus {
  outline: none;
  background: #2a2a2a;
}

.node__toolbar select option,
.text-node__toolbar select option,
.image-node__toolbar select option,
.video-node__toolbar select option {
  background: #222;
  color: white;
}

.node__generate,
.text-node__generate,
.image-node__generate,
.video-node__generate {
  background: #f97316;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  color: white;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.node__generate:hover:not(:disabled),
.text-node__generate:hover:not(:disabled),
.image-node__generate:hover:not(:disabled),
.video-node__generate:hover:not(:disabled) {
  background: #ea580c;
}

.node__generate:disabled,
.text-node__generate:disabled,
.image-node__generate:disabled,
.video-node__generate:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Common loader styles */
.node__loader,
.text-node__loader,
.image-node__loader,
.video-node__loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  min-height: 300px;
  padding-top: 40px;
}

.node__progress,
.text-node__progress,
.image-node__progress,
.video-node__progress {
  width: 80%;
  height: 8px;
  background: #333;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}

.node__progress-bar,
.text-node__progress-bar,
.image-node__progress-bar,
.video-node__progress-bar {
  height: 100%;
  background: #f97316;
  transition: width 0.2s ease;
}

.node__loader-text,
.text-node__loader-text,
.image-node__loader-text,
.video-node__loader-text {
  font-size: 12px;
  color: #aaa;
}

/* Common error styles */
.node__error,
.text-node__error,
.image-node__error,
.video-node__error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  padding: 30px 20px;
  text-align: center;
  flex-shrink: 0;
}

.node__error .icon-error,
.text-node__error .icon-error,
.image-node__error .icon-error,
.video-node__error .icon-error {
  width: 80px;
  height: 80px;
  color: #dc2626;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.node__error-message,
.text-node__error-message,
.image-node__error-message,
.video-node__error-message {
  color: #ffffff;
  max-width: 300px;
}

.node__error-message h1,
.text-node__error-message h1,
.image-node__error-message h1,
.video-node__error-message h1 {
  font-size: 32px;
  font-weight: bold;
  margin: 0 0 10px 0;
  color: #ffffff;
}

.node__error-message br,
.text-node__error-message br,
.image-node__error-message br,
.video-node__error-message br {
  line-height: 1.5;
}

/* Common bottom bar styles */
.node__bottom,
.text-node__bottom,
.image-node__bottom,
.video-node__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.node__prompt-display,
.text-node__prompt-display,
.image-node__prompt-display,
.video-node__prompt-display {
  font-size: 12px;
  color: #ccc;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 1 1;
  padding-right: 10px;
}

.node__generate-button,
.text-node__generate-button,
.image-node__generate-button,
.video-node__generate-button {
  background: #f97316;
  border: none;
  border-radius: 6px;
  color: white;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 500;
}

.node__generate-button:hover:not(:disabled),
.text-node__generate-button:hover:not(:disabled),
.image-node__generate-button:hover:not(:disabled),
.video-node__generate-button:hover:not(:disabled) {
  background: #ea580c;
}

.node__generate-button:disabled,
.text-node__generate-button:disabled,
.image-node__generate-button:disabled,
.video-node__generate-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Common expand/shrink toggle */
.node__expand-toggle,
.text-node__expand-toggle,
.image-node__expand-toggle,
.video-node__expand-toggle {
  background: transparent;
  border: none;
  color: #aaa;
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.node__expand-toggle:hover,
.text-node__expand-toggle:hover,
.image-node__expand-toggle:hover,
.video-node__expand-toggle:hover {
  color: white;
}

.node__shrink-bar,
.text-node__shrink-bar,
.image-node__shrink-bar,
.video-node__shrink-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

/* Common dialog styles */
.node__dialog,
.text-node__dialog,
.image-node__dialog,
.video-node__dialog {
  border: none;
  border-radius: 8px;
  padding: 0;
  background: transparent;
  width: 90vw;
  max-width: 800px;
  height: auto;
  margin: auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

.node__dialog::backdrop,
.text-node__dialog::backdrop,
.image-node__dialog::backdrop,
.video-node__dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

.dialog-content {
  position: relative;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.dialog-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 18px;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  z-index: 10;
}

/* Common handle styles */
.image-node .react-flow__handle,
.text-node .react-flow__handle,
.video-node .react-flow__handle {
  width: 14px !important;
  height: 14px !important;
  background-color: #afcd3f;
  border: 2px solid #fff !important;
}

/* Common animations */
@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

@keyframes loading-bar {
  0% {
    width: 0%;
  }
  50% {
    width: 50%;
  }
  100% {
    width: 35%;
  }
}

@keyframes bounce {
  0%,
  80%,
  100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-4px);
  }
}

/* src/components/css/SaveStatus.css */
.save-status {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: all 0.2s ease;
  max-width: 280px;
}

.save-status:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.save-status__content {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.save-status__icon {
  font-size: 12px;
  font-weight: normal;
}

.save-status__text {
  color: #374151;
  line-height: 1.2;
}

.save-status__button {
  /* background: #3b82f6; */
  color: white;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.save-status__button:hover:not(:disabled) {
  background: #166534;
  transform: translateY(-0.5px);
}

.save-status__button:active {
  transform: translateY(0);
}

.save-status__button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

/* Status-specific styles */
.save-status--saved {
  border-color: rgba(34, 197, 94, 0.2);
  background: rgba(34, 197, 94, 0.05);
}

.save-status--saved .save-status__icon {
  color: #22c55e;
}

.save-status--saved .save-status__text {
  color: #166534;
}

.save-status--saving {
  border-color: rgba(59, 130, 246, 0.2);
  background: rgba(59, 130, 246, 0.05);
}

.save-status--saving .save-status__icon {
  color: #fff;
  animation: pulse 1.5s ease-in-out infinite;
}

.save-status--saving .save-status__text {
  color: #fff;
}

.save-status--unsaved {
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.08);
}

.save-status--unsaved .save-status__icon {
  color: #f59e0b;
  animation: blink 2s ease-in-out infinite;
}

.save-status--unsaved .save-status__text {
  color: #92400e;
}

.save-status--error {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
}

.save-status--error .save-status__icon {
  color: #ef4444;
}

.save-status--error .save-status__text {
  color: #991b1b;
}

.save-status--error .save-status__button {
  background: #ef4444;
}

.save-status--error .save-status__button:hover:not(:disabled) {
  background: #dc2626;
}

/* Animations */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0.3;
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .save-status {
    bottom: 16px;
    right: 16px;
    font-size: 12px;
    padding: 6px 10px;
    max-width: 240px;
  }

  .save-status__button {
    padding: 3px 8px;
    font-size: 11px;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .save-status {
    background: rgba(17, 24, 39, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .save-status__text {
    color: #d1d5db;
  }

  .save-status--saved {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.1);
  }

  .save-status--saved .save-status__text {
    color: #86efac;
  }

  .save-status--saving {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.1);
  }

  .save-status--saving .save-status__text {
    color: #93c5fd;
  }

  .save-status--unsaved {
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(251, 191, 36, 0.12);
  }

  .save-status--unsaved .save-status__text {
    color: #fbbf24;
  }

  .save-status--error {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.12);
  }

  .save-status--error .save-status__text {
    color: #f87171;
  }
}

.connectivity-status {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideDown 0.3s ease-out;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.connectivity-status.offline {
  background: rgba(220, 38, 38, 0.95);
  color: white;
}

.connectivity-status.slow {
  background: rgba(245, 158, 11, 0.95);
  color: white;
}

.connectivity-status.online {
  background: rgba(34, 197, 94, 0.95);
  color: white;
}

.connectivity-status__content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.connectivity-status__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.connectivity-status__message {
  font-size: 14px;
  font-weight: 500;
}

/* components/css/SceneViewer.css */

.scene-viewer-wrapper {
    padding: 16px;
    background-color: #fafafa;
    border-top: 1px solid #ddd;
    margin-top: 20px;
  }
  
  .scene-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
  }
  
  .scene-viewer-header h4 {
    margin: 0;
    font-size: 16px;
  }
  
  .scene-viewer-controls button {
    margin-left: 8px;
    border: none;
    background: #e6e6e6;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
  }
  
  .scene-viewer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .scene-tile {
    background: white;
    border: 2px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    width: 180px;
    box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .scene-tile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    margin-bottom: 8px;
  }
  
  .scene-tile p {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    margin: 0;
    white-space: pre-wrap;
  }
  
  .scene-tile-img {
    max-width: 100%;
    border-radius: 6px;
    margin-top: 8px;
  }
  
  .scene-empty {
    padding: 30px;
    text-align: center;
    color: #666;
    font-size: 14px;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 20px;
    border: 1px dashed #ccc;
  }
  
  .scene-viewer-wrapper {
    transition: opacity 0.3s ease;
    opacity: 1;
  }
  
  .scene-viewer-wrapper.hidden {
    opacity: 0;
    pointer-events: none;
  }
  
  .flow-wrapper {
    border: none;
    width: 100vw;
    height: 100vh;
    background-color: #111; /* pure black or metallic dark */
  }

  .main-flow{
    background-color: #111
  }
/* src/components/css/FeedbackButton.css */
.feedback-button {
  position: fixed;
  bottom: 20px;
  left: 80px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #777;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: all 0.2s ease;
  max-width: 280px;
  transition: all 0.2s ease;
}

.feedback-button:hover {
  background: #ff6b35;
  color: #fff;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

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

.feedback-button__text {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .feedback-button {
    bottom: 16px;
    left: 36px;
    padding: 8px 16px;
    font-size: 13px;
  }
}

/* components/css/FeedbackModal.css */

/* Modal Overlay */
.feedback-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  padding: 12px;
}

/* Modal Container - Extra Compact */
.feedback-modal {
  background: #1e1e1e;
  border-radius: 10px;
  max-width: 450px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid #444;
}

/* Modal Header - Extra Compact */
.feedback-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #444;
}

.feedback-modal__header h2 {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.feedback-modal__close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
}

.feedback-modal__close:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Modal Description - Extra Compact */
.feedback-modal__description {
  padding: 10px 16px;
  color: #ccc;
  font-size: 12px;
  line-height: 1.4;
  border-bottom: 1px solid #444;
}

/* Form - Extra Compact */
.feedback-modal__form {
  padding: 16px;
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 12px;
  color: #ddd;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #555;
  border-radius: 5px;
  font-size: 12px;
  font-family: inherit;
  background: #1a1a1a;
  color: #fff;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #888;
}

.form-group select {
  cursor: pointer;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.4;
}

/* Custom File Button - Extra Compact */
.custom-file-button {
  width: 100%;
  padding: 8px 10px;
  background: #1a1a1a;
  border: 2px dashed #555;
  border-radius: 5px;
  color: #ccc;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.custom-file-button:hover:not(:disabled) {
  border-color: #ff6b35;
  color: #ff6b35;
  background: rgba(255, 107, 53, 0.05);
}

.custom-file-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Image Preview - Extra Compact */
.image-preview-container {
  margin-top: 8px;
}

.image-preview {
  position: relative;
  border: 2px solid #444;
  border-radius: 5px;
  padding: 8px;
  background: #1a1a1a;
}

.image-preview img {
  max-width: 100%;
  max-height: 120px;
  border-radius: 4px;
  display: block;
  margin-bottom: 4px;
}

.image-name {
  display: block;
  font-size: 11px;
  color: #999;
  word-break: break-all;
}

.remove-image {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #f44336;
  color: white;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.remove-image:hover:not(:disabled) {
  background: #d32f2f;
}

.remove-image:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Status Messages - Extra Compact */
.feedback-status {
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 12px;
  text-align: center;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
}

.feedback-status--info {
  background: rgba(255, 107, 53, 0.1);
  color: #ff6b35;
  border: 1px solid rgba(255, 107, 53, 0.3);
}

.feedback-status--success {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.feedback-status--error {
  background: rgba(244, 67, 54, 0.1);
  color: #f44336;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

/* Loading Spinner - Extra Compact */
.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 107, 53, 0.2);
  border-top-color: #ff6b35;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.feedback-status--info span {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* Modal Actions - Extra Compact */
.feedback-modal__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding-top: 12px;
  border-top: 1px solid #444;
  margin-top: 12px;
}

.btn {
  padding: 8px 16px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn--cancel {
  background: white;
  color: #333;
}

.btn--cancel:hover:not(:disabled) {
  background: #f0f0f0;
}

.btn--submit {
  background: #ff6b35;
  color: white;
}

.btn--submit:hover:not(:disabled) {
  background: #e55a2b;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Scrollbar */
.feedback-modal::-webkit-scrollbar {
  width: 5px;
}

.feedback-modal::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.feedback-modal::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 3px;
}

.feedback-modal::-webkit-scrollbar-thumb:hover {
  background: #666;
}

/* Responsive */
@media (max-width: 768px) {
  .feedback-modal {
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  .feedback-modal {
    max-width: 95%;
  }

  .feedback-modal__actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* Scrollbar - Hidden but still scrollable */
.feedback-modal {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.feedback-modal::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* components/css/TutorialModal.css */

.tutorial-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.tutorial-modal {
  background: linear-gradient(135deg, #2a2a2e 0%, #1a1a1e 100%);
  border-radius: 20px;
  padding: 40px;
  max-width: 520px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.tutorial-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: rgba(255, 255, 255, 0.6);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tutorial-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  transform: rotate(90deg);
}

.tutorial-icon {
  width: 64px;
  height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
}

.tutorial-icon svg {
  filter: drop-shadow(0 4px 12px rgba(255, 107, 53, 0.3));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.tutorial-title {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin: 0 0 12px 0;
  letter-spacing: -0.5px;
}

.tutorial-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin: 0 0 32px 0;
  line-height: 1.6;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.tutorial-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
}

.loading-spinner {
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a1e 0%, #0a0a0e 100%);
  position: relative;
}

.video-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(255, 107, 53, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(156, 108, 255, 0.1) 0%,
      transparent 50%
    );
}

.play-button {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.play-button:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.play-button svg {
  margin-left: 3px;
}

.tutorial-video-player,
.tutorial-video-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

.tutorial-cta {
  width: 100%;
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}

.tutorial-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 107, 53, 0.4);
  background: linear-gradient(135deg, #ff7745 0%, #ff9c52 100%);
}

.tutorial-cta:active {
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .tutorial-modal {
    padding: 32px 24px;
    max-width: 95%;
  }

  .tutorial-title {
    font-size: 24px;
  }

  .tutorial-subtitle {
    font-size: 13px;
  }

  .play-button {
    width: 56px;
    height: 56px;
  }
}

.video-node__favicon {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* components/css/WhitelistManager.css - Fixed with scoped classes */
.whitelist-manager {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.whitelist-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f0f0f0;
}

.whitelist-header h2 {
  margin: 0 0 8px 0;
  color: #333;
  font-size: 22px;
  font-weight: 600;
}

.whitelist-description {
  margin: 0;
  color: #666;
  font-size: 14px;
}

/* Messages */
.message-banner {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-banner.success {
  background: #e8f5e8;
  color: #2e7d32;
  border: 1px solid #4caf50;
}

.message-banner.error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #f44336;
}

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

.stat-item {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.stat-value {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #333;
}

/* Add Email Section */
.add-email-section {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.email-input-field {
  flex: 1 1;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.email-input-field:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.btn-add-email {
  background: #4caf50;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-add-email:hover:not(:disabled) {
  background: #45a049;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.btn-add-email:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* Actions */
.whitelist-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.btn-action {
  background: #f0f0f0;
  color: #333;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-action:hover:not(:disabled) {
  background: #e0e0e0;
  transform: translateY(-1px);
}

.btn-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Search */
.search-section {
  margin-bottom: 20px;
}

.search-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: #2196f3;
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

/* Whitelist Container */
.whitelist-container {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  min-height: 200px;
  max-height: 500px;
  overflow-y: auto;
}

.loading-state,
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-style: italic;
}

/* Email List */
.email-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.email-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  transition: all 0.2s;
}

.email-item:hover {
  border-color: #2196f3;
  box-shadow: 0 2px 4px rgba(33, 150, 243, 0.1);
}

.email-text {
  font-size: 14px;
  color: #333;
  font-family: 'Monaco', 'Menlo', monospace;
  word-break: break-all;
}

.btn-remove {
  background: #ffebee;
  color: #c62828;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-remove:hover:not(:disabled) {
  background: #f44336;
  color: white;
  transform: scale(1.1);
}

.btn-remove:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Modal - SCOPED to whitelist */
.whitelist-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
}

.whitelist-modal-content {
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.whitelist-modal-content h3 {
  margin: 0 0 8px 0;
  color: #333;
  font-size: 20px;
}

.modal-description {
  color: #666;
  margin: 0 0 20px 0;
  font-size: 14px;
}

.bulk-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Monaco', 'Menlo', monospace;
  resize: vertical;
  margin-bottom: 20px;
}

.bulk-textarea:focus {
  outline: none;
  border-color: #2196f3;
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.whitelist-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.whitelist-btn-cancel {
  background: #f0f0f0;
  color: #333;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.whitelist-btn-cancel:hover {
  background: #e0e0e0;
}

.whitelist-btn-confirm {
  background: #4caf50;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.whitelist-btn-confirm:hover:not(:disabled) {
  background: #45a049;
}

.whitelist-btn-confirm:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
  .add-email-section {
    flex-direction: column;
  }

  .whitelist-actions {
    flex-direction: column;
  }

  .btn-action {
    width: 100%;
  }
}

/* components/css/AccessAttemptsViewer.css */
.access-attempts-viewer {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.attempts-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f0f0f0;
}

.attempts-header h2 {
  margin: 0 0 8px 0;
  color: #333;
  font-size: 22px;
  font-weight: 600;
}

.attempts-description {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.attempts-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  grid-gap: 16px;
  gap: 16px;
  margin-bottom: 24px;
}

.stat-item {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.stat-value {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #333;
}

.attempts-actions {
  margin-bottom: 20px;
}

.btn-refresh {
  background: #4caf50;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-refresh:hover:not(:disabled) {
  background: #45a049;
  transform: translateY(-1px);
}

.btn-refresh:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.attempts-container {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  min-height: 200px;
  max-height: 600px;
  overflow-y: auto;
}

.loading-state,
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-style: italic;
}

.attempts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.attempt-card {
  background: white;
  border-radius: 8px;
  padding: 16px;
  border: 2px solid #e0e0e0;
  cursor: pointer;
  transition: all 0.2s;
}

.attempt-card:hover {
  border-color: #ff6b35;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
}

.attempt-card.selected {
  border-color: #ff6b35;
  background: #fff8f5;
}

.attempt-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.attempt-email {
  flex: 1 1;
}

.email-text {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  font-family: 'Monaco', 'Menlo', monospace;
  word-break: break-all;
  margin-bottom: 4px;
}

.attempt-count {
  display: inline-block;
  background: #ffebee;
  color: #c62828;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.attempt-meta {
  text-align: right;
}

.attempt-time {
  font-size: 12px;
  color: #666;
}

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

.btn-whitelist {
  background: #4caf50;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-whitelist:hover {
  background: #45a049;
  transform: translateY(-1px);
}

.attempt-details {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
}

.attempt-details h4 {
  margin: 0 0 12px 0;
  font-size: 13px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 4px;
  margin-bottom: 4px;
  font-size: 12px;
}

.detail-index {
  color: #999;
  min-width: 30px;
}

.detail-time {
  color: #666;
  flex: 1 1;
}

.detail-uid {
  color: #999;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 11px;
}

@media (max-width: 768px) {
  .attempt-main {
    flex-direction: column;
    gap: 8px;
  }

  .attempt-meta {
    text-align: left;
  }
}

/* components/css/FeedbackViewer.css */

.feedback-viewer {
  max-width: 1400px;
  margin: 0 auto;
}

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

.feedback-stats .stat-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.feedback-stats .stat-card h3 {
  font-size: 12px;
  margin: 0 0 8px 0;
}

.feedback-stats .stat-number {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  display: block;
}

.status-submitted {
  color: #ff6b35;
}

.status-read {
  color: #ff9800;
}

.status-resolved {
  color: #4caf50;
}

/* Controls */
.feedback-controls {
  margin-bottom: 20px;
  background: white;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-filter-section {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.search-input {
  flex: 1 1;
  min-width: 200px;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.filter-select {
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s;
}

.filter-select:focus {
  outline: none;
  border-color: #ff6b35;
}

.btn-refresh {
  background: #333;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  transition: background 0.2s;
}

.btn-refresh:hover:not(:disabled) {
  background: #000;
}

.btn-refresh:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Feedback Grid */
.feedback-list-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 16px;
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  grid-gap: 16px;
  gap: 16px;
}

.feedback-card {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.feedback-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
  border-color: #ff6b35;
}

.feedback-card.submitted {
  border-left: 4px solid #ff6b35;
}

.feedback-card.read {
  border-left: 4px solid #ff9800;
}

.feedback-card.resolved {
  border-left: 4px solid #4caf50;
  opacity: 0.7;
}

.feedback-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}

.feedback-type-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feedback-type-badge.type-feedback {
  background: #fff3e0;
  color: #e65100;
}

.feedback-type-badge.type-bug {
  background: #ffebee;
  color: #c62828;
}

.feedback-type-badge.type-feature {
  background: #f3e5f5;
  color: #7b1fa2;
}

.feedback-type-badge.type-other {
  background: #e0f2f1;
  color: #00695c;
}

.feedback-status-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feedback-status-badge.status-submitted {
  background: rgba(255, 107, 53, 0.1);
  color: #ff6b35;
}

.feedback-status-badge.status-read {
  background: #fff3e0;
  color: #ef6c00;
}

.feedback-status-badge.status-resolved {
  background: #e8f5e9;
  color: #2e7d32;
}

.feedback-subject {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.feedback-message-preview {
  color: #666;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 12px;
  min-height: 50px;
}

.feedback-meta {
  font-size: 11px;
  color: #888;
  border-top: 1px solid #e9ecef;
  padding-top: 10px;
  margin-bottom: 10px;
}

.feedback-meta > div {
  margin-bottom: 4px;
}

.feedback-user {
  font-weight: 600;
  color: #333;
}

.feedback-email {
  color: #666;
  font-style: italic;
}

.feedback-date {
  color: #999;
  font-size: 10px;
}

.feedback-has-image {
  color: #ff6b35;
  font-weight: 500;
  margin-top: 6px;
}

.feedback-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.btn-mark-read,
.btn-mark-resolved,
.btn-delete {
  flex: 1 1;
  background: white;
  border: 1px solid #ddd;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.btn-mark-read:hover {
  background: #ff6b35;
  color: white;
  border-color: #ff6b35;
}

.btn-mark-resolved:hover {
  background: #4caf50;
  color: white;
  border-color: #4caf50;
}

.btn-delete {
  background: white;
  border: 1px solid #ddd;
}

.btn-delete:hover {
  background: #f44336;
  color: white;
  border-color: #f44336;
}

.no-feedback {
  text-align: center;
  padding: 50px 20px;
  color: #999;
  font-size: 15px;
}

/* Detail Modal */
.feedback-detail-modal {
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid #444;
  margin-bottom: 20px;
}

.modal-header h2 {
  margin: 0;
  color: white;
  font-size: 20px;
  flex: 1 1;
}

.modal-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.modal-body {
  color: #ddd;
}

.detail-section {
  margin-bottom: 20px;
}

.detail-section h3 {
  color: #ff6b35;
  font-size: 14px;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badge-large {
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-large.type-feedback {
  background: #fff3e0;
  color: #e65100;
}

.badge-large.type-bug {
  background: #ffebee;
  color: #c62828;
}

.badge-large.type-feature {
  background: #f3e5f5;
  color: #7b1fa2;
}

.badge-large.type-other {
  background: #e0f2f1;
  color: #00695c;
}

.badge-large.status-submitted {
  background: rgba(255, 107, 53, 0.2);
  color: #ff6b35;
}

.badge-large.status-read {
  background: #fff3e0;
  color: #ef6c00;
}

.badge-large.status-resolved {
  background: #e8f5e9;
  color: #2e7d32;
}

.detail-info {
  background: rgba(255, 255, 255, 0.05);
  padding: 14px;
  border-radius: 8px;
}

.detail-info p {
  margin: 6px 0;
  color: #ccc;
  font-size: 13px;
}

.detail-info code {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  color: #ff6b35;
}

.detail-message {
  background: rgba(255, 255, 255, 0.05);
  padding: 14px;
  border-radius: 8px;
  color: white;
  line-height: 1.6;
  white-space: pre-wrap;
  font-size: 13px;
}

.detail-image-container {
  background: rgba(255, 255, 255, 0.05);
  padding: 14px;
  border-radius: 8px;
  text-align: center;
}

.detail-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-open-image {
  display: inline-block;
  background: #ff6b35;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  transition: background 0.2s;
}

.btn-open-image:hover {
  background: #e55a2b;
}

.detail-timeline {
  background: rgba(255, 255, 255, 0.05);
  padding: 14px;
  border-radius: 8px;
}

.detail-timeline p {
  margin: 6px 0;
  color: #ccc;
  font-size: 13px;
}

.modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px solid #444;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn-reply {
  background: #333;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}

.btn-reply:hover {
  background: #000;
}

.modal-footer .btn-mark-read {
  background: #ff9800;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
}

.modal-footer .btn-mark-read:hover {
  background: #f57c00;
}

.modal-footer .btn-mark-resolved {
  background: #4caf50;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
}

.modal-footer .btn-mark-resolved:hover {
  background: #388e3c;
}

.btn-delete-modal {
  background: #f44336;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-delete-modal:hover {
  background: #d32f2f;
}

/* Responsive */
@media (max-width: 1200px) {
  .feedback-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .feedback-stats {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
  }

  .feedback-stats .stat-card {
    padding: 16px;
  }

  .feedback-stats .stat-number {
    font-size: 24px;
  }

  .feedback-grid {
    grid-template-columns: 1fr;
  }

  .search-filter-section {
    flex-direction: column;
  }

  .search-input,
  .filter-select {
    width: 100%;
  }

  .feedback-detail-modal {
    max-width: 95%;
    padding: 16px;
  }

  .modal-footer {
    flex-direction: column;
  }

  .btn-reply,
  .modal-footer .btn-mark-read,
  .modal-footer .btn-mark-resolved,
  .btn-delete-modal {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .feedback-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .feedback-card {
    padding: 12px;
  }

  .feedback-subject {
    font-size: 14px;
  }

  .feedback-message-preview {
    font-size: 12px;
    min-height: 40px;
  }
}

/* components/css/ConfigManager.css */

.config-manager {
  max-width: 800px;
  margin: 0 auto;
}

.loading-state {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-size: 16px;
}

.config-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
  padding: 24px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  gap: 20px;
}

.config-header h2 {
  margin: 0 0 8px 0;
  color: #333;
  font-size: 24px;
}

.config-description {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

.btn-test {
  background: #333;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.btn-test:hover {
  background: #000;
}

.config-form {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.label-hint {
  display: block;
  font-weight: 400;
  color: #888;
  font-size: 12px;
  margin-top: 4px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Monaco', 'Menlo', monospace;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group input::placeholder {
  color: #aaa;
  font-family: 'Monaco', 'Menlo', monospace;
}

.config-message {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
}

.config-message--success {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.config-message--error {
  background: rgba(244, 67, 54, 0.1);
  color: #f44336;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.config-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.btn-secondary,
.btn-primary {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-secondary {
  background: white;
  color: #333;
  border: 1px solid #ddd;
}

.btn-secondary:hover:not(:disabled) {
  background: #f5f5f5;
  border-color: #ccc;
}

.btn-primary {
  background: #ff6b35;
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: #e55a2b;
}

.btn-secondary:disabled,
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.config-info {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #ff6b35;
}

.config-info h3 {
  margin: 0 0 16px 0;
  color: #333;
  font-size: 16px;
}

.config-info ol {
  margin: 0;
  padding-left: 20px;
  color: #666;
  line-height: 1.8;
}

.config-info li {
  margin-bottom: 8px;
  font-size: 14px;
}

.config-info strong {
  color: #333;
  font-weight: 600;
}

.config-info a {
  color: #ff6b35;
  text-decoration: none;
  font-weight: 500;
}

.config-info a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .config-header {
    flex-direction: column;
  }

  .btn-test {
    width: 100%;
  }

  .config-form {
    padding: 20px;
  }

  .config-actions {
    flex-direction: column;
  }

  .btn-secondary,
  .btn-primary {
    width: 100%;
  }

  .config-info {
    padding: 20px;
  }
}

/* components/css/ConfigurationDashboard.css */

.config-dashboard {
  max-width: 1200px;
  margin: 0 auto;
}

.btn-back {
  background: #333;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 20px;
  transition: background 0.2s;
}

.btn-back:hover {
  background: #000;
}

.config-dashboard-header {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.config-dashboard-header h2 {
  margin: 0 0 8px 0;
  color: #333;
  font-size: 28px;
}

.config-dashboard-header p {
  margin: 0;
  color: #666;
  font-size: 16px;
}

.config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 24px;
  gap: 24px;
}

.config-card {
  background: white;
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  border: 2px solid transparent;
}

.config-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-color: #ff6b35;
}

.config-card-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.config-card-title {
  margin: 0 0 8px 0;
  color: #333;
  font-size: 20px;
  font-weight: 600;
}

.config-card-description {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

.config-card-arrow {
  position: absolute;
  bottom: 20px;
  right: 24px;
  font-size: 24px;
  color: #ff6b35;
  transition: transform 0.3s ease;
}

.config-card:hover .config-card-arrow {
  transform: translateX(4px);
}

/* Responsive */
@media (max-width: 768px) {
  .config-grid {
    grid-template-columns: 1fr;
  }

  .config-dashboard-header {
    padding: 24px;
  }

  .config-dashboard-header h2 {
    font-size: 24px;
  }

  .config-card {
    padding: 24px;
  }
}

/* components/css/TutorialSettings.css */

.tutorial-settings {
  max-width: 1400px;
  margin: 0 auto;
}

.loading-state {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-size: 16px;
}

.settings-header {
  margin-bottom: 30px;
}

.settings-header h2 {
  margin: 0 0 8px 0;
  font-size: 28px;
  color: #333;
  font-weight: 600;
}

.settings-description {
  margin: 0;
  color: #666;
  font-size: 15px;
  line-height: 1.6;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 24px;
  gap: 24px;
}

/* Panels */
.settings-panel,
.preview-panel {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.panel-header {
  background: #f8f9fa;
  padding: 20px 24px;
  border-bottom: 1px solid #e9ecef;
}

.panel-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

/* Form Styles */
.form-group {
  padding: 24px;
  border-bottom: 1px solid #f0f0f0;
}

.form-group:last-child {
  border-bottom: none;
}

.form-group label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-option {
  display: flex;
  align-items: flex-start;
  padding: 16px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.radio-option:hover {
  border-color: #ff6b35;
  background: rgba(255, 107, 53, 0.02);
}

.radio-option input[type='radio'] {
  margin: 3px 12px 0 0;
  cursor: pointer;
  width: 18px;
  height: 18px;
  accent-color: #ff6b35;
}

.radio-option input[type='radio']:checked + .radio-label {
  color: #ff6b35;
}

.radio-option:has(input[type='radio']:checked) {
  border-color: #ff6b35;
  background: rgba(255, 107, 53, 0.05);
}

.radio-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1;
}

.radio-label strong {
  font-size: 14px;
  color: #333;
}

.radio-label small {
  font-size: 12px;
  color: #666;
  font-weight: normal;
}

.url-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s;
  font-family: 'Monaco', 'Menlo', monospace;
}

.url-input:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.input-help {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}

/* Actions */
.form-actions {
  padding: 24px;
  display: flex;
  gap: 12px;
}

.btn-save {
  flex: 1 1;
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-save:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-save:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.btn-reload {
  background: white;
  color: #333;
  border: 2px solid #e9ecef;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-reload:hover:not(:disabled) {
  border-color: #ff6b35;
  color: #ff6b35;
  background: rgba(255, 107, 53, 0.02);
}

.btn-reload:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Message */
.message {
  padding: 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 16px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #4caf50;
}

.message.error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #f44336;
}

/* Preview */
.video-preview {
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 0;
  overflow: hidden;
  position: relative;
}

.video-preview iframe,
.video-preview video {
  width: 100%;
  height: 100%;
  border: none;
}

.preview-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a1e 0%, #0a0a0e 100%);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px;
  text-align: center;
}

.preview-placeholder-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.preview-placeholder p {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 500;
}

.preview-placeholder small {
  font-size: 13px;
  opacity: 0.7;
}

/* Preview Info */
.preview-info {
  padding: 24px;
  border-top: 1px solid #f0f0f0;
}

.preview-info h4 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.preview-info p {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.preview-info ul {
  margin: 0;
  padding-left: 24px;
}

.preview-info li {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 4px;
}

.preview-info code {
  display: block;
  background: #f8f9fa;
  padding: 12px 16px;
  border-radius: 6px;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 13px;
  color: #ff6b35;
  margin: 12px 0;
  overflow-x: auto;
  border: 1px solid #e9ecef;
}

/* Responsive */
@media (max-width: 1024px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .preview-panel {
    order: -1;
  }
}

@media (max-width: 768px) {
  .tutorial-settings {
    padding: 16px;
  }

  .settings-header h2 {
    font-size: 24px;
  }

  .form-group,
  .form-actions,
  .preview-info {
    padding: 16px;
  }

  .radio-option {
    padding: 12px;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn-save,
  .btn-reload {
    width: 100%;
  }
}

/* components/css/AdminPanel.css */
.admin-panel {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  background: #f5f5f5;
  min-height: 100vh;
}

/* Access Denied */
.access-denied {
  text-align: center;
  padding: 100px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.access-denied h2 {
  color: #f44336;
  margin-bottom: 16px;
}

.access-denied p {
  color: #666;
  font-size: 16px;
}

/* Header */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 24px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-header h1 {
  margin: 0;
  color: #333;
  font-size: 24px;
}

.admin-actions {
  display: flex;
  gap: 12px;
}

.btn-refresh {
  background: #4caf50;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-refresh:hover:not(:disabled) {
  background: #45a049;
}

.btn-refresh:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.btn-add-credits {
  background: #ff6b35;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-add-credits:hover:not(:disabled) {
  background: #e55a2b;
}

.btn-add-credits:disabled {
  background: #ccc;
  cursor: not-allowed;
}

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

.stat-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.stat-card h3 {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  display: block;
}

.stat-number.critical {
  color: #f44336;
}

/* Controls */
.admin-controls {
  margin-bottom: 20px;
}

.search-section {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Table */
.users-table-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.users-table {
  width: 100%;
  border-collapse: collapse;
}

.users-table th {
  background: #f8f9fa;
  padding: 16px 12px;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #e9ecef;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.users-table td {
  padding: 16px 12px;
  border-bottom: 1px solid #e9ecef;
  vertical-align: middle;
}

.users-table tr:hover {
  background: #f8f9fa;
}

.users-table tr.selected {
  background: rgba(255, 107, 53, 0.1);
  border: 2px solid #ff6b35;
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-email {
  font-weight: 500;
  color: #333;
  font-size: 14px;
}

.user-uid {
  font-size: 12px;
  color: #666;
  font-family: 'Monaco', 'Menlo', monospace;
}

.balance {
  font-family: 'Monaco', 'Menlo', monospace;
  font-weight: 600;
  font-size: 14px;
}

.balance.critical {
  color: #f44336;
}

.balance.low {
  color: #ff9800;
}

.balance.good {
  color: #4caf50;
}

.total-spent {
  font-family: 'Monaco', 'Menlo', monospace;
  color: #666;
  font-size: 13px;
}

.last-updated {
  font-size: 12px;
  color: #666;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.critical {
  background: #ffebee;
  color: #c62828;
}

.status-badge.low {
  background: #fff3e0;
  color: #ef6c00;
}

.status-badge.normal {
  background: #e8f5e8;
  color: #2e7d32;
}

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

.btn-quick-action {
  background: #2196f3;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-quick-action:hover:not(:disabled) {
  background: #1976d2;
}

.btn-quick-action:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.no-users {
  text-align: center;
  padding: 40px;
  color: #666;
  font-style: italic;
}

/* Modal specific styles for admin panel */
.admin-panel .modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
}

.admin-panel .modal-content {
  background: #2a2a2a;
  border-radius: 16px;
  padding: 32px;
  max-width: 500px;
  width: 90%;
  color: white;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid #444;
}

.admin-panel .modal-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 24px 0;
  color: white;
}

.admin-panel .modal-body {
  margin-bottom: 24px;
}

.user-info-section {
  background: rgba(255, 255, 255, 0.05);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.user-info-section h3 {
  margin: 0 0 12px 0;
  color: #ff6b35;
  font-size: 16px;
}

.user-info-section p {
  margin: 4px 0;
  font-size: 14px;
  color: #ccc;
}

.form-section {
  margin-bottom: 20px;
}

.form-section label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #ccc;
  font-size: 14px;
}

.amount-input,
.reason-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #555;
  border-radius: 8px;
  background: #333;
  color: white;
  font-size: 16px;
  transition: border-color 0.2s;
}

.amount-input:focus,
.reason-input:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.result-preview {
  background: rgba(76, 175, 80, 0.1);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.result-preview p {
  margin: 0;
  color: #4caf50;
  font-weight: 600;
}

.admin-panel .modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.admin-panel .btn-cancel {
  background: white;
  color: #333;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.admin-panel .btn-cancel:hover {
  background: #f0f0f0;
}

.admin-panel .btn-confirm {
  background: #ff6b35;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.admin-panel .btn-confirm:hover:not(:disabled) {
  background: #e55a2b;
}

.admin-panel .btn-confirm:disabled {
  background: #666;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
  .admin-panel {
    padding: 16px;
  }

  .admin-header {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .admin-actions {
    width: 100%;
    justify-content: center;
  }

  .users-table-container {
    overflow-x: auto;
  }

  .users-table {
    min-width: 800px;
  }

  .actions {
    flex-direction: column;
    gap: 4px;
  }
}

/* ========================================
   PROFESSIONAL TAB NAVIGATION
   ======================================== */

.admin-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 6px;
  position: relative;
  overflow: hidden;
}

.tab-button {
  flex: 1 1;
  background: transparent;
  border: none;
  padding: 14px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 500;
  font-size: 15px;
  color: #666;
  overflow: hidden;
}

.tab-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #f97316 0%, #f97316 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 8px;
  z-index: -1;
}

.tab-button:hover:not(.active) {
  color: #333;
  background: #f8f9fa;
  transform: translateY(-1px);
}

.tab-button.active {
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  transform: translateY(-2px);
}

.tab-button.active::before {
  opacity: 1;
}

.tab-button:active {
  transform: translateY(0);
}

.tab-icon {
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.tab-button.active .tab-icon {
  transform: scale(1.1);
}

.tab-label {
  font-size: 15px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* Animated underline indicator - Alternative style */
.admin-tabs.style-underline {
  background: transparent;
  border-bottom: 2px solid #e9ecef;
  padding: 0;
  box-shadow: none;
  border-radius: 0;
}

.admin-tabs.style-underline .tab-button {
  border-radius: 0;
  padding: 16px 28px;
  position: relative;
}

.admin-tabs.style-underline .tab-button::before {
  display: none;
}

.admin-tabs.style-underline .tab-button::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f97316 0%, #f97316 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.admin-tabs.style-underline .tab-button.active::after {
  transform: scaleX(1);
}

.admin-tabs.style-underline .tab-button.active {
  color: #667eea;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.admin-tabs.style-underline .tab-button:hover:not(.active) {
  background: rgba(102, 126, 234, 0.05);
  transform: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .admin-tabs {
    gap: 4px;
    padding: 4px;
  }

  .tab-button {
    padding: 12px 16px;
    flex-direction: column;
    gap: 6px;
  }

  .tab-icon {
    font-size: 20px;
  }

  .tab-label {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .tab-label {
    display: none;
  }

  .tab-button {
    padding: 14px;
  }

  .tab-icon {
    font-size: 24px;
  }
}

/* Dark mode alternative (optional) */
@media (prefers-color-scheme: dark) {
  .admin-tabs {
    background: #1e1e1e;
  }

  .tab-button {
    color: #aaa;
  }

  .tab-button:hover:not(.active) {
    background: #2a2a2a;
    color: #fff;
  }

  .tab-button.active {
    color: white;
  }
}

/* Animation on tab switch */
@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-stats,
.whitelist-manager {
  animation: tabFadeIn 0.4s ease-out;
}

.App {
  text-align: center;
}

.App-logo {
  height: 40vmin;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .App-logo {
    animation: App-logo-spin infinite 20s linear;
  }
}

.App-header {
  background-color: #282c34;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: calc(10px + 2vmin);
  color: white;
}

.App-link {
  color: #61dafb;
}

@keyframes App-logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* App.css */
.app-layout {
  display: flex;
  height: 100vh;
  font-family: sans-serif;
}

.sidebar {
  width: 220px;
  background: #f4f4f4;
  margin-top: 30px;
  padding: 20px;
  border-right: 1px solid #ddd;
}

.search-box {
  width: 100%;
  padding: 8px;
  margin-bottom: 15px;
}

.node-group .node-item {
  background: #fff;
  border: 1px solid #ccc;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 8px;
  cursor: grab;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.05);
}

.main-flow {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  background: repeating-dot;
  padding: 20px;
  position: relative;
}

.flow-wrapper {
  flex: 1 1;
  background: linear-gradient(135deg, #e9e9e9, #fdfdfd);
  border-radius: 8px;
  overflow: hidden;
}

.preview-bar {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  padding: 10px 0;
  overflow-x: auto;
}

.preview-tile {
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 180px;
  padding: 10px;
  background: white;
  text-align: center;
  flex-shrink: 0;
}

.download-btn {
  margin-top: 10px;
  padding: 12px 24px;
  background: #c6ff00;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  align-self: flex-start;
}

.property-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  height: 100vh;
  background-color: #fff;
  border-left: 1px solid #ccc;
  padding: 16px;
  overflow-y: auto;
  z-index: 10;
}

/* Top Navigation */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: black;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  /* border-bottom: 1px solid #ccc; */
  z-index: 1000;
}

.logo {
  font-size: 20px;
  font-weight: bold;
  font-family: monospace;
}

.menu a {
  margin: 0 10px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.auth-buttons {
  display: flex;
  gap: 10px;
}

.btn {
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.btn.light {
  background: #f0f0f0;
}

.btn.dark {
  background: #333;
  color: white;
}
.empty-canvas-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
  opacity: 0.8;
}


/* Property Panel */
.property-panel {
  width: 300px;
  background: #fff;
  border-left: 1px solid #ccc;
  padding: 20px;
  font-family: system-ui, sans-serif;
  overflow-y: auto;
  height: 100vh;
}

.property-panel h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.property-panel .section {
  margin-bottom: 20px;
}

.property-panel .section h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.property-panel .section-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.property-panel label {
  font-size: 13px;
  color: #333;
}

.property-panel input,
.property-panel textarea,
.property-panel select {
  width: 100%;
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  resize: none;
  box-sizing: border-box;
}

.property-panel select {
  cursor: pointer;
  background: white;
}

.download-btn {
  background: #222;
  color: #fff;
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s ease;
}

.download-btn:hover {
  background: #444;
}




/*# sourceMappingURL=main.e7bebcf0.css.map*/