/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}
html, body {
  background-color: #0c0018; /* or your gradient fallback base */
  background-image: radial-gradient(circle at top left, #072d36 0%, #06051e 60%, #1a0527 100%);
  min-height: 100%;
  overflow-x: hidden;
}


body {
  background: radial-gradient(circle at top left, #072d36 0%, #06051e 60%, #1a0527 100%);
  color: white;
  padding: 40px 20px;
  min-height: 100vh;
}
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: linear-gradient(to right, #0b2f3b, #1c1232);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  max-width: 100%;
}

.logo {
  height: 56px;
}

.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 24px;
  align-items: center;
  height: 100%;
}

.nav-center a {
  text-decoration: none;
  font-size: 15px;
  background: linear-gradient(90deg, #7AA1C8 13%, #B08FD6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  transition: opacity 0.2s ease;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 1;
}

.login {
  text-decoration: none;
  font-size: 15px;
  background: linear-gradient(90deg, #7AA1C8 13%, #B08FD6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.signup-btn {
  padding: 10px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  display: inline-block;
  position: relative;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: linear-gradient(
    rgba(94, 94, 94, 0.13),
    rgba(255, 255, 255, 0.07)
  );
  border: 1px solid transparent;
  background-clip: padding-box, border-box;
  background-origin: padding-box, border-box;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
  background-image: 
    linear-gradient(90deg, #7AA1C8 13%, #B08FD6 100%),
    linear-gradient(rgba(94, 94, 94, 0.13), rgba(255, 255, 255, 0.07));
  -webkit-background-clip: text, border-box;
  -webkit-text-fill-color: transparent;
  background-clip: text, border-box;
  color: transparent;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.signup-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Push content below navbar */
body {
  padding-top: 80px;
}
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: linear-gradient(to right, #0b2f3b, #1c1232);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  max-width: 100vw;
}

/* Left: Logo */
.logo {
  height: 56px;
}

/* Center links – centered absolutely */
.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 24px;
  align-items: center;
  height: 100%;
}

/* Center links styling */
.nav-center a {
  text-decoration: none;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  height: 100%;
  background: linear-gradient(90deg, #7AA1C8 13%, #B08FD6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  transition: opacity 0.2s ease;
}

.nav-center a:hover {
  opacity: 0.9;
}

/* Right: Log In / Sign Up */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 1;
}

.login {
  text-decoration: none;
  font-size: 15px;
  background: linear-gradient(90deg, #7AA1C8 13%, #B08FD6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.signup-btn {
  padding: 10px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  display: inline-block;
  position: relative;
  backdrop-filter: blur(12px); /* Background blur effect */
  -webkit-backdrop-filter: blur(12px);

  /* Fills (two translucent overlays blended via background) */
  background: linear-gradient(
      rgba(94, 94, 94, 0.13),
      rgba(255, 255, 255, 0.07)
  );
  
  /* Border (gradient stroke-like effect) */
  border: 1px solid transparent;
  background-clip: padding-box, border-box;
  background-origin: padding-box, border-box;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2); /* mimics inside border */
  
  /* Gradient text */
  background-image: 
    linear-gradient(90deg, #7AA1C8 13%, #B08FD6 100%),
    linear-gradient(rgba(94, 94, 94, 0.13), rgba(255, 255, 255, 0.07));
  -webkit-background-clip: text, border-box;
  -webkit-text-fill-color: transparent;
  background-clip: text, border-box;
  color: transparent;

  transition: opacity 0.3s ease, transform 0.2s ease;
}

.signup-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}


/* Vrishthi Heading */
h1 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #7AA1C8 0%, #B08FD6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.subtitle {
  text-align: center;
  font-size: 12px;
  margin-bottom: 50px;
  color: #ccc;
  font-weight: 400;
  letter-spacing: 1px;
}

/* Playground Container */


/* Code Input */


/* Run Button */
button {
  margin-top: 20px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: bold;
  color: #dcdcff;
  background: rgba(120, 80, 255, 0.2);
  border: 1px solid rgba(160, 130, 255, 0.4);
  border-radius: 10px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: 0.2s ease;
}

button:hover {
  background: rgba(120, 80, 255, 0.35);
  transform: scale(1.05);
}

/* Output Section */

/* Scrollbar Styling (WebKit-based browsers like Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  transition: background 0.3s ease;
}

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

.playground-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  max-width: 1300px;
  margin: 0 auto;
}

/* Form box */
form {
  flex: 1;
  min-width: 350px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
}

/* Output box */

.glass-wrapper {
  max-width: 1300px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
}

.flex-area {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1000px;
  margin: auto;
}

.input-output {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

textarea {
  flex: 1;
  min-width: 350px;
  height: 300px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 16px;
  font-size: 1rem;
  color: #d6d6ff;
  resize: vertical;
  font-family: 'Fira Code', monospace;
  outline: none;
}

#output {
  flex: 1;
  min-width: 350px;
  background: rgba(0, 0, 0, 0.25);
  padding: 20px;
  border-radius: 16px;
  backdrop-filter: blur(8px);
  font-family: 'Fira Code', monospace;
  color: #cceaff;
  white-space: pre-wrap;
  overflow-x: auto;
}

button {
  align-self: flex-start;
}
@media (max-width: 768px) {
  .input-output {
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}
.glow-blob {
  position: absolute;
  width: 200px;
  height: 200px;
  background: #9139ED;
  opacity: 0.7;                     /* Increased intensity */
  border-radius: 50%;
  filter: blur(140px);              /* Smaller spread, tighter glow */
  z-index: -0;
  pointer-events: none;
}

.glow-blob-blue {
  position: absolute;
  width: 200px;
  height: 200px;
  background: #603EFD;
  opacity: 0.7;                     /* Increased intensity */
  border-radius: 50%;
  filter: blur(140px);              /* Smaller spread, tighter glow */
  z-index: 0;
  pointer-events: none;
}

.vs-container {
  display: flex;
  margin-top: 0px;
  padding: 20px;
}

.sidebar {
  width: 240px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 12px;
  color: #ccc;
  height: 600px;
}

.sidebar .section-title {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 12px;
  color: #eee;
}

.sidebar .file-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.sidebar .file-list li {
  margin-bottom: 8px;
  font-family: 'Fira Code', monospace;
  cursor: pointer;
  transition: 0.2s ease;
}

.sidebar .file-list li:hover {
  color: #b08fd6;
}

.gpu-switcher {
  margin-bottom: 20px;
}

.gpu-switcher label {
  font-size: 12px;
  display: block;
  margin-bottom: 4px;
}

.gpu-switcher select {
  width: 100%;
  padding: 6px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: white;
}

.settings-btn {
  width: 100%;
  padding: 10px;
  font-weight: bold;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  backdrop-filter: blur(5px);
}

.code-panel {
  flex: 1;
  margin-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

textarea#codeInput {
  height: 300px;
  width: 100%;
  font-family: 'Fira Code', monospace;
  background: rgba(0, 0, 0, 0.3);
  color: #d6d6ff;
  border-radius: 10px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  resize: vertical;
}

#output {
  background: rgba(0, 0, 0, 0.3);
  padding: 20px;
  border-radius: 16px;
  color: #cceaff;
  font-family: 'Fira Code', monospace;
  overflow-x: auto;
  white-space: pre-wrap;
  max-height: 300px;
}

@media (max-width: 900px) {
  .vs-container {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    margin-bottom: 20px;
  }
  .code-panel {
    margin-left: 0;
  }
}
.file-exp{background-color: rgb(12, 0, 24, 30%);padding: 10px; border-radius: 10px; margin-bottom: 20px; height: 300px;}