html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #0b0b0b;
  font-family: 'Poppins', sans-serif;
  color: #d0ffd0;
}

/* === GLOBAL LAYOUT === */
#layout {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* === TOP MENU BAR === */
#menubar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 45px;
  background: #0c0c0c;
  border-bottom: 1px solid #151515;
  display: flex;
  justify-content: center; /* keeps center menu centered */
  align-items: center;
  z-index: 20;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* left logo container */
#menu-left {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
}

/* logo style */
#logo {
  height: 26px;
  filter: drop-shadow(0 0 6px #3fff3f);
  opacity: 0.9;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* center menu area */
#menu-center {
  display: flex;
  gap: 25px;
  align-items: center;
}

.menu > span {
  cursor: pointer;
  transition: 0.2s;
  color: #c8ffc8;
  font-weight: 500;
}

.menu > span:hover {
  color: #7ff57f;
}

/* === CONTENT AREA === */
#contentArea {
  display: grid;
  grid-template-columns: 230px 1fr 380px;
  flex: 1;
  overflow: hidden;
  margin-top: 45px; /* prevent menu overlap */
}

#sidebar, #outputPanel {
  height: calc(100vh - 90px);
  overflow-y: auto;
}

/* === LEFT SIDEBAR === */
#sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  background: #101010;
  border-right: 1px solid #1c1c1c;
  padding: 10px 8px;
}

.category-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category.utilities {
  margin-top: 20px;
}


.category {
  margin-bottom: 12px;
}
.category-header {
  font-weight: 600;
  font-size: 14px;
  color: #7af57a;
  margin-bottom: 4px;
}

/* === Move Utilities to bottom === */

.node-btn {
  width: 100%;
  text-align: left;
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  margin-bottom: 4px;
  cursor: pointer;
  font-weight: 500;
  color: white;
  transition: 0.2s;
}
.node-btn:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}
.blue {
  background: #2962ff;
}
.green {
  background: #1b7f3f;
}

/* === CENTER CANVAS === */
#editorArea {
  position: relative;
  background: #0b0f0b;
  overflow: hidden;
}
#canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0c0c0c;
  background-image: linear-gradient(#111 1px, transparent 1px),
                    linear-gradient(90deg, #111 1px, transparent 1px);
  background-size: 20px 20px;
  cursor: default;
}
#dropOverlay {
  position: absolute;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(40, 255, 100, 0.15);
  color: #9fff9f;
  font-size: 20px;
  border: 3px dashed #3f8f3f;
  border-radius: 12px;
  pointer-events: none;
}

/* === FLOATING CONTROL BAR === */
#controls {
  position: fixed;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: #111;
  border: 1px solid #222;
  padding: 8px 18px;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
  z-index: 200;
}

/* === FLOATING CONTROL BAR === */
#controls {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 10, 10, 0.85);
  border: 1px solid #1c1c1c;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 20px;
  box-shadow: 0 0 25px rgba(0, 255, 100, 0.08);
  backdrop-filter: blur(10px);
  z-index: 100;
}

/* button style — always filled, smooth transition */
.control-btn {
  background: linear-gradient(180deg, #1e8a46 0%, #167c34 100%);
  border: 1px solid #2fa14d;
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 8px rgba(0, 255, 100, 0.12);
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

/* hover effect — smoother light glow, no transparency flash */
.control-btn:hover {
  background: linear-gradient(180deg, #2ec75f 0%, #25a04d 100%);
  box-shadow: 0 0 18px rgba(0, 255, 100, 0.3);
  transform: translateY(-1.5px);
}

/* active press effect */
.control-btn:active {
  transform: scale(0.97);
  background: linear-gradient(180deg, #208d47 0%, #19783a 100%);
  box-shadow: 0 0 6px rgba(0,255,100,0.2);
}




/* === RIGHT OUTPUT PANEL === */
#outputPanel {
  background: #0e0e0e;
  border-left: 1px solid #1c1c1c;
  display: flex;
  flex-direction: column;
  padding: 10px;
}
#outputPanel h3 {
  color: #6cff6c;
  margin: 0 0 8px;
  font-size: 16px;
}
#gherkinOutput {
  flex-grow: 1;
  background: #060c06;
  border: 1px solid #1e4e1e;
  border-radius: 6px;
  color: #9fff9f;
  font-family: monospace;
  padding: 10px;
  overflow: auto;
  white-space: pre-wrap;
}

/* === CONTEXT MENU === */
.context-menu {
  position: absolute;
  background: #181818;
  border: 1px solid #333;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: #fff;
  z-index: 9999;
  min-width: 140px;
  padding: 4px 0;
}
.menu-item {
  padding: 6px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.menu-item:hover {
  background: #2b2b2b;
  color: #7ff57f;
  transition: 0.15s ease;
}

/* === EARLY ACCESS BOX === */
#earlyAccessBox {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #ff9e2b, #ffb347);
  color: #111;
  font-weight: 600;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid #e07800;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 999;
}
#earlyAccessBox button {
  background: #111;
  color: #ffb347;
  border: none;
  border-radius: 4px;
  padding: 2px 10px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}
