:root {
  --bg-primary: #24242c;
  --bg-secondary: #2a2a36;
  --accent-primary: #0393cc;
  --accent-secondary: #003adb;
  --text-primary: #f5f5f5;
  --warning-text: #ff0;
  --text-secondary: #d1d1d1;
  --editor-bg: #19191f;
  --output-bg: #030303;
  --output-text: #00ff00;
  --error-text: #ff616e;
  --success-text: #696969;
  --border-radius: 2px;
  --shadow: 0 4px 6px #0000001a, 0 1px 3px #00000014;
  --button-shadow: 0 2px 4px #27272733;
  --transition-speed: 0.3s;
  --dragbar-bg: #7d7d80;
  --dragbar-hover: rgb(172, 172, 172);
  --editor-selection: hsla(224, 9%, 25%, 0.9);
  --focus-line: hsla(224, 9%, 25%, 0.3);
  --line-number-color: #ebebeb;
  --nav-icon-hover: #3b3b50;
  --file-icon: #ebebeb;
  --border-primary: #bababa;
  --bg-matching-bracket: rgba(159, 120, 120, 0.1);
  --loader-bg: #22222b;
  --loader-border: #525252;
  --loader-color: #3b3b3b;
  --loader-color-top: #fff;
}

.day {
  --bg-primary: #f5f5f5;
  --bg-secondary: #e9ecef;
  --editor-bg: #f8f9fa;
  --output-bg: #030303;
  --text-primary: #353131;
  --text-secondary: #495057;
  --output-text: #0f0f0f;
  --warning-text: #ff0000;
  --dragbar-bg: #aaaaaa;
  --dragbar-hover: #808080;
  --editor-selection: rgba(180, 200, 254, 0.8);
  --focus-line: rgba(180, 200, 254, 0.2);
  --bg-matching-bracket: rgba(180, 200, 254, 0.2);
  --line-number-color: #3d3d3d;
  --nav-icon-hover: #dfdfdf;
  --file-icon: #0066ff;
}

#mode {
  display: none;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Roboto', 'Segoe UI', sans-serif;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: background-color var(--transition-speed) ease;
}

nav {
  position: relative;
  user-select: none;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 999;
  flex-shrink: 0;
  background-color: var(--bg-secondary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
  height: 3.66rem;
}

.loader-parent {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0, 0.5);
  z-index: 999999;
}

.loader-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  border: 1px solid var(--loader-border);
  background: var(--loader-bg);
  border-radius: 10px;
  padding: 30px 30px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.loader {
  width: 50px;
  height: 50px;
  border: 5px solid var(--loader-color);
  border-top: 5px solid var(--loader-color-top);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

.title {
  padding-top: 15px;
  padding-left: 10px;
  text-align: center;
  color: var(--color-primary);
  font-size: 0.9rem;
}

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

  100% {
    transform: rotate(360deg);
  }
}

.main-container {
  display: flex;
  flex-direction: row;
  flex-grow: 1;
  overflow: hidden;
  background-color: var(--bg-primary);
}

.CodeMirror {
  height: 100%;
  font-size: 14px !important;
  border-radius: var(--border-radius);
  letter-spacing: 0.02rem;
  line-height: 1.5;
  padding: 1rem 1rem 0.8rem 0.2rem;
  background-color: var(--cmd-bg) !important;
  background-color: var(--editor-bg) !important;
}

.CodeMirror ::selection {
  background: var(--editor-selection) !important;
}

.CodeMirror-selected {
  background: var(--editor-selection) !important;
}

.CodeMirror-selectedtext {
  color: #ffffff !important;
}

.CodeMirror-gutters {
  background-color: var(--editor-bg) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding-right: 6px;
}

.CodeMirror-linenumber {
  color: var(--line-number-color) !important;
}

