body {
  background: #0d1117;
  font-family: sans-serif;
  margin: 0;
  min-height: 100vh;

  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 80px;
}

#fileInput {
  display: none;
}

.upload-btn {
  padding: 14px 28px;
  border-radius: 14px;
  background: #ffffff;
  color: #111;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 8px 25px rgba(255,255,255,0.08);
}

.upload-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(255,255,255,0.15);
}

.upload-btn:active {
  transform: scale(0.97);
}

/* -- Skeleton Loader -- */

.skeleton {
  max-width: 900px;
  width: 100%;
  margin-top: 50px;
  display: none;
}

.skeleton-title {
  height: 42px;
  width: 70%;
  margin-bottom: 35px;
  border-radius: 14px;
  background: linear-gradient(
    90deg,
    #1f1f1f 25%,
    #2a2a2a 50%,
    #1f1f1f 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

.skeleton-line {
  height: 22px;
  border-radius: 10px;
  margin-bottom: 18px;
  background: linear-gradient(
    90deg,
    #1f1f1f 25%,
    #2a2a2a 50%,
    #1f1f1f 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 80%; }
.skeleton-line.long { width: 100%; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* -- README Animation -- */

.markdown-body {
  box-sizing: border-box;
  max-width: 900px;
  width: 100%;
  margin-top: 50px;
  background: #0d1117;

  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  padding: 50px;

}

.markdown-body.show {
  opacity: 1;
  transform: translateY(0);
}

.error-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.error-popup.show {
  opacity: 1;
  pointer-events: all;
}

.error-box {
  background: #161b22;
  padding: 30px 40px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  border: 1px solid rgba(255,255,255,0.1);
}

.error-popup.show .error-box {
  transform: translateY(0);
}

.error-box h3 {
  margin-bottom: 10px;
  color: #ff4d4f;
}

.error-box p {
  margin-bottom: 20px;
  color: #c9d1d9;
}

.error-box button {
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  background: #ffffff;
  color: #111;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.error-box button:hover {
  transform: translateY(-2px);
}


footer {
    text-align: center;
    padding: 15px 10px;
    background: #0d1117f8;
    color: #fff;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
    position: relative;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -2px 10px #0d1117;
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
}

.footer a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.footer a:hover {
    text-decoration: underline;
}
