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

body {
  background-color: #1c2b22 !important;
  overflow-y: hidden;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 6vh;
  display: flex;
  align-items: center;
  gap: 2vw;
  padding-left: 1vw;

  background-color: #0f1b14;
  border-bottom: 1px solid #2a4031;
  z-index: 1000;
  /* Optional: ensures header stays on top */
}

.header h1 {
  margin: 0;
  color: #eaf7ea;
  font-size: 1.5rem;
  /* Optional: responsive text */
  white-space: nowrap;
  /* Prevent wrapping */
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  width: 30vw;
  height: 3vh;
}

.nav a {
  color: #eaf7ea;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease-in-out;
}

.nav a:hover {
  color: #cfe3cc;
  /* optional hover color */
}

.editor-header {
  width: 100vw;
  height: 6vh;
  display: flex;
  align-items: center;
  background-color: #0f1b14;
  border-bottom: 1px solid #2a4031;
  padding-left: 1vw;
  gap: 2vw;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.editor-title {
  color: #eaf7ea;
  margin: 0;
  white-space: nowrap;
  font-size: 1.5rem;
}

.editor-nav {
  display: flex;
  align-items: center;
  gap: 1vw;
}

.menu-tab {
  color: #eaf7ea;
  text-decoration: none;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  transition: background 0.2s;
  user-select: none;
}

.menu-tab:hover {
  background-color: #1a2b20;
  border-radius: 4px;
}

.menu-group {
  position: relative;
}

.menu-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #1e1e1e;
  border: 1px solid #2a4031;
  min-width: 220px;
  z-index: 999;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  padding: 4px 0;
}

.menu-option {
  padding: 6px 16px;
  color: #eaf7ea;
  font-size: 0.9rem;
  white-space: nowrap;
  cursor: pointer;
}

.menu-option:hover {
  background-color: #2a4031;
}

.menu-search {
  padding: 8px 12px;
  background-color: #1e1e1e;
  border-bottom: 1px solid #2a4031;
}

.search-input {
  width: 100%;
  padding: 6px 10px;
  border: none;
  border-radius: 4px;
  background-color: #2a2a2a;
  color: #eaf7ea;
  font-size: 0.9rem;
}

.search-input::placeholder {
  color: #ccc;
}

.search-input:focus {
  outline: 1px solid #6e8e59;
}

.menu-separator {
  border: none;
  border-top: 1px solid #2a4031;
  margin: 4px 0;
}

.context-menu {
  display: none;
  position: absolute;
  z-index: 10000;
  background-color: #1e1e1e;
  border: 1px solid #2a4031;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  padding: 4px 0;
  min-width: 160px;
  border-radius: 4px;
}

.context-item {
  padding: 6px 16px;
  color: #eaf7ea;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}

.context-item:hover {
  background-color: #2a4031;
}

.context-separator {
  height: 1px;
  background-color: #2a4031;
  margin: 4px 0;
}

.main {
  width: 100vw;
  min-height: 94vh;
  background-color: #1c2b22;
  margin-top: 6vh;
  display: flex;
  position: relative;
}

.sidebar {
  width: 4vw;
  height: 94vh;
  border-right: 1px solid #2a4031;
  background-color: #0f1b14;
  position: fixed;
  top: 6vh;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 10;
}

.asideIcons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  height: 35vh;
  /* background-color: crimson; */
  padding: 0.7vw;
}

.asideIcons i {
  font-size: 1.8vw;
  color: #a9d6b3;
}

.asideUserIcon {
  position: relative;

  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  height: 12vh;
  padding: 0.7vw;
  /* background-color: crimson; */
  margin-bottom: 1vw;
}

.asideUserIcon i {
  font-size: 1.8vw;
  color: #a9d6b3;
}

.left {
  left: 25vw !important;
}

