@charset "UTF-8";

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px !important;
  background: #f4f6f8;
  color: #1f2937;
  overflow-x: hidden; /* never let the page itself scroll horizontally */
}

* {
  box-sizing: border-box;
}

/* ==============================
   App Layout
============================== */
.app {
  display: flex;
  height: 100vh;
}

/* ==============================
   Sidebar
============================== */
.sidebar {
  width: 400px;
  min-width: 400px;      /* ← ADD THIS */
  flex-shrink: 0;        /* ← ADD THIS */
  background: #111827;
  color: #e5e7eb;
  padding-top: 10px;
  padding-bottom: 0;
  padding-left: 10px;
  padding-right: 10px;
  height: 99vh;
  overflow-y: auto;
  margin-left: 5px;
  margin-top: 5px;
  border-radius: 12px;
}

/* Sidebar Header Styles */
.sidebar-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #374151;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.user-welcome {
  font-size: 16px;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 12px;
  padding: 8px 0;
}

.logout-btn {
  width: 100%;
  background: transparent;
  border: 1px solid #ef4444;
  color: #ef4444;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.logout-btn:hover {
  background: #ef4444;
  color: white;
}

/* Globals section spacing control */
.globals-section {
  margin-top: 0;
  /* ⬅ space ABOVE Globals */
  margin-bottom: 20px;
  /* space BELOW Globals */
  padding-top: 0;
  /* inner space above "Globals" text */
  padding-bottom: 10px;
  border-bottom: 1px solid #444;
}

/* Sidebar Collection List */
.collection h3 {
  font-size: 15px;
  margin-bottom: 5px;
  margin-top: 5px;
  margin-left: 0;
  color: #ffd045;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.collection ul {
  padding: 0;
  list-style: none;
  margin: 0;
}

.collection li {
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #e3e1e0;
  transition: background 0.2s;
}

/* Collection Folders (Parent Items) */
.collection-folder {
  padding: 5px;
  padding-right: 5px;
  margin-top: 5px;
  margin-bottom: 2px;
  margin-right: -15px;
}

.collection-folder .folder-name-container {
  display: flex;
  align-items: center;
  color: #f8c8ae;
  font-weight: 400;
  font-size: 16px;
  gap: 16px;
  padding-right: -15px;
}

/* Request Items (Children) */
.request-item {
  align-items: center;
  margin-top: 2px;
  margin-bottom: -2px;
  padding-top: 6px;
  padding-bottom: -2px;
  margin-left: 40px;
  padding-left: 5px;
  font-size: 13px;
  color: #e5e7eb;
}

.request-item:hover {
  background: #83afeb;
}

.request-item .request-name-container {
  display: flex;
  align-items: center;
  padding-top: 0;
  gap: 8px;
}

/* Toggle & Buttons */
.collection-toggle-btn {
  font-size: 10px;
  color: #f0c9b5;
  cursor: pointer;
  transition: transform 0.2s;
  user-select: none;
}

.collection-toggle-btn:hover {
  color: #fff;
}

/* Sidebar Collection Elements */
.collection-name-text {
  cursor: pointer;
}


/* Editable Collection Name Input */
.collection-name-input-field {
  background: #1e293b;
  color: #e5e7eb;
  border: 1px solid #60a5fa;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 14px;
  width: 150px;
  outline: none;
}

.collection li.add-request-btn {
  color: #60a5fa;
  font-size: 14px;
  cursor: pointer;
  width: 140px;
  padding: 5px 8px;
  margin-left: 87px;
  margin-right: 90px;
  padding-right: 0;
}

.collection li.add-request-btn:hover {
  background: #1e293b;
}

/* Sidebar Delete Buttons */
.sidebar-delete-btn {
  background: none;
  border: none;
  cursor: pointer;
  margin-right: -2px;
  padding-right: -2px;
  display: flex;
  align-items: left;
  justify-content: left;
}

.collection-delete-btn {
  color: #ed2d2d;

  font-size: 16px;
  margin-left: 2px;
  padding-left: 6px;
  margin-right: 6px;
  padding-right: 6px;
}

