.executor-page {
  background: var(--night-bg);
  min-height: 100vh;
  overflow-y: auto;
  position: relative;
  
  /* Custom Scrollbar Styles */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 51, 102, 0.5) rgba(0, 0, 0, 0.2);
}

/* Webkit scrollbar styles */
.executor-page::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.executor-page::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.executor-page::-webkit-scrollbar-thumb {
  background: rgba(255, 51, 102, 0.5);
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.executor-page::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 51, 102, 0.7);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.executor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(26, 26, 46, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.logo-small {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-small h1 {
  font-size: 1.5rem;
  color: var(--text-color);
  background: linear-gradient(45deg, var(--primary-color), #ff66b2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.toolbar {
  display: flex;
  gap: 0.8rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.8rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.tool-button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  padding: 0.8rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  backdrop-filter: blur(5px);
  font-size: 1.1rem;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-button:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  border-color: var(--primary-color);
  box-shadow: 0 5px 15px rgba(255, 51, 102, 0.2);
}

.executor-main {
  padding: 1rem 2rem 4rem 2rem;
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0.8rem;
  background: rgba(26, 26, 46, 0.85);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) transparent;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.tabs:hover {
  border-color: rgba(255, 51, 102, 0.3);
}

.tab {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  min-width: 140px;
  justify-content: space-between;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.tab.active {
  background: rgba(255, 51, 102, 0.15);
  backdrop-filter: blur(15px);
}

.code-area {
  flex: 1;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.editor-container {
  display: flex;
  height: calc(100vh - 200px);
  min-height: 400px;
  background: rgba(26, 26, 46, 0.85);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
}

.editor-container::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.05), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  pointer-events: none;
}

.minimap {
  width: 120px;
  background: rgba(0, 0, 0, 0.2);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.minimap-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  transform: scale(0.2);
  transform-origin: top right;
  pointer-events: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 2px;
  line-height: 3px;
  color: rgba(255, 255, 255, 0.5);
  white-space: pre;
  overflow: hidden;
}

.minimap-viewport {
  position: absolute;
  width: 120px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  pointer-events: none;
  transition: top 0.1s ease;
}

.CodeMirror {
  height: 100% !important;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
  background: transparent !important;
}

.CodeMirror-gutters {
  background: rgba(0, 0, 0, 0.2) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
  transition: all 0.3s ease;
}

.CodeMirror-linenumber {
  color: rgba(255, 255, 255, 0.3) !important;
  padding: 0 15px 0 5px !important;
}

.CodeMirror-lines {
  padding: 10px 0;
}

.CodeMirror-line {
  padding: 0 15px;
}

.CodeMirror-cursor {
  border-left: 2px solid var(--primary-color) !important;
}

.CodeMirror-selected {
  background: rgba(255, 51, 102, 0.2) !important;
}

.CodeMirror-scrollbar-filler {
  background: transparent !important;
}

.CodeMirror::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.CodeMirror::-webkit-scrollbar-track {
  background: transparent;
}

.CodeMirror::-webkit-scrollbar-thumb {
  background: rgba(255, 51, 102, 0.3);
  border-radius: 4px;
}

.CodeMirror::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 51, 102, 0.5);
}

.CodeMirror-vscrollbar, .CodeMirror-hscrollbar {
  background: transparent !important;
}

.CodeMirror-vscrollbar::-webkit-scrollbar,
.CodeMirror-hscrollbar::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.CodeMirror-vscrollbar::-webkit-scrollbar-track,
.CodeMirror-hscrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.CodeMirror-vscrollbar::-webkit-scrollbar-thumb,
.CodeMirror-hscrollbar::-webkit-scrollbar-thumb {
  background: rgba(255, 51, 102, 0.3);
  border-radius: 4px;
}

.CodeMirror-vscrollbar::-webkit-scrollbar-thumb:hover,
.CodeMirror-hscrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 51, 102, 0.5);
}