.codePart {
  margin-left: 4vw;
  width: calc(100vw - 4vw);
  height: 94vh;
  top: 0;
  left: 0;
  /* border: 1px solid red; */
  background-color: #1e1e1e;
  display: flex;
  flex-direction: column;
  position: absolute;
}

.tabs {
  width: 100%;
  height: 5vh;
  border-bottom: 1px solid #2a4031;
  flex-wrap: nowrap;
  /* background-color: green; */
  display: flex;
  overflow: auto;
  align-items: center;
}

.tab {
  width: 10vw;
  height: 100%;
  border: 0.5px solid #2a4031;
  /* background-color: pink; */
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  cursor: pointer;
}

.tab i {
  font-size: 1vw;
  color: #eaf7ea;
}

.tab p {
  font-size: 1vw;
  color: #a9d6b3;
}

.codeContainer {
  flex: 1;
  width: 100%;
  height: 100%;
  overflow: auto;
  padding: 1vw;
  /* background-color: #1e1e1e; */
}

.welcomePart {
  width: 100%;
  height: 100%;
  /* background-color: aquamarine; */
  display: flex;
  justify-content: center;
  gap: 4vw;
  align-items: center;
}

.welcomeFirstDiv {
  width: 30vw;
  height: 60vh;
  display: flex;
  gap: 2vw;
  justify-content: space-evenly;
  align-items: flex-start;
  flex-direction: column;
}

.welcomeFirstDivFDiv {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
  width: 30vw;
  height: max-content;
  /* background-color: blue; */
}

.welcomeFirstDivFDiv h1 {
  font-size: clamp(1.8rem, 5vw, 4rem);
  margin: 0;
  /* optional: reset default margins */
  color: #eaf7ea;
}

.welcomeFirstDivFDiv h5 {
  font-size: clamp(1rem, 1.5vw, 2rem);
  margin: 0;
  /* optional: reset default margins */
  font-weight: 300;
  color: #a9d6b3;
}

/* Common styles for section blocks */
.welcomeFirstDivSDiv,
.welcomeFirstDivThDiv {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 30vw;
  height: max-content;
  gap: 0.3vw;
  /* optional gap between children */
}

/* Common heading style */
.welcomeFirstDivSDiv h4,
.welcomeFirstDivThDiv h4 {
  font-size: 1.5vw;
  margin: 0;
  color: #a9d6b3;
  font-weight: bolder;
}

/* Common link style */
.welcomeFirstDivSDiv a,
.welcomeFirstDivThDiv a {
  font-size: 1vw;
  text-decoration: none;
  color: #45e18c;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.welcomeSecondDiv {
  width: 30vw;
  display: flex;
  flex-direction: column;
  gap: 1vw;
}

.imageGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1vw;
}

.imageGrid img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0.5vw;
}

.welcomeSecondDiv p {
  font-size: 0.9vw;
  line-height: 1.5;
  color: #a9d6b3;
  margin: 0;
}

.folderSideBarLeft {
  left: 4vw !important;
}

/* Sidebar Container */
.folderSideBar,
.searchSidebar,
.repository-sidebar,
.debugSidebar,
.extensionSidebar {
  position: fixed;
  left: -40vw;
  z-index: 1;
  width: 25vw;
  height: 94vh;
  background-color: #0f1b14;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow-y: auto;
}

/* Explorer Header */
.explorerHeader,
.searchSidebarHeader,
.repository-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4vh;
  padding: 0 0.5vw;
  box-sizing: border-box;
}

.explorerTitle p,
.searchSidebarHeaderTitle p,
.repository-sidebar-title p {
  margin: 0;
  font-size: 0.9vw;
  color: #eaf7ea;
}

.explorerTitle span {
  font-weight: 500;
  color: #a9d6b3;
}

.explorerActions {
  display: flex;
  gap: 0.5vw;
  background: none;
}

.explorerActions i {
  font-size: 1vw;
  cursor: pointer;
  color: #a9d6b3;
  transition: color var(--transition-fast);
}