.cm-matchhighlight,
.CodeMirror-matchingbracket {
  background-color: var(--bg-matching-bracket) !important;
  border: 1px solid rgba(131, 131, 131, 0.8) !important;
  border-radius: 3px !important;
  text-decoration: none !important;
  padding: 0.05rem 0 0.15rem !important;
}

.CodeMirror-nonmatchingbracket {
  color: #ff0808 !important;
  font-weight: bold !important;
  background-color: rgba(255, 68, 68, 0.3);
  padding: 2px 0 5px !important;
  border-radius: 3px !important;
}

.CodeMirror-activeline .CodeMirror-line {
  background-color: var(--focus-line) !important;
}

.CodeMirror-focused .CodeMirror-activeline {
  background-color: var(--focus-line) !important;
}

.CodeMirror-activeline .CodeMirror-line,
.CodeMirror-activeline-background {
  background: none !important;
}

.CodeMirror-hscrollbar::-webkit-scrollbar {
  height: 5px;
}

.CodeMirror-hscrollbar::-webkit-scrollbar-thumb {
  background: rgba(100, 100, 100, 0.5);
  border-radius: 3px;
}

.CodeMirror-hscrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 100, 100, 0.8);
}

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

.CodeMirror-vscrollbar::-webkit-scrollbar {
  width: 5px;
}

.CodeMirror-vscrollbar::-webkit-scrollbar-thumb {
  background: rgba(100, 100, 100, 0.5);
  border-radius: 3px;
}

.CodeMirror-vscrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 100, 100, 0.8);
}

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

.CodeMirror-scrollbar-filler {
  display: none !important;
}

.invisible .scrollbar,
.slider {
  display: none !important;
}

#output {
  width: 100%;
  height: 100%;
  background: var(--output-bg);
  padding: 1.1rem 1.3rem;
  color: var(--output-text);
  border-radius: var(--border-radius);
  font-size: 14px !important;
  letter-spacing: 0.02rem;
  line-height: 1.5;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: none !important;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
  caret-color: var(--output-text);
  overflow: auto;
}

#output::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

#output::-webkit-scrollbar-track {
  background: transparent;
}

#output::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 3px;
}

#output:hover::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
}

#output::-webkit-scrollbar-corner {
  background: transparent;
}

#output .xterm-screen {
  width: 100% !important;
  height: 100% !important;
}

#output .xterm-viewport {
  width: 100% !important;
  height: 100% !important;
}

#output .xterm-viewport::-webkit-scrollbar {
  width: 6px;
}

#output .xterm-viewport::-webkit-scrollbar-track {
  background: transparent;
}

#output .xterm-viewport::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 3px;
}

#output .xterm-viewport:hover::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
}

.editor-container {
  padding: 0;
  overflow: hidden;
  border-radius: var(--border-radius);
  width: 100%;
  height: 100%;
  min-width: 350px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.output-container {
  padding: 0;
  overflow: hidden;
  border-radius: var(--border-radius);
  background-color: #000 !important;
  width: 100%;
  height: 100%;
  min-width: 350px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: none;
}

input[type='text'] {
  border: none !important;
  outline: none !important;
  background: var(--output-bg) !important;
  color: var(--output-text);
  padding: 0 3px;
  width: 100px;
  border-radius: 4px;
  margin-top: 8px;
  transition: border-color 0.2s;
}

/* Drag Bar Styling */

.dragbar {
  border-left: 1px solid var(--nav-border);
  width: 0;
  height: 100%;
  position: relative;
}

#dragbar {
  width: 5px;
  height: 35px;
  top: 50%;
  left: -3px;
  transform: translateY(-50%);
  cursor: ew-resize;
  position: absolute;
  transition: background 0.2s ease, width 0.2s ease;
  border-radius: 2px;
  z-index: 9999;
  background-color: var(--dragbar-bg);
}

#dragbar:active,
#dragbar:hover {
  background: var(--dragbar-hover);
}

label {
  cursor: pointer;
}