.collection-delete-btn.hover {
  color: #f74140;
}

.request-delete-btn {
  color: #ec1d1d;
  font-size: 16px;
  margin-left: 2px;
  padding-left: 6px;
  margin-right: 2px;
  padding-right: 6px;
  padding-bottom: 3px;
  margin-bottom: 3px;
}

.request-delete-btn:hover {
  color: #ffffff;
  /* Example hover text color */
  background: #ff0000;
  /* Example hover background */
}

.collection li:hover,
.collection li.active {
  background: #1f2937;
}

.request-item.dragging {
  opacity: 0.5;
  background: #374151;
  border: 1px dashed #60a5fa;
}


/* ==============================
   Main Area
============================== */
.app-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 10px 10px;
  border-radius: 12px;
  margin-bottom: 2px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.app-header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: white;
  text-align: center;
  letter-spacing: 0.5px;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px;
  gap: 0;
  min-width: 0; /* prevent flex child overflow */
  overflow: hidden;
}

/* ==============================
   Vertical Divider
============================== */
.vertical-divider {
  height: 2px;
  background: #3b82f6;
  width: 100%;
  cursor: ns-resize;
  position: relative;
  z-index: 10;
  margin: 1px 0;
  display: flex;
  align-items: center;
}

/* The visible thin line */
.vertical-divider::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: #f97316;
  /* Orange color */
  transition: all 0.2s;
}

.vertical-divider:hover::after {
  height: 3px;
  background: #3b82f6;
  /* Blue color on hover */
}

/* Hide divider when collection or globals panel is active */
body.show-collection .vertical-divider,
body.show-globals .vertical-divider {
  display: none;
}


/* ==============================
   Collection Panel
============================== */
.collection-panel {
  height: 92vh;
  display: flex;
  flex-direction: column;
  background: #0f172a;
  padding-top: 10px;
  margin-top: 1px;
  padding-left: 10px;
  border-radius: 1px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0);
}