.explorerActions i:hover {
  color: #eaf7ea;
}

/* Explorer Stack Group */
.file-explorer-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Individual Explorer Block */
.file-explorer {
  min-height: 90vh;
  /* ✅ Make it clickable even when empty */
  width: 100%;
  font-family: "Fira Code", Consolas, monospace;
  color: #eaf7ea;
  box-sizing: border-box;
}

.activeFileExplorerRoot {
  border: 1px solid blue;
}

/* Folder Entry */
.folder {
  width: 100%;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  user-select: none;
  transition: background-color var(--transition-fast),
    transform var(--transition-fast);
}

.folder.opened {
  color: #a9d6b3;
  transform: scale(1.02);
  font-size: 1rem;
  font-weight: 600;
}

/* Toggle arrow */
.toggle-arrow {
  font-size: 0.8rem;
  transition: transform var(--transition-fast);
}

/* Files inside folder */
.files {
  display: none;
  margin-left: 1.2rem;
  padding-top: 0.1rem;
  box-sizing: border-box;
  transition: all var(--transition-fast);
}

/* File Entry */
.file {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.85rem;
  border-radius: 4px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color var(--transition-fast),
    color var(--transition-fast);
  width: 100%;
  box-sizing: border-box;
}

.file:hover {
  background-color: var(--file-hover-bg);
  color: var(--text-primary);
}

.file.active {
  background-color: var(--header-bg);
  color: var(--text-primary);
}

.inline-input {
  background: transparent;
  border: none;
  outline: none;
  color: #eaf7ea;
  font-size: 0.85rem;
  flex: 1;
  padding: 0.25rem 0.3rem;
}

.new-file-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0.6rem;
}

.searchInputsAndResultsContainer {
  padding: 0.5rem;
  font-family: Consolas, monospace;
  background-color: #1c2b22;
  /* Surface */
  color: #eaf7ea;
  /* Text primary */
  font-size: 0.8rem;
  border: 1px solid #2a4031;
  /* Border */
  box-sizing: border-box;
}