#earlyAccessBox button:hover {
  background: #222;
  color: #fff;
}
#earlyAccessBox b,
#earlyAccessBox strong {
  font-weight: 700;
}

#controls {
  position: fixed;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  background: #111;
  border: 1px solid #222;
  padding: 8px 18px;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0,0,0,0.6);
  z-index: 200;
}

/* === Simple Divider === */

.control-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.divider {
  width: 1px;
  height: 26px;
  background: #2e2e2e;
  margin: 0 8px;
  border-radius: 2px;
  opacity: 0.7;
}


/* === UNIFIED NOTICE SYSTEM === */
.notice {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(90deg, #ff9e2b, #ffb347); /* default warning */
  color: #111;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid #e07800;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  z-index: 2000;
  min-width: 340px;
  animation: slideDown 0.25s ease-out;
}

.notice span.icon {
  font-size: 15px;
}

/* === Button Style (identical to earlyAccessBox) === */
.notice button {
  background: #111;
  color: #ffb347; /* Warm amber text color */
  border: none;
  border-radius: 4px;
  padding: 2px 10px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.1);
}
.notice button:hover {
  background: #222;
  color: #fff;
}

/* === VARIANTS (matching gradient + border tones) === */
.notice.warning {
  background: linear-gradient(90deg, #ff9e2b, #ffb347);
  color: #111;
  border-color: #e07800;
}

.notice.success {
  background: linear-gradient(90deg, #53ff73, #8eff95);
  color: #111;
  border-color: #2e8f4b;
}
.notice.success button {
  color: #53ff73; /* green accent */
}
.notice.success button:hover {
  color: #fff;
}

.notice.error {
  background: linear-gradient(90deg, #ff4b4b, #ff7b7b);
  color: #fff;
  border-color: #a52222;
}
.notice.error button {
  color: #ff7b7b; /* red accent */
}
.notice.error button:hover {
  color: #fff;
}

.notice .icon i {
  font-size: 18px;
  vertical-align: middle;
}

/* Optional: Add icon tinting per type */
.notice.success .icon i { color: #006d2e; }   /* deep green */
.notice.warning .icon i { color: #c96f00; }   /* amber-orange */
.notice.error .icon i { color: #b30000; }     /* deep red */


/* === Animation === */
@keyframes slideDown {
  from { opacity: 0; transform: translate(-50%, -20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}


/* === Resizable Windows === */
.window {
  position: absolute;
  top: 150px;
  left: 250px;
  width: 400px;
  height: 300px;
  background: #0d0d0d;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  color: #d8ffd8;
  font-family: "Poppins", sans-serif;
  z-index: 999;
  overflow: hidden;
  resize: none; /* we handle manually */
}

.window-header {
  background: linear-gradient(90deg, #1b7f3f, #2962ff);
  padding: 8px 12px;
  border-radius: 10px 10px 0 0;
  cursor: move;
  font-weight: 600;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.window-content {
  padding: 12px;
  font-size: 13px;
  background: #0e0e0e;
  border-radius: 0 0 10px 10px;
  display: flex;
  flex-direction: column;
  height: calc(100% - 40px);
  overflow: hidden;
}

/* Bottom-right corner resize grip */
.resize-handle {
  position: absolute;
  bottom: 4px;        /* moved up slightly */
  right: 4px;         /* moved left slightly */
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #2bff88 0%, #2a74ff 100%);
  border-radius: 3px;
  cursor: se-resize;
  opacity: 0.6;
  box-shadow: 0 0 3px rgba(0,0,0,0.4);
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: all;
  z-index: 5;
}
.resize-handle:hover {
  opacity: 1;
  transform: scale(1.1);
}



.window-header button {
  background: none;
  border: none;
  color: white;
  font-size: 14px;
  cursor: pointer;
}

.window-content {
  padding: 12px;
  font-size: 13px;
  background: #0e0e0e;
  border-radius: 0 0 10px 10px;
  min-height: 100px;
}

.tool-tab {
  background: none;
  border: none;
  color: #b0ffb0;
  text-align: left;
  padding: 8px 10px;
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s;
}
.tool-tab:hover {
  background: #1a1a1a;
  color: #7aff7a;
}
.tool-tab.active {
  background: #1b7f3f;
  color: #fff;
  border-left: 3px solid #49ff49;
}

.gitlab-tab {
  flex: 1;
  background: #0f0f0f;
  color: #7aff7a;
  border: 1px solid #1f1f1f;
  border-radius: 6px;
  padding: 6px 8px;
  cursor: pointer;
  transition: 0.2s;
  font-size: 13px;
}

#gitlab-tab-content {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
  width: 100% !important;
}


.gitlab-tab:hover {
  background: #1a1a1a;
}
.gitlab-tab.active {
  background: #1b7f3f;
  color: white;
  font-weight: bold;
}



/* === LOCAL RUNNER TAB STYLE (IDENTICAL TO GITLAB STYLE) === */
.local-tab {
  flex: 1;
  background: #0f0f0f;
  color: #7aff7a;
  border: 1px solid #1f1f1f;
  border-radius: 6px;
  padding: 6px 8px;
  cursor: pointer;
  transition: 0.2s;
  font-size: 13px;
  font-weight: normal; /* same as GitLab when inactive */
}

#local-tab-content {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.local-tab:hover {
  background: #1a1a1a;
}

.local-tab.active {
  background: #1b7f3f;
  color: white;
  font-weight: bold;
}

/* === GherAI Chat Bubbles === */
#chatBox {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  overflow-y: auto;
  background: #0b0b0b;
  border: 1px solid #222;
  border-radius: 8px;
  color: #bfffbf;
  font-size: 13px;
  height: 360px;
}

/* Base bubble style */
.chat-bubble {
  display: flex;
  max-width: 80%;
  word-wrap: break-word;
}

/* AI bubble (left side) */
.chat-bubble.ai {
  justify-content: flex-start;
}

.chat-bubble.ai .bubble-content {
  background: #1a1a1a;
  color: #bfffbf;
  border-radius: 14px 14px 14px 4px;
  padding: 8px 12px;
  box-shadow: 0 0 6px rgba(0,255,100,0.05);
}

/* USER bubble (right side) */
.chat-bubble.user {
  justify-content: flex-end;
}

.chat-bubble.user .bubble-content {
  background: #1b7f3f;
  color: white;
  border-radius: 14px 14px 4px 14px;
  padding: 8px 12px;
  box-shadow: 0 0 6px rgba(0,255,100,0.2);
  text-align: right;
}

/* Typing dots animation */
#typingDots {
  display: inline-block;
  letter-spacing: 2px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -48%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}


/* === PRELOADER === */
#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #0b0b0b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99998;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.circle-loader {
  width: 70px;
  height: 70px;
  border: 4px solid rgba(83,255,115,0.2);
  border-top: 4px solid #53ff73;
  border-radius: 50%;
  animation: spin 1.2s linear infinite, glow 2s ease-in-out infinite;
  box-shadow: 0 0 12px #53ff7355;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes glow {
  0%,100% { box-shadow: 0 0 10px #53ff73aa; }
  50% { box-shadow: 0 0 20px #00ff99; }
}

.loader-text {
  margin-top: 14px;
  color: #aaffaa;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  opacity: 0.85;
}

/* === MOBILE BLOCK === */
#mobileBlock {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #0b0b0b;
  color: #7aff7a;
  z-index: 99999;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  padding: 20px;
  box-sizing: border-box;
}

#mobileBlock .mobile-content { max-width: 420px; }
#mobileBlock i {
  font-size: 50px;
  color: #53ff73;
  margin-bottom: 14px;
  display: block;
}
#mobileBlock h2 {
  margin: 8px 0;
  font-weight: 600;
  font-size: 22px;
}
#mobileBlock p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.85;
}