/* ==============================
   Request Panel
============================== */
.request-panel {
  height: var(--body-height);
  display: flex;
  flex-direction: column;
  background: #0f172a;
  padding: 15px;
  padding-right: 5px;
  padding-top: 7px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Request Name Container */
.request-name-container {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 10px;
}

/* Breadcrumb Header */
.breadcrumb-header {
  display: flex;
  align-items: center;
  font-size: 15px;
  color: #35d3f4;
  /* Muted gray for breadcrumb */
  gap: 6px;
  flex: 1;
}

.breadcrumb-collection {
  white-space: nowrap;
  font-weight: 500;
}

.breadcrumb-separator {
  color: #35d3f4;
}

/* Requset Name in Request Panel*/
.request-name-input {
  flex: none;
  /* Prevent flex grow/shrink from generic input rule */
  width: auto;
  /* Allow JS to control width or default */
  min-width: 100px;
  /* Minimum width so it's clickable if empty */
  max-width: 100%;
  border: 1px solid transparent;
  /* Transparent border normally */
  font-size: 16px;
  /* Decreased font size */
  font-weight: 500;
  color: #e8e8e8;
  outline: none;
  background: transparent;
  padding-left: 4px;
  padding-top: 8px;
  padding-bottom: 4px;
  margin-left: -5px;
  /* Slightly tighter padding */
  transition: all 0.2s;
}

.request-name-input:hover {
  background: #1e293b;
  border-radius: 4px;
}

.request-name-input:focus {
  background: #1e293b;
  border-radius: 4px;
  /*border-color: #60a5fa;*/
  padding-right: 1px;
  margin-right: 0;

  /* Blue border on focus (Postman style) */
}

.save-btn {
  margin-left: auto;
  /* Push to extreme right */
  background: #f8de64;
  /* Light gray/whiteish */
  color: #1f2937;
  /* Dark text */
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.request-panel .save-btn {
  padding-right: 20px;
}

.collection-panel .save-btn {
  margin-right: 10px;
}


.save-btn:hover {
  background: #75ef59;
}

.row {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

select,
input {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #47a2ec;;
  /* Darker border */
  font-size: 14px;
  background: #1e293b;
  /* Dark input bg */
  color: #ffffff;
  /* Light text */
}

select {
  width: 100px;
}

input {
  flex: 1;
}

/* URL Editor */
.url-editor-container {
  flex: 1;
  position: relative;
  height: 42px;
  /* Fixed height for URL bar */
  overflow: hidden;
  border: 1px solid #47a2ec;
  border-radius: 6px;
  background: #1e293b;
}

.url-editor-container textarea,
.url-editor-container .highlight-layer {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  /* Use nicer font */
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  padding: 10px;
  margin: 0;
  border: none;
  width: 100%;
  height: 100%;
  white-space: pre;
  overflow: hidden;
  box-sizing: border-box;
  letter-spacing: 0;
  font-variant-ligatures: none;
  /* Avoid cursor drift */
}

.url-editor-container textarea {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  background: transparent;
  color: transparent !important;
  caret-color: #e5e7eb;
  resize: none;
  outline: none;
}

.url-editor-container .highlight-layer {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  color: #e5e7eb;
  pointer-events: none;
}

.variable {
  padding: 0 0;
  border-radius: 0;
}

.variable.global {
  color: #f59e0b;
  /* Global: Orange */
}

.variable.collection {
  color: #ee8f44;
  /* Collection: Cyan */
}

/* Variable Highlight in URL */
.variable-highlight {
  color: #d97706;
  /* Brown/Orange */
  font-weight: normal;
}

button {
  background: rgba(132, 242, 183, 0.93);
  color: #f81555;
  border: none;
  border-radius: 8px;
  /* slightly rounder */
  padding: 1px 16px;
  /* ⬅ increases height & width */
  font-size: 16px;
  /* ⬅ bigger text */
  font-weight: 50;
  cursor: pointer;
}

button:hover {
  background: #3df4a7;
}

/* ==============================
   Tabs
============================== */
.tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid #374151;
  /* Darker border */
  margin-bottom: 15px;
}

.tab {
  padding-bottom: 8px;
  cursor: pointer;
  color: #9ca3af;
  /* Muted light text */
  font-size: 14px;
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.tab:hover {
  color: #e5e7eb;
  /* Brighter on hover */
}

.tab.active {
  color: #ffffff;
  /* White text */
  border-bottom-color: #f97316;
  /* Orange underline */
  font-weight: 500;
}

/* ==============================
   Authorization Styles
============================== */
.auth-settings {
  padding: 15px;
  color: #e5e7eb;
}

.auth-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
}

.auth-row label {
  font-size: 16px;
  font-weight: 600;
  color: #f0ad94;
  width: 80px;
  flex-shrink: 0;
}

.auth-types {
  display: flex;
  gap: 20px;
}

.auth-types label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #ffffff;
  font-size: 16px;
  font-weight: normal;
  width: auto;
  white-space: nowrap;
}

.token-editor-container {
  position: relative;
  height: 42px;
  background: #1e293b;
  border: 1px solid #374151;
  border-radius: 6px;
  overflow: hidden;
  max-width: 700px;
  flex: 1;
}

.token-editor-container textarea,
.token-editor-container .highlight-layer {
  font-family: var(--code-font-family);
  font-size: 15px;
  padding: 10px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  white-space: pre;
  overflow: hidden;
  line-height: 22px;
}

.token-editor-container textarea {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  background: transparent;
  color: transparent !important;
  caret-color: #e5e7eb;
  resize: none;
  border: none;
  outline: none;
}

.token-editor-container .highlight-layer {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  color: #e5e7eb;
  pointer-events: none;
}

/* Tab Content */
.tab-content-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tab-pane {
  display: none;
  height: 100%;
  flex-direction: column;
}

.tab-pane.active {
  display: flex;
}

/* Body Options */
.body-options {
  margin-bottom: 10px;
  font-size: 14px;
  color: #9ca3af;
  /* Light muted */
  display: flex;
  gap: 15px;
}

.body-options label {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ==============================
   Key-Value Editors (Params/Headers)
============================== */
.kv-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0;
  background: #0f172a;   /* dark gap shows between rows as row separator */
  border-radius: 6px;
  overflow: hidden;
}

.kv-row {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #1e293b;
  align-items: center;
  background: #1e293b;
  border-radius: 4;
  overflow: hidden;
  margin-bottom: 1px;
  margin-right: 1px;
  transition: background 0.15s;   /* smooth hover */
}

.kv-row:hover {
  background: #273548;             /* whole-row highlight */
}

.kv-row:last-child {
  border-bottom: none;
}

.kv-checkbox {
  width: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.kv-row input {
  background: transparent;
  border: none;                    /* no borders between cells */
  border-radius: 0;
  padding: 8px 10px;
  color: #e5e7eb;
}

/* Key gets 30%, value gets 70% */
.kv-row .kv-key {
  flex: 3;
  border-right: 1px solid #0f172a; /* subtle divider between key and value */
}

.kv-row .kv-value {
  flex: 7;
}

.kv-row input:last-child {
  border-right: none;
}

.kv-row input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.05);
}

