body {
  margin:0;
  font-family: Arial, sans-serif;
  background:#0f172a;
  color:white;
}


#editor {
  height: calc(100vh - 300px);
  width: 100%;
}

header {
  display: flex;
  justify-content: space-between;
  padding: 15px 20px;
  background: #111827;
  border-bottom: 1px solid #1f2937;
}

.header-left {
  display: flex;
  flex-direction: column;
}

.creator {
  font-size: 13px;
  opacity: 0.6;
  margin-top: 4px;
}

.status {
  font-weight: bold;
  background: #1f2937;
  padding: 6px 12px;
  border-radius: 6px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 20px;
}

button {
  background: #1f2937;
  border: none;
  color: white;
  padding: 8px 12px;
  margin-right: 10px;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background: #374151;
}


.diagnostics {
  padding: 20px;
  background: #0b1220;
  border-top: 1px solid #1f2937;
}

.error {
  color: #ff6b6b;
  margin-bottom: 6px;
}

#loading-screen {
  position: fixed;
  inset: 0;
  background: #0d1117;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.boot-box {
  width: 320px;
  text-align: left;
  font-family: monospace;
  color: #58a6ff;
}

.boot-title {
  font-size: 18px;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

#boot-status {
  font-size: 13px;
  margin-bottom: 10px;
  color: #9ca3af;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #1f2937;
  border-radius: 4px;
  overflow: hidden;
}

#progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  transition: width 0.2s ease;
}

.loader-box {
  text-align: center;
  color: #58a6ff;
  font-family: monospace;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #1f2937;
  border-top: 4px solid #58a6ff;
  border-radius: 50%;
  margin: 0 auto 15px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.social-footer {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 15px;
  background: #0d1117;
  border-top: 1px solid #1f2937;
}

.social {
  text-decoration: none;
  font-family: monospace;
  padding: 8px 14px;
  border-radius: 6px;
  transition: 0.2s ease;
  font-size: 14px;
}

.social.yt {
  background: #2a0f0f;
  color: #ff4d4d;
}

.social.dc {
  background: #111827;
  color: #60a5fa;
}

.social.gh {
  background: #161b22;
  color: #c9d1d9;
}

.social:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

@media screen and (max-width: 768px) {
  header h1 {
    font-size: 18px;
  }

  .creator {
    font-size: 12px;
  }

  .toolbar button {
    font-size: 12px;
    padding: 6px 8px;
  }

  .diagnostics {
    font-size: 12px;
    padding: 10px;
  }

  #editor {
    height: calc(100vh - 280px); /* sesuaikan */
  }

  .social-footer {
    flex-direction: column;
    gap: 10px;
  }
}