.search-controls {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.search-top-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.input-group {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.input-group input {
  flex: 1;
  padding: 0.3rem 0.4rem;
  background-color: #0f1b14;
  /* Background main */
  border: 1px solid #2a4031;
  /* Border */
  border-radius: 4px;
  color: #eaf7ea;
  /* Text primary */
  font-size: 0.75rem;
  outline: none;
}

.input-group input::placeholder {
  color: #a9d6b3;
  /* Text secondary */
}

.input-group i {
  font-size: 0.8rem;
  cursor: pointer;
  color: #a9d6b3;
  /* Text secondary */
  transition: color 0.2s ease;
}

.input-group i:hover {
  color: #2ecc71;
  /* Accent */
}

.new-file-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.85rem;
  border-radius: 4px;
  color: var(--text-secondary, #ccc);
  background-color: var(--file-bg, #1e1e1e);
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 0.2rem;
}

.new-file-input i {
  font-size: 1rem;
  color: var(--text-secondary, #aaa);
}

.new-file-input input {
  background: transparent;
  border: none;
  border-bottom: 1px solid #666;
  color: #eee;
  font-family: "Fira Code", Consolas, monospace;
  font-size: 0.85rem;
  outline: none;
  width: 100%;
  padding: 0.2rem 0;
  transition: border-color 0.2s;
}

.new-file-input input:focus {
  border-color: var(--primary-color, #6e8e59);
}

.folder-create-input {
  background-color: transparent;
  border: none;
  border-bottom: 1px dashed #999;
  color: #fff;
  padding: 2px 4px;
  font-size: 0.85rem;
  outline: none;
  width: 70%;
}

.new-folder-input i {
  color: #ffcd50;
}

.toggle-replace {
  font-size: 0.9rem;
  color: #a9d6b3;
  /* Text secondary */
}

.replace-indent {
  display: inline-block;
  width: 1rem;
}

.hidden {
  display: none;
}

.search-results {
  margin-top: 0.4rem;
  /* max-height: 8vh; */
  overflow-y: auto;
  background-color: #0f1b14;
  /* Background */
  border: 1px solid #2a4031;
  border-radius: 4px;
  padding: 0.3rem 0.4rem;
  font-size: 0.75rem;
  color: #a9d6b3;
  /* Text secondary */
}

.search-result-item {
  margin-bottom: 0.4rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #2a4031;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-result-item:hover {
  background-color: #1c2b22;
}

.search-result-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: #eaf7ea;
  margin-bottom: 0.2rem;
}

.file-name {
  font-size: 0.75rem;
}

.result-snippet {
  display: flex;
  gap: 0.3rem;
  font-size: 0.7rem;
  color: #a9d6b3;
  line-height: 1.3;
}

.line-num {
  color: #2ecc71;
  min-width: 3rem;
}

.code-preview mark {
  background-color: transparent;
  color: #2ecc71;
  font-weight: bold;
}

.dropdown-container {
  position: relative;
  display: inline-block;
}

.dots-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #ccc;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
}

.dropdown-menu {
  position: absolute;
  top: 2.2rem;
  right: 0;
  background-color: #2a2a2a;
  color: white;
  padding: 0.3rem 0;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  min-width: 160px;
  z-index: 1000;
  display: none;
  flex-direction: column;
}

.dropdown-menu.show {
  display: flex;
}

.dropdown-item {
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.dropdown-item:hover {
  background-color: #3a3a3a;
}

.dropdown-item .check {
  color: white;
  visibility: hidden;
}

.dropdown-item.selected .check {
  visibility: visible;
}

.repository-content {
  padding: 0.6rem;
  background-color: #1c2b22;
  color: #eaf7ea;
  font-family: Consolas, monospace;
  font-size: 0.8rem;
  height: 100%;
  overflow-y: auto;
}

.repo-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  color: #eaf7ea;
}

.repo-arrow {
  transition: transform 0.2s ease;
  font-size: 0.8rem;
}

.repo-details {
  margin-top: 0.5rem;
  padding-left: 1.4rem;
  display: none;
}

.repo-item {
  margin-bottom: 1rem;
}

.repo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.branch-name {
  color: #a9d6b3;
  font-size: 0.7rem;
  margin-left: 0.4rem;
}

.repo-actions {
  display: flex;
  gap: 0.4rem;
}

.repo-actions i {
  font-size: 0.85rem;
  color: #a9d6b3;
  cursor: pointer;
  transition: color 0.2s ease;
}

.repo-actions i:hover {
  color: #2ecc71;
}

.repo-path {
  margin-top: 0.2rem;
  font-size: 0.7rem;
  color: #a9d6b3;
}

.repo-arrow.rotated {
  transform: rotate(90deg);
}

.more-menu-wrapper {
  position: relative;
}

.more-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #1c2b22;
  border: 1px solid #2a4031;
  padding: 0.5rem;
  z-index: 10000;
  min-width: 220px;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.more-menu.hidden {
  display: none;
}

.menu-item {
  padding: 0.35rem 0.5rem;
  color: #eaf7ea;
  cursor: pointer;
  border-radius: 3px;
}

.menu-item:hover {
  background: #2a4031;
}

.menu-item.has-submenu {
  position: relative;
}

.menu-item.has-submenu .submenu {
  display: none;
  position: absolute;
  top: 0;
  left: -100%;
  margin-left: 0.2rem;
  background: #1c2b22;
  border: 1px solid #2a4031;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  z-index: 10001;
}

.menu-item.has-submenu.open-submenu .submenu {
  display: block;
}

.menu-item.has-submenu:hover .submenu {
  display: block;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 10px;
  color: #eaf7ea;
  cursor: pointer;
}

.menu-item:hover {
  background-color: #1c2b22;
}

.arrow-icon {
  font-size: 0.75rem;
  color: #a9d6b3;
}

.changes-content {
  padding: 0.5rem;
  background-color: #1c2b22;
  border-top: 1px solid #2a4031;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.commit-message-input {
  padding: 0.4rem 0.6rem;
  background-color: #0f1b14;
  color: #eaf7ea;
  border: 1px solid #2a4031;
  border-radius: 4px;
  font-size: 0.8rem;
  outline: none;
}

.commit-message-input::placeholder {
  color: #a9d6b3;
}

.commit-btn {
  align-self: flex-start;
  padding: 0.3rem 0.8rem;
  background-color: #2ecc71;
  color: #0f1b14;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.commit-btn:hover {
  background-color: #27c169;
}

.repo-section {
  margin-top: 1rem;
}

.repo-header {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  padding: 4px 8px;
}

.repo-arrow {
  transition: transform 0.2s ease;
}

.repo-arrow.rotated {
  transform: rotate(90deg);
}

.changes-content {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.commit-message-input {
  background: #1e1e1e;
  color: #ccc;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 6px 8px;
}

.commit-btn {
  width: 100%;
  /* 👈 Full width */
  background: #005f9e;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  cursor: pointer;
  text-align: center;
  font-weight: bold;
}

.hidden {
  display: none;
}

#gitgraph {
  width: 100%;
  max-width: 420px;
  min-height: max-content;
  margin: 1.5rem auto;
  padding: 1rem 0;
  border: 1px solid #333;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  overflow: auto;
}

.repo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: #1c2b22;
  color: #eaf7ea;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
}

.repo-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.repo-title p {
  margin: 0;
  color: #d4d4d4;
}

.graph-toolbar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  color: #ccc;
}

.change-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1c2b22;
  color: #eaf7ea;
  padding: 0.4rem 0.8rem;
  border-bottom: 1px solid #2a4031;
  font-size: 0.85rem;
  border-radius: 4px;
}