/* Remove Add buttons styles as they are gone */
.add-kv-btn {
  display: none;
}

/* Key-Value Pair Delete Buttons */
.delete-btn {
  background: transparent;
  color: #ef4444;
  /* Red */
  padding: 0 10px;
  font-size: 16px;
  line-height: 1.5;
}

.delete-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  background: #ef4444;
  color: white;
}

.add-kv-btn {
  align-self: flex-start;
  background: transparent;
  color: #9ca3af;
  border: 1px dashed #4b5563;
  font-size: 13px;
  padding: 8px 12px;
}

.add-kv-btn:hover {
  background: #1e293b;
  color: #e5e7eb;
  border-color: #6b7280;
}

.tab.active {
  color: #ffffff;
  border-bottom-color: #f97316;
}

.test-count.pass {
  color: #10b981 !important;
}

.test-count.fail {
  color: #ef4444 !important;
}

.test-count.partial {
  color: #f97316 !important;
}

/* Test Results Tab Content Styling */
.test-results-wrapper {
  padding: 15px;
  font-family: inherit;
}

.test-result-row {
  margin-bottom: 5px;
  padding-bottom: 5px;
  line-height: 1.6;
  font-size: 16px;
  /* Increased Test Case Font */
}

.test-result-row+.test-result-row {
  border-top: 1px solid #333;
  padding-top: 8px;
}

.test-result-label {
  color: #ffd045;
  font-weight: 500;
}

.test-result-name {
  color: #e5e7eb;
}

.test-result-status {
  font-weight: 500;
}

.test-result-status.pass {
  color: #22c55e !important;
}

.test-result-status.fail {
  color: #ef4444 !important;
}

.test-results-summary {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #444;
  font-size: 17px;
  /* Increased Summary Font */
  color: #ffd045;
  font-weight: 500;
  /* Not bold as requested */
}

.test-results-summary .pass-text {
  color: #22c55e !important;
}

.test-results-summary .fail-text {
  color: #ef4444 !important;
}

.test-results-summary .error-text {
  color: #ef4444 !important;
}

/* Tab Status Indicators (Green Dots) */
.tab .tab-indicator {
  display: none;
  /* Hidden by default */
  width: 6px;
  height: 6px;
  background-color: #10b981;
  /* Green-500 */
  border-radius: 50%;
  margin-top: -1px;
}

.tab.has-content .tab-indicator {
  display: inline-block;
}

/* ==============================
   Editor (Request Body)
============================== */
.editor {
  /* margin-top: 10px; REMOVED margin, handled by container */
  display: flex;
  flex: 1;
  background: #0f172a;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #1e293b;
  min-height: 350px;
}

/* Line Numbers (shared style) */
.line-numbers {
  padding: 10px 6px;
  background: #020617;
  color: #64748b;
  font-family: var(--code-font-family);
  font-size: var(--editor-text-size-px);
  line-height: var(--editor-line-height);
  text-align: right;
  user-select: none;
  min-width: 44px;
  overflow: hidden;
  /* Enable programmatic scroll sync */
}

