@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #ffffff;
}

.container {
  min-height: 100vh;
  padding: 25px;
}

.container h1 {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 25px;
  letter-spacing: 1px;
  color: #f8fafc;
}

.editor {
  display: flex;
  gap: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.left,
.right {
  flex: 1;
  display: flex;
  flex-direction: column;
}

label {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #111827;
  color: #e2e8f0;
  padding: 12px 15px;
  border-radius: 10px 10px 0 0;
  font-size: 16px;
  font-weight: 600;
  margin-top: 15px;
}

.left label:first-child {
  margin-top: 0;
}

label i {
  font-size: 22px;
}

/* Language Colors */
.bxl-html5 {
  color: #e34f26;
}

.bxl-css3 {
  color: #1572b6;
}

.bxl-javascript {
  color: #f7df1e;
}

.bx-play {
  color: #22c55e;
}

textarea {
  width: 100%;
  height: 220px;
  background: #1e1e1e;
  color: #d4d4d4;
  border: none;
  outline: none;
  resize: vertical;
  padding: 15px;
  font-size: 15px;
  line-height: 1.6;
  border-radius: 0 0 10px 10px;
  transition: all 0.3s ease;
}

textarea:focus {
  box-shadow: 0 0 0 2px #38bdf8;
}

textarea:hover {
  transform: translateY(-2px);
}

textarea::placeholder {
  color: #94a3b8;
}

.right label {
  margin-top: 0;
}

iframe {
  width: 100%;
  height: 100%;
  min-height: 760px;
  background: #ffffff;
  border: none;
  border-radius: 0 0 10px 10px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

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

textarea::-webkit-scrollbar-track {
  background: #2d2d2d;
}

textarea::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 10px;
}

textarea::-webkit-scrollbar-thumb:hover {
  background: #777;
}

/* Responsive Design */
@media (max-width: 1000px) {
  .editor {
    flex-direction: column;
  }

  iframe {
    min-height: 500px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  .container h1 {
    font-size: 2rem;
  }

  textarea {
    height: 180px;
    font-size: 14px;
  }

  iframe {
    min-height: 400px;
  }
}
