:root {
  --bg-main: #0f1115;
  --bg-card: #161a21;
  --bg-input: #1f2430;
  --primary: #ff3b3b;
  --text-main: #e6e6e6;
  --text-muted: #9aa0a6;
  --border: #2a2f3a;
}

body {
  background: var(--bg-main);
  color: var(--text-main);
  font-family: "Inter", system-ui, sans-serif;
}

.container {
  max-width: 820px;
}

/* CARD */
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px;
  margin-top: 40px;
}

/* TITLE */
.tool-title {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
}

.tool-desc {
  color: var(--text-muted);
  font-size: 16px;
  text-align: center;
  margin-bottom: 20px;
}

/* UPLOAD BOX */
.upload-box {
  border: 2px dashed var(--border);
  padding: 40px;
  text-align: center;
  border-radius: 10px;
  background: var(--bg-input);
}

/* BUTTON */
.btn-primary {
  background: var(--primary);
  border: none;
  padding: 14px 30px;
  font-size: 16px;
  border-radius: 8px;
}

.btn-primary:hover {
  background: #ff1f1f;
}

/* FOOTER TEXT */
.footer-text {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 60px;
  text-align: center;
}
.tool-card ul {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.tool-card ul li {
  list-style: none;
}

@media (max-width: 600px) {
  .tool-card ul {
    flex-direction: column;
    align-items: center;
  }
}
.tool-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.btn-primary {
  background: var(--primary);
  border: none;
  padding: 14px 30px;
  font-size: 16px;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background: #ff1f1f;
}
@media (max-width: 600px) {
  .tool-buttons {
    flex-direction: column;
    align-items: center;
  }
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.tool-card-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.tool-card-item h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text-main);
}

.tool-card-item p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.tool-card-item .btn-primary {
  display: inline-block;
  margin-top: 10px;
}
.header-bar {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
}

.top-nav a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--bg-input);
  transition: background 0.3s ease;
}

.top-nav a:hover {
  background: var(--primary);
  color: #fff;
}

.logo-section {
  text-align: center;
}

.logo-section img {
  margin-bottom: 10px;
}
.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
}
.tool-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 30px; margin-top: 20px; }


/* Upload Box */
.upload-box {
  border: 2px dashed var(--border);
  padding: 30px;
  border-radius: 10px;
  background: var(--bg-input);
  margin-bottom: 20px;
  text-align: center;
}

/* File Input */
.upload-box input[type="file"] {
  color: var(--text-main);
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
}

/* Style the native file button */
.upload-box input[type="file"]::file-selector-button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.upload-box input[type="file"]::file-selector-button:hover {
  background: #ff1f1f;
}

/* Submit Button */
.btn-primary {
  background: var(--primary);
  border: none;
  padding: 12px 28px;
  font-size: 16px;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 10px;
}

.btn-primary:hover {
  background: #ff1f1f;
}

  .progress-wrap{
    margin-top:12px;
  }
  .progress-bar{
    width:100%;
    height:12px;
    background:#e9ecef;
    border-radius:999px;
    overflow:hidden;
  }
  .progress-fill{
    height:100%;
    width:0%;
    background:#0d6efd;
    transition:width .08s linear;
  }
  .progress-meta{
    display:flex;
    justify-content:space-between;
    font-size:13px;
    margin-top:6px;
    color:#333;
  }
  .muted{
    color:#666;
    font-size:13px;
    margin-top:6px;
  }
/* JPG to PDF Loader text color */
.progress-meta span,
.progress-meta strong {
    color: #fff;
    text-shadow: 0 0 5px rgba(255,255,255,0.4);
}
/* Agar background dark hai to thoda smooth white */
.progress-meta {
    color: #ffffff;
}

/* Optional: label thoda readable ho */
#originallabel {
    color: #ffffff;
}

#originalpercent {
    color: #ffffff;
}