.change-info {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.red-dot {
  color: #ff3b3b;
  font-size: 0.6rem;
}

.filename {
  font-weight: 500;
  color: #a9d6b3;
}

.change-path {
  color: #a9d6b3;
  font-size: 0.75rem;
}

.change-count {
  background-color: #2ecc71;
  color: #0f1b14;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-weight: bold;
  font-size: 0.75rem;
}

.change-checkbox {
  accent-color: #2ecc71;
  width: 14px;
  height: 14px;
  cursor: pointer;
  margin: 0;
}

.ext-menu-wrapper {
  position: relative;
  display: inline-block;
}

.ext-menu-button {
  background: none;
  border: none;
  color: #eaf7ea;
  cursor: pointer;
  padding: 0.4rem;
}

.ext-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #1c2b22;
  border: 1px solid #2a4031;
  border-radius: 4px;
  min-width: 260px;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  padding: 0.3rem 0;
}

.ext-dropdown.ext-show {
  display: block;
}

.ext-item {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0.4rem 0.75rem;
  color: #a9d6b3;
  font-size: 0.9rem;
  cursor: pointer;
  gap: 0.5rem;
}

.ext-item:hover {
  background-color: #2a4031;
}

.ext-check {
  color: #2ecc71;
  visibility: hidden;
}

.ext-item.ext-selected .ext-check {
  visibility: visible;
}

.ext-has-submenu {
  position: relative;
}

.ext-submenu {
  display: none;
  position: absolute;
  left: -50%;
  top: 0;
  background-color: #1c2b22;
  border: 1px solid #2a4031;
  border-radius: 4px;
  min-width: 180px;
  z-index: 10001;
}

.ext-has-submenu:hover .ext-submenu {
  display: block;
}

/* مرکزچین کامل صفحه */
.filter-wrapper-center {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  width: 100%;
}

/* جعبه ورودی تمام‌عرض در حد معقول */
.filter-input-wrapper {
  display: flex;
  align-items: center;
  background-color: #1c2b22;
  border: 1px solid #2a4031;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  width: 100%;
  max-width: 500px;
  gap: 0.5rem;
}