.line-numbers div {
  height: 26px; /* Must match editor line-height exactly */
}

/* ==============================
   Relative Container for Overlay
   ============================== */
.relative-container {
  position: relative;
  flex: 1;
  display: flex;
  overflow: hidden;
  /* Contains the scrollable textarea */
}

/* Common Font Settings for Sync */
.highlight-layer,
.editor textarea {
  font-family: var(--code-font-family);
  font-size: var(--editor-text-size-px);
  line-height: 26px; /* Explicit integer px — avoids sub-pixel accumulation over many lines */
  padding: 10px;
  border: none;
  margin: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  letter-spacing: 0;
  font-variant-ligatures: none;
  tab-size: 4;
  -moz-tab-size: 4;
}

/* Highlight Layer (Background) */
.highlight-layer {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
  /* Let clicks pass through to textarea */
  white-space: pre;
  /* No wrapping — must match textarea behavior */
  overflow: visible;
  /* Height is auto (content-driven). Parent .relative-container clips it.
     JS uses transform:translate to shift it, matching the textarea scroll exactly. */
  height: auto;
  width: max-content;
  min-width: 100%;
  color: #e5e7eb;
}

/* Textarea (Foreground) */
.editor textarea {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  color: transparent !important;
  /* Hide text but keep cursor */
  background: transparent;
  caret-color: #e5e7eb;
  /* Cursor color */
  resize: none;
  outline: none;
  overflow: auto;
  /* Scrollable */
}

/* Fix selection color to be visible on transparent text */
.editor textarea::selection {
  background: rgba(255, 255, 255, 0.2);
  color: transparent;
}


/* ==============================
   Response Panel
============================== */
.response-panel {
  height: var(--response-height);
  display: flex;
  flex-direction: column;
  background: #0f172a;
  color: #e5e7eb;
  border-radius: 10px;
  padding: 10px;
  min-width: 0; /* prevent flex child from expanding past parent */
  overflow: hidden;
}

.response-header {
  padding: 5px 5px;
  /* border-bottom: 1px solid #1e293b; REMOVED border */
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}

.response-tabs {
  border-bottom: 1px solid #374151;
  margin-bottom: 10px;
}

.response-tabs .tab {
  color: #9ca3af;
}

.response-tabs .tab.active {
  color: #ffffff;
  /* White text */
  border-bottom-color: #f97316;
  /* Orange underline */
}

.response-tabs .tab:hover {
  color: #e5e7eb;
}

/* Response content */
/* .response-content { } handled by .tab-content-container */

.response-container {
  display: flex;
  flex: 1;
  overflow: hidden; /* clips vertically; pre inside handles its own scroll */
  min-width: 0;     /* critical: prevents flex child from expanding beyond parent */
}

/* Response text */
.response-panel pre {
  padding: 10px 10px 0 10px;
  /* REMOVE bottom padding */
  margin: 0;
  overflow: auto;       /* scrolls horizontally AND vertically inside the pre */
  flex: 1;
  min-width: 0;         /* prevents pre from blowing past its flex container */
  background: transparent;
  color: #e5e7eb;

  font-family: var(--code-font-family);
  font-size: var(--editor-text-size-px);
  line-height: var(--editor-line-height);
}

/* ===== Response Line Numbers FIX ===== */
#responseLines {
  padding-top: 10px;
  padding-bottom: 0;
  /* IMPORTANT */
  font-family: var(--code-font-family);
  font-size: var(--editor-text-size-px);
  line-height: var(--editor-line-height);
}

#responseLines div {
  height: calc(var(--code-line-height) * 1em);
}

#status {
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
  display: inline-block;
}

#duration {
  margin-left: 10px;
  font-weight: normal;
  color: inherit;
}

/* JSON syntax highlighting */
.property,
.string,
.number,
.boolean,
.null {
  font-size: inherit;
  font-weight: normal;
  font-family: inherit;
}

.property {
  color: #90d1f1;
}

/* blue for property names */
.string {
  color: #f59e0b;
}

/* green for string values */
.number {
  color: #27e4a6;
}