.tab span {
  cursor: text;
  padding: 2px 4px;
  border-radius: 4px;
}

.tab span:hover {
  background: rgba(255, 255, 255, 0.1);
}

.tab input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--primary-color);
  color: var(--text-color);
  padding: 2px 4px;
  border-radius: 4px;
  font-size: inherit;
  width: 100px;
  outline: none;
}

.close-tab {
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
  padding: 4px;
  border-radius: 4px;
}

.close-tab:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

.new-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: var(--text-color);
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 140px;
}

.new-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 1000;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--night-bg);
  padding: 2rem;
  border-radius: 12px;
  min-width: 400px;
  max-width: 600px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.close-modal {
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  font-size: 1.2rem;
}

.api-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.ai-input-group {
  margin-bottom: 2rem;
  background: rgba(26, 26, 46, 0.85);
  border-radius: 16px;
  padding: 1.5rem;
}

.input-wrapper {
  position: relative;
  margin-bottom: 1rem;
}

#aiPrompt {
  width: 100%;
  height: 120px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-color);
  resize: none;
}

.generate-button {
  position: absolute;
  bottom: -25px;
  right: 0;
  background: var(--primary-color);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.settings-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.setting-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.setting-item label {
  opacity: 0.8;
}

.setting-item select, .setting-item input[type="range"] {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem;
  border-radius: 8px;
  color: var(--text-color);
}

.code-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.action-button {
  color: white;
  background: transparent;
  border: 1px solid var(--primary-color) !important;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  background: rgba(255,51,102,0.05) !important;
}

.action-button:hover {
  background: rgba(255,51,102,0.15);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(255,51,102,0.3);
}

.action-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.1),
    transparent
  );
  transition: 0.5s;
}

.action-button:hover::before {
  left: 100%;
}

.loader-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: 12px;
  z-index: 100;
}

.loader-container.show {
  display: flex;
}

.loader-text span#timeEstimate {
  color: var(--primary-color);
  margin-left: 0.5rem;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

.loader-text {
  color: var(--text-color);
  font-size: 0.9rem;
}

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

.notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.9);
  border-radius: 12px;
  color: var(--text-color);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.notification.show {
  transform: translateY(0);
  opacity: 1;
}

.notification.error {
  background: rgba(255, 51, 102, 0.9);
}

.home-button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  padding: 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-right: 1rem;
}

.home-button:hover {
  background: var(--button-hover);
  transform: translateY(-2px);
  border-color: var(--primary-color);
  box-shadow: 0 5px 15px rgba(255, 51, 102, 0.2);
}

.background-heart {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  z-index: 0;
  opacity: 0.05;
  pointer-events: none;
}

.background-heart .broken-heart {
  width: 100%;
  height: 100%;
  filter: blur(1px);
}

@keyframes heart-beat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.background-heart .broken-heart {
  animation: heart-beat 2s infinite ease-in-out;
}

.heart-break-sequence {
  animation: break-sequence 10s infinite;
}

@keyframes break-sequence {
  0%, 80%, 100% { 
    transform: scale(1) rotate(0);
  }
  85% { 
    transform: scale(1.2) rotate(5deg);
  }
  90% {
    transform: scale(0.9) rotate(-5deg);
  }
  95% {
    transform: scale(1.1) rotate(0);
  }
}

.slider-container {
  flex: 1;
  position: relative;
  padding: 0.5rem 0;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  opacity: 0.8;
}

.temperature-badge {
  background: rgba(255,51,102,0.15);
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  margin-left: 1rem;
}

.glass-select {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid var(--primary-color) !important;
  padding: 0.5rem 1rem !important;
  border-radius: 8px !important;
  backdrop-filter: blur(10px);
}

.neon-hover {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.neon-hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, 
    rgba(255,51,102,0.3) 0%,
    transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.neon-hover:hover::before {
  opacity: 1;
}