/* ورودی */
.filter-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #eaf7ea;
  font-size: 0.9rem;
}

/* آیکن فیلتر */
.filter-icon {
  color: #a9d6b3;
  font-size: 1.1rem;
  cursor: pointer;
}

.ext-panel {
  width: 95%;
  margin: 1rem auto;
  /* ✅ centers the panel */
  background: #1c2b22;
  border: 1px solid #2a4031;
  border-radius: 6px;
  padding: 0.6rem 1rem;
  color: #eaf7ea;
  font-size: 0.85rem;
}

.ext-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.ext-header p {
  margin: 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ext-count {
  background: #2ecc71;
  color: #0f1b14;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}

.ext-list {
  display: none;
  flex-direction: column;
  margin-top: 0.8rem;
  gap: 0.6rem;
}

.ext-item {
  display: flex;
  background: #0f1b14;
  border: 1px solid #2a4031;
  border-radius: 4px;
  padding: 0.75rem;
  gap: 0.8rem;
  position: relative;
}

.ext-logo {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background-color: #111;
  object-fit: cover;
}

.ext-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.ext-title {
  font-weight: bold;
  color: #fff;
  font-size: 0.95rem;
}

.ext-description {
  font-size: 0.78rem;
  color: #a9d6b3;
  margin: 0.3rem 0;
}

.ext-publisher {
  font-size: 0.72rem;
  color: #8aa58f;
}

.ext-btn {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  background: #2ecc71;
  color: #0f1b14;
  font-weight: 600;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

.user-menu {
  position: absolute;
  bottom: 70%;
  left: 80%;
  background-color: #1c2b22;
  border: 1px solid #2a4031;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  min-width: 240px;
  padding: 0.4rem 0;
  display: none;
  z-index: 10001;
}

.user-item {
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  color: #a9d6b3;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-item:hover {
  background-color: #2a4031;
}

.has-submenu {
  position: relative;
}

.arrow-icon {
  margin-left: auto;
  font-size: 1rem !important;
  color: #aaa;
}

.user-submenu {
  display: none;
  position: absolute;
  bottom: 30%;
  left: 90%;
  background-color: #0f1b14;
  border: 1px solid #2a4031;
  border-radius: 4px;
  min-width: 200px;
  z-index: 1000;
}

.has-submenu:hover .user-submenu {
  display: block;
}

.gear-menu {
  position: absolute;
  background-color: #1c2b22;
  border: 1px solid #2a4031;
  border-radius: 6px;
  bottom: 40%;
  left: 75%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  min-width: 240px;
  padding: 0.4rem 0;
  display: none;
  z-index: 120000;
}

.gear-item {
  padding: 0.5rem 1rem;
  color: #eaf7ea;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gear-item:hover {
  background-color: #2a4031;
}

.gear-check {
  color: #2ecc71;
  font-weight: bold;
}

.gear-item.selected .gear-check {
  visibility: visible;
}

.vst-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 20vh;
  background-color: #1e1e1e;
  color: #cfcfcf;
  font-family: monospace;
}

.vst-header {
  background-color: #2c2c2c;
  color: #ddd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #444;
}

.vst-tabs {
  display: flex;
  gap: 1rem;
}

.vst-tab {
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.9rem;
}

.vst-tab:hover,
.vst-tab.active {
  background-color: #444;
}

.vst-header-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 1.1rem;
  cursor: pointer;
}

.vst-header-icons i {
  color: #bbb;
}

.vst-header-icons i:hover {
  color: #ff4d4d;
}

.vst-terminal {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  box-sizing: border-box;
}

.vst-line {
  display: flex;
  flex-wrap: wrap;
}

.vst-prompt {
  color: #00ff00;
}

.vst-input {
  flex: 1;
  outline: none;
  border: none;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 1rem;
}

/* peyman */

.bk-cover {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000000c4;
  z-index: 99999999;
  display: none;
}

.file-dialog {
  background-color: #1e1e1e;
  color: #f1f1f1;
  font-family: "Segoe UI", sans-serif;
  border-radius: 6px;
  width: 700px;
  max-height: 500px;
  overflow-y: auto;
  padding: 1rem;
  position: fixed;
  top: 18vh;
  left: 30vw;
  z-index: 999999999;
  display: none;
}

.file-dialog-header {
  display: grid;
  grid-template-columns: 3fr 2fr 1fr 1fr;
  font-weight: bold;
  border-bottom: 1px solid #333;
  padding-bottom: 5px;
  margin-bottom: 5px;
}

.file-item {
  display: grid;
  grid-template-columns: 3fr 2fr 1fr 1fr;
  padding: 5px 0;
  border-bottom: 1px solid #2c2c2c;
  cursor: pointer;
}

.file-item:hover {
  background-color: #2a2a2a;
}

.icon {
  margin-right: 8px;
}

.directory .icon::before {
  content: "📁 ";
}

.file .icon::before {
  content: "📄 ";
}

/* QR scaner  */

.scanner-panel {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 350px;
  background: #121212;
  border: 1px solid #444;
  border-radius: 8px;
  z-index: 9999;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
  padding: 10px;
  color: #0f0;
}
.scanner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #333;
}
.scanner-header button {
  background: transparent;
  color: #f66;
  border: none;
  font-size: 18px;
  cursor: pointer;
}
.defaultCodePart {
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  box-sizing: border-box;
}