/* orange for numbers */
.boolean {
  color: #f97316;
}

/* deep orange for true/false */
.null {
  color: #9ca3af;
}

/* Sidebar Method Tags */
.sidebar-method-tag {
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
  min-width: 38px;
  margin-right: 8px;
  text-transform: uppercase;
  text-align: center;
}

.sidebar-method-tag.get {
  color: #22c55e;
}

.sidebar-method-tag.post {
  color: #3b82f6;
}

.sidebar-method-tag.put {
  color: #f59e0b;
}

.sidebar-method-tag.patch {
  color: #a855f7;
}

.sidebar-method-tag.delete {
  color: #ef4444;
}



/* gray for null */

#method {
  font-weight: 700;
}

/* Dynamic colors */
#method.get {
  color: #22c55e;
}

#method.post {
  color: #3b82f6;
}

#method.put {
  color: #f59e0b;
}

#method.patch {
  color: #a855f7;
}

#method.delete {
  color: #ef4444;
}

/* Option colors */
#method option {
  background: #1e293b;
  color: #e5e7eb;
}

#method option[value="GET"],
#method option:nth-child(1) {
  color: #22c55e;
}

#method option[value="POST"],
#method option:nth-child(2) {
  color: #3b82f6;
}

#method option[value="PUT"],
#method option:nth-child(3) {
  color: #f59e0b;
}

#method option[value="PATCH"],
#method option:nth-child(4) {
  color: #a855f7;
}

#method option[value="DELETE"],
#method option:nth-child(5) {
  color: #ef4444;
}

/* ==============================
   Collection Runner
============================== */
.runner-container {
  padding: 10px 20px 10px 20px;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.runner-header {
  margin-bottom: 10px;
}

.runner-header h3 {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 4px;
}

.runner-header p {
  color: #94a3b8;
  margin-top: 0;
  margin-bottom: 10px;
}

.runner-results {
  margin-top: 12px;
  border-top: 1px solid #334155;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.runner-results h4 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #94a3b8;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.results-table-container {
  background: #1e293b;
  border-radius: 8px;
  border: 1px solid #334155;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.results-table th {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #334155;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.results-table td {
  padding: 12px;
  border-bottom: 1px solid #334155;
}

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

.status-badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
}

.status-badge.success {
  background: #10b981;
}

.status-badge.error {
  background: #ef4444;
}

.status-badge.warning {
  background: #f59e0b;
}

.method-tag {
  font-weight: 700;
  font-size: 0.75rem;
  margin-right: 8px;
}


.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  min-width: 250px;
  max-width: 350px;
  padding: 12px 20px;
  border-radius: 8px;
  background: #1f2937;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  animation: toastSlideIn 0.3s ease forwards;
  font-size: 14px;
  font-weight: 500;
  border-left: 4px solid #6366f1;
}

.toast.success {
  border-left-color: #10b981;
}

.toast.error {
  border-left-color: #ef4444;
}

.toast.info {
  border-left-color: #3b82f6;
}

.toast.hide {
  animation: toastFadeOut 0.3s ease forwards;
}

@keyframes toastSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastFadeOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

/* ==============================
   Sidebar Add Collection Button
============================== */
#addCollectionBtn {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: none;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 0;
  margin-right: 4px;
  transition: all 0.2s ease;
  line-height: 1;
}

#addCollectionBtn:hover {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  box-shadow: 0 6px 8px -1px rgba(0, 0, 0, 0.2), 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

/* ==============================
   Sidebar Globals Button
============================== */
#editGlobalsBtn {
  background: #f0b757;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 0;
  transition: all 0.2s ease;
  line-height: 1;
}

#editGlobalsBtn:hover {
  background: #f0b757;
  box-shadow: 0 6px 8px -1px rgba(0, 0, 0, 0.2), 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

/* ==============================
   Global Variables
============================== */
:root {
  --body-height: 50vh;
  --response-height: 42.2vh;

  /* Editor specific fonts */
  --code-font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  --editor-text-size-px: 17px;
  --editor-line-height: 1.5;
}