#dragbar-horizontal {
  height: 3px;
  cursor: ns-resize;
  background: var(--dragbar-bg);
  width: 100%;
  transition: background 0.6s;
  display: none;
  border-radius: 2px;
}

#dragbar-horizontal:hover {
  background: var(--dragbar-hover);
  height: 6px;
}

label {
  cursor: pointer;
}

select {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  width: fit-content;
  font-family: Arial, Helvetica, sans-serif;
}

select::-ms-expand {
  display: none;
}

select:focus,
select:hover {
  outline: none;
  background-color: var(--nav-icon-hover);
  cursor: pointer;
}

/* Button Styling */
.btn {
  height: 40px;
  border-radius: 6px;
  padding: 8px 15px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--button-shadow);
  border: none;
  cursor: pointer;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg,
      var(--accent-primary),
      var(--accent-secondary));
  color: white;
}

.btn-primary:hover {
  filter: brightness(1.1);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--nav-icon-hover);
}

.btn i {
  margin-right: 8px;
}

/* File name styling */
.file-name {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 10px 15px;
  border-radius: 6px;
  max-width: fit-content;
  font-size: 14px;
  overflow: hidden;
}

.file-name i {
  font-size: 18px;
  margin-right: 8px;
  color: var(--file-icon);
}

.output-btn {
  font-size: 14px;
  margin-left: 6px;
  display: none;
}

/* Status bar */
.status-bar {
  background-color: var(--bg-secondary);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 999;
}

.status-item {
  display: flex;
  align-items: center;
  margin-right: 16px;
}

.status-item i {
  margin-right: 6px;
  font-size: 12px;
}

.model-div {
  position: absolute;
  top: 6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  z-index: 100000;
  height: fit-content;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--dragbar-bg);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.model-close {
  font-size: 25px;
  cursor: pointer;
  padding: 0 10px 3px;
  align-self: flex-end;
  user-select: none;
  float: right;
  border-radius: 50%;
}

.model-copy {
  width: 100%;
  padding: 15px 0;
  margin: 0 !important;
  display: flex;
  border-top: 1px solid var(--dragbar-bg);
  justify-content: center;
}

.model-img {
  flex: 1;
  width: 100%;
  border-top: 1px solid var(--dragbar-bg);
  overflow: hidden;
}

.model-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Toast styling */
.toast {
  position: fixed;
  bottom: 50px;
  right: 24px;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  z-index: 9999;
  animation: slideIn 0.3s ease, fadeOut 0.5s ease 2.5s forwards;
  border-left: 4px solid var(--accent-secondary);
}

.toast i {
  margin-right: 12px;
  color: var(--accent-secondary);
}

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

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

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Output Styling */
.output-error {
  color: var(--error-text);
}

.output-success {
  color: var(--success-text);
  font-size: 14px;
}

.output-info {
  color: #4dabf7;
}

.output-warning {
  color: var(--warning-text);
  font-size: 14px;
}

/* Loading indicator */
.loading-indicator {
  display: inline-block;
  position: relative;
  width: 12px;
  height: 12px;
}

.loading-indicator:after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--output-text);
  border-color: var(--output-text) transparent var(--output-text) transparent;
  animation: loading 1.2s linear infinite;
}

@keyframes loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

#menu-toggle {
  display: none;
}

.run-code-mobile {
  display: none;
}

.btn-large {
  display: none !important;
}

.btn-con {
  z-index: 99999;
  padding: 5px;
}

.btn-con .btn-con-inner {
  display: flex;
  flex-direction: row;
}

#toggle-view i {
  padding-top: 3px;
}

.btn-con .btn-con-inner button i {
  padding-top: 2px;
}

.btn-con .btn-con-inner button {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-right: 6px;
  padding: 10px 18px;
  align-items: center;
  overflow: hidden;
  font-size: 14px;
  text-align: center;
}