.defaultCodePartImgContainer {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 3 / 2;
  border-radius: 1.25rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.defaultCodePartImgContainer img {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: contain;
  margin-bottom: 1.5rem;
}

.defaultCodePartImgContainer h3 {
  font-size: 3rem; /* Slightly smaller than before */
  font-weight: 800; /* Still very bold */
  color: #ffffff;
  margin: 0;
  text-align: left;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.shortcut-panel {
  font-family: sans-serif;
  color: #a9d6b3;
  width: 400px;
  margin: 2rem auto;
  padding: 1rem;
  border-radius: 6px;
  background: transparent;
}

.shortcut-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.shortcut-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  width: 100%;
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  box-sizing: border-box;
}

.shortcut-text {
  width: 50%;
  color: #a9d6b3;
  font-size: 0.8rem;
  text-align: right;
  padding-right: 0.5rem;
}

.shortcut-keys {
  width: 50%;
  color: #a9d6b3;
  text-align: left;
  padding-left: 0.5rem;
}

.shortcut-keys kbd {
  font-family: monospace;
  background: transparent;
  color: #a9d6b3;
  border: 1px solid #a9d6b3;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  margin: 0 2px;
}

.codingPart {
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  background-color: #1e1e1e;
}

.codeEditor {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
}
iframe {
  width: 100%;
  height: 100%;
}

.codeEditor h3 {
  font-size: 2.5vw;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
}

/* Active tab style */
.tab.active {
  background-color: transparent;
  border-bottom: 1px solid #cfe3cc; /* subtle green-ish line */
  color: #4a7c59; /* soft green tone */
  font-weight: 700;
  font-size: 1.05rem; /* slightly larger */
}

/* Active file in file explorer */
.file.active {
  color: #4a7c59;
  font-weight: 500;
}
iframe {
  width: 100%;
  height: 100%;
}

.tab {
  position: relative;
}

.tab.dragging {
  opacity: 0.6;
  transform: scale(0.98);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  cursor: grab;
  z-index: 1000;
}

.tab.drop-left::before,
.tab.drop-right::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #43d78a;
  z-index: 10;
}

.tab.drop-left::before {
  left: 0;
}

.tab.drop-right::after {
  right: 0;
}

.tabs-container {
  position: relative;
}

.tabs-container.drop-end::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #43d78a;
  z-index: 10;
}
