/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to right, #e0efff, #efe2ff);
  color: #222;
}
a {
  text-decoration: none;
  color: #2563eb;
}
a:hover{
  color: #437eff;
}
.container {
  padding: 2rem;
}

/* NavBar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(10px);
}
.navbar nav a {
  margin-left: 1rem;
  font-weight: 500;
}
.logo {
  font-weight: 700;
  font-size: 1.2rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 5rem 2rem;
}
.hero h1 {
  font-size: 2.5rem;
  color: #1e40af;
  margin-bottom: 1rem;
}
.hero p {
  max-width: 600px;
  margin: auto;
  font-size: 1.1rem;
  color: #444;
}
.cta-btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.7rem 2rem;
  background: #2563eb;
  color: #fff;
  border-radius: 8px;
}

/* SPLIT PANEL (DESKTOP) */
.split-section {
  display: flex;
  max-width: 1000px;
  margin: 2rem auto;
  height: 600px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: 0.5s ease;
}

.panel {
  flex: 1;
  transition: all 0.5s ease;
  background: white;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.panel-content {
  opacity: 1;
  transition: opacity 0.3s ease;
}
.panel textarea {
  width: 100%;
  height: 100px;
  margin-bottom: 1rem;
  padding: 0.6rem;
  font-family: monospace;
  border-radius: 8px;
  border: 1px solid #ccc;
}
.panel button {
  background: #2563eb;
  color: white;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 1rem;
}
.panel .switch-btn {
  margin-top: 1rem;
  font-size: 0.9rem;
}
.panel .switch-btn span {
  color: #2563eb;
  cursor: pointer;
  font-weight: bold;
  text-decoration: underline;
}

/* ACTIVE PANEL */
.left-panel.active {
  flex: 4;
}
.right-panel.active {
  flex: 4;
}
.left-panel:not(.active),
.right-panel:not(.active) {
  flex: 1;
  background: #f8fafc;
  color: #94a3b8;
}
.left-panel:not(.active) .panel-content,
.right-panel:not(.active) .panel-content {
  opacity: 0.3;
  pointer-events: none;
}

/* 📱 MOBILE STYLING */
@media (max-width: 768px) {
  .split-section {
    flex-direction: column;
    height: auto;
  }

  .panel {
    width: 100%;
    flex: 0 0 100%;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
  }

  .left-panel,
  .right-panel {
    display: none;
  }

  .left-panel.active,
  .right-panel.active {
    display: block;
  }

  .panel-content {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .panel textarea {
    height: 80px;
  }
}

/* Upload */
.upload, .info {
  padding: 2rem;
  margin: 2rem auto;
  border-radius: 1rem;
  max-width: 700px;
}
.upload h2, .info h2 {
  text-align: center;
  margin-bottom: 1rem;
}
.upload-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1rem 0;
}
.upload-block {
  text-align: center;
}
.upload-label {
  display: inline-block;
  background: #2563eb;
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
}



.drop-zone {
  margin-top: 1rem;
  padding: 2rem;
  border: 2px dashed #2563eb;
  border-radius: 10px;
  text-align: center;
  color: #2563eb;
  transition: background 0.2s;
}
.drop-zone.dragover {
  background: #e0f2fe;
  border-color: #1e3a8a;
  color: #1e3a8a;
}

#uploadStatus {
  text-align: center;
  margin: 1rem 0;
  color: #10b981;
}

#runButton {
  display: block;
  margin: auto;
  background: #10b981;
  color: white;
  padding: 0.7rem 2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
#runButton:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
}


/* ==== FOOTER ==== */
footer {
  width: 100%;
  text-align: center;
  background: linear-gradient(to top, #b5d9ff, #8fabff);
  color: #4e342e;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  padding: 16px 10px;
  margin-top: auto;
  font-size: 0.95rem;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.7px;
}

footer a {
  color: #ff5722;
  text-decoration: none;
  font-weight: bold;
  margin: 0 4px;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #e65100;
}

/* 📱 Mobile-friendly adjustments */
@media screen and (max-width: 480px) {
  footer {
    font-size: 0.85rem;
    padding: 12px 6px;
  }

  footer a {
    display: inline-block;
    margin: 6px 8px;
  }
}


/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