label {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.btn-con .btn-con-inner select {
  font-size: 14px;
  padding: 10px 12px;
  overflow: hidden;
  font-size: 14px;
  text-align: justify;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.btn-ab {
  display: flex;
  position: absolute;
  bottom: 3.8rem;
  right: 1.8rem;
  gap: .5rem;
}

.btn-ab button i {
  font-size: 14px;
  padding-top: 3px;
}

.btn-ab button {
  font-size: 14px;
}

.run-code {
  width: 78px;
}

.btn-con i {
  margin-left: 6px;
}

.blur {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 99;
  display: none;
}

.nav-right-group {
  display: none;
}

/* Sidebar Styling */
.sidebar {
  width: 55px;
  min-width: 55px;
  background-color: var(--bg-secondary);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-list {
  list-style-type: none;
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sidebar-item {
  width: 36px;
  height: 36px;
  margin-bottom: 4px;
  padding: 0;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  box-shadow: var(--button-shadow);
  border: 1px solid transparent;
}

.sidebar-item:hover {
  background-color: var(--nav-icon-hover);
  color: var(--text-primary);
  transform: translateX(4px);
}

.sidebar-item.active {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.sidebar-item svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Responsive styles */
@media (max-width: 768px) {

  .sidebar {
    position: absolute;
    height: 100%;
    left: -55px;
    z-index: 101;
  }

  .sidebar.mobile-open {
    left: 0;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.5);
  }

  .editor-container,
  .output-container {
    width: 100% !important;
    height: 50%;
  }

  #output {
    padding: 1.3rem 1rem;
  }

  #dragbar {
    display: none;
  }

  #dragbar-horizontal {
    display: block;
  }

  .output-btn {
    display: flex;
  }

  .editor-fullscreen,
  .output-fullscreen {
    height: calc(100vh - 4rem - 1rem) !important;
  }

  .file-name {
    max-width: 130px;
  }

  .file-name {
    padding: 7px 10px 8px;
  }

  .file-name i {
    font-size: 19px;
  }

  .hidden-mobile {
    display: block !important;
  }

  .nav-right-group {
    display: flex;
  }

  #menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 33px;
    cursor: pointer;
    padding: 4px 10px 0;
  }

  .btn-large {
    position: absolute;
    right: 5rem;
    display: flex !important;
    margin: 0 !important;
  }

  .btn-large button i {
    font-size: 14px;
  }

  .btn-large button {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 7px 12px 8px;
    border-radius: 6px;
    font-size: 14px;
    overflow: hidden;
  }

  .closeX {
    position: absolute;
    top: 0;
    right: 10px;
    z-index: 999999;
    font-size: 30px;
    padding: 0 5px;
    color: #b3b3b3;
    cursor: pointer;
  }

  .closeX:hover {
    color: #727272;
  }

  .btn-con {
    position: absolute;
    top: 6rem;
    right: 1rem;
    top: 5rem;
    background: var(--bg-primary);
    padding: 0 10px 10px;
    border-radius: 6px;
    z-index: 99999;
    display: none;
    border: 1px solid var(--dragbar-bg);
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.5);
  }

  .btn-con .btn-con-inner {
    padding: 50px 5px 5px;
    flex-direction: column;
    width: 180px;
  }

  .btn-con .btn-con-inner button i {
    padding-top: 3px;
  }

  .btn-con .btn-con-inner button {
    margin-bottom: 8px;
  }

  .btn-con .btn-con-inner button,
  select {
    height: 42px !important;
    padding: 10px !important;
    font-size: 14px !important;
    width: 100%;
  }

  .hidden-mobile1 {
    display: block !important;
  }

  .run-code i {
    font-size: 14px;
  }

  .run-code-mobile {
    display: block;
  }

  #toggle-view {
    display: none;
  }
}

@media (max-width: 425px) {

  .editor-container,
  .output-container {
    width: 100% !important;
    height: 50%;
  }

  #dragbar {
    display: none;
  }

  #dragbar-horizontal {
    display: block;
  }

  .CodeMirror,
  #output {
    line-height: 1.5;
  }

  .editor-fullscreen,
  .output-fullscreen {
    height: calc(100vh - 4rem - 1rem) !important;
  }

  .file-name {
    max-width: 130px;
  }

  .status-bar {
    display: flex;
  }

  .file-name {
    padding: 5px 10px 6px;
    font-size: 14px;
  }

  .file-name i {
    font-size: 14px;
  }

  #menu-toggle {
    font-size: 28px;
    padding: 0 10px;
  }

  .btn-large {
    right: 3.6rem;
  }

  .btn-large button i {
    font-size: 13px;
    padding-top: 2px;
  }

  .btn-large button {
    padding: 4px 12px 5px;
    font-size: 14px;
    overflow: hidden;
  }

  .closeX {
    top: 0;
    right: 10px;
    font-size: 30px;
    padding: 0 5px;
  }

  .btn-con {
    top: 6rem;
    right: 0.6rem;
    top: 5rem;
    padding: 0 10px 10px;
    border-radius: 6px;
    display: none;
  }

  .btn-con .btn-con-inner {
    padding: 50px 5px 5px;
    flex-direction: column;
  }

  .btn-con .btn-con-inner button {
    margin-bottom: 8px;
  }

  .btn-con .btn-con-inner button,
  select {
    height: 33px !important;
    padding: 8px !important;
    font-size: 14px !important;
    width: 100%;
  }
}

@media (max-width: 375px) {

  .editor-container,
  .output-container {
    width: 100% !important;
    height: 50%;
  }

  #dragbar {
    display: none;
  }

  #dragbar-horizontal {
    display: block;
  }

  .CodeMirror,
  #output {
    line-height: 1.5;
  }

  .editor-fullscreen,
  .output-fullscreen {
    height: calc(100vh - 4rem - 1rem) !important;
  }

  .file-name {
    max-width: 130px;
  }

  .status-bar {
    display: flex;
  }

  .file-name {
    padding: 6px 10px 7px;
    font-size: 14px;
  }

  .file-name i {
    font-size: 14px;
  }

  #menu-toggle {
    font-size: 25px;
    padding: 0 10px;
  }

  .btn-large {
    right: 3rem;
  }

  .btn-large button i {
    font-size: 11px;
  }

  .btn-large button {
    padding: 5px 12px 6px;
    font-size: 14px;
    overflow: hidden;
    margin: 4px !important;
  }

  .closeX {
    top: 0;
    right: 10px;
    font-size: 30px;
    padding: 0 5px;
  }

  .btn-con {
    top: 6rem;
    right: 0.6rem;
    top: 5rem;
    padding: 0 10px 10px;
    border-radius: 6px;
    display: none;
  }

  .btn-con .btn-con-inner {
    padding: 50px 5px 5px;
    flex-direction: column;
  }

  .btn-con .btn-con-inner button {
    margin-bottom: 8px;
  }

  .btn-con .btn-con-inner button i {
    font-size: 14px !important;
  }

  .btn-con .btn-con-inner button,
  select {
    padding: 6px !important;
    font-size: 14px !important;
    width: 100%;
  }
}

@media (max-width: 320px) {

  .editor-container,
  .output-container {
    width: 100% !important;
    height: 50%;
  }

  #dragbar {
    display: none;
  }

  #dragbar-horizontal {
    display: block;
  }

  .CodeMirror,
  #output {
    line-height: 1.5;
  }

  .editor-fullscreen,
  .output-fullscreen {
    height: calc(100vh - 4rem - 1rem) !important;
  }

  .file-name {
    max-width: 100px;
  }

  .status-bar {
    display: flex;
  }

  .file-name {
    padding: 5px 10px 6px;
    font-size: 14px;
  }

  .file-name i {
    font-size: 14px;
  }

  #menu-toggle {
    font-size: 25px;
    padding: 0 7px;
  }

  .btn-large {
    right: 2.7rem;
  }

  .btn-large button i {
    font-size: 10px;
  }

  .btn-large button {
    padding: 4px 8px 5px;
    font-size: 14px;
    overflow: hidden;
    margin: 3px !important;
  }

  .closeX {
    top: 0;
    right: 10px;
    font-size: 30px;
    padding: 0 5px;
  }

  .btn-con {
    top: 6rem;
    right: 0.6rem;
    top: 5rem;
    padding: 0 10px 10px;
    border-radius: 6px;
    display: none;
  }

  .btn-con .btn-con-inner {
    padding: 50px 5px 5px;
    flex-direction: column;
  }

  .btn-con .btn-con-inner button {
    margin-bottom: 5px;
  }

  .btn-con .btn-con-inner button,
  select {
    height: 33px !important;
    padding: 8px !important;
    font-size: 14px !important;
    width: 100%;
  }
}

@media (min-width: 768px) {
  .hidden-mobile {
    display: none !important;
  }

  .hidden-mobile1 {
    display: none !important;
  }
}

@media (min-width: 1000px) {
  .hidden-mobile {
    display: block !important;
  }

  .run-code {
    width: 78px;
  }

  .btn-con i {
    margin-left: 0px;
  }
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-box {
  background: var(--bg-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 32px;
  width: 90%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

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

.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 28px;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--error-text);
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.modal-title i {
  margin-right: 8px;
  background: linear-gradient(135deg, #a855f7, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.auth-submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #6c3baa, #4a1d96);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.auth-submit-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

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

.auth-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

/* AI Write Modal */
.ai-modal-box {
  max-width: 520px;
}

#ai-write-prompt {
  width: 100%;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  resize: vertical;
  min-height: 100px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin-bottom: 16px;
}

#ai-write-prompt:focus {
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.ai-submit-btn {
  background: linear-gradient(135deg, #a855f7, #6366f1) !important;
}

.ai-submit-btn:hover {
  filter: brightness(1.15);
}

/* AI Buttons */
.btn-ai {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: white;
  border: none;
}

.btn-ai:hover {
  filter: brightness(1.2);
}

.btn-ai i {
  margin-right: 6px;
}

/* AI Fix Button in Output */
.btn-ai-fix {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  animation: aiFixPulse 2s infinite;
  transition: all 0.2s;
}

.btn-ai-fix:hover {
  filter: brightness(1.15);
  transform: scale(1.05);
}

@keyframes aiFixPulse {

  0%,
  100% {
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  }

  50% {
    box-shadow: 0 4px 25px rgba(245, 158, 11, 0.7);
  }
}

/* Timer styles */
.timer-group {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 12px;
}

.timer-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13px;
  padding: 2px 4px;
  transition: color 0.2s;
}

.timer-btn:hover {
  color: var(--text-primary);
}

.timer-btn.timer-active {
  color: #22c55e;
}

.timer-reset-btn {
  font-size: 11px;
}

#practice-timer {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 42px;
}

/* Cursor position indicator */
.cursor-pos {
  margin-left: 8px;
}

#cursor-position {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 13px;
}

/* Loading shimmer for AI */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.ai-loading {
  background: linear-gradient(90deg, transparent 33%, rgba(168, 85, 247, 0.3) 50%, transparent 67%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@media (max-width: 768px) {
  .cursor-pos {
    display: none;
  }

  .modal-box {
    width: 92%;
    padding: 24px;
  }

  .btn-ai-fix {
    bottom: 4rem;
    right: 1rem;
    padding: 8px 14px;
    font-size: 13px;
  }
}

@media (max-width: 425px) {
  .timer-group {
    gap: 4px;
    margin-right: 8px;
  }

  #practice-timer {
    font-size: 12px;
  }
}
