/* === Global Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", "Segoe UI", sans-serif;
  background: #f9fafb;
  color: #1f2937;
  line-height: 1.6;
}

/* === Header === */
header {
  background: linear-gradient(135deg, #2c3e50, #34495e);
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  border-bottom: 4px solid #16a085;
}

header h1 {
  font-size: 32px;
  font-weight: 700;
}

header p {
  margin-top: 8px;
  font-size: 16px;
  opacity: 0.9;
}

/* === Layout === */
.container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* === Tools Grid === */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.tool-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 25px;
  text-align: center;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid #e5e7eb;
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  border-color: #d1d5db;
}

.tool-card h3 {
  font-size: 20px;
  color: #111827;
}

.tool-card p {
  font-size: 14px;
  color: #6b7280;
  margin-top: 6px;
  margin-bottom: 14px;
}

.tool-card button {
  background: #16a085;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s ease;
}

.tool-card button:hover {
  background: #12876f;
}

/* === Tool Pages === */
.tool-box {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  text-align: center;
  margin-top: 30px;
}

.tool-box input[type="file"] {
  display: block;
  margin: 20px auto;
  padding: 12px;
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  background: #f9fafb;
  cursor: pointer;
  width: 80%;
  max-width: 400px;
}

.tool-box button {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.25s ease;
}

.tool-box button:hover {
  background: #1e4fd1;
}

/* === Footer === */
footer {
  margin-top: 50px;
  padding: 20px;
  background: #f3f4f6;
  text-align: center;
  font-size: 14px;
  color: #6b7280;
  border-top: 1px solid #e5e7eb;
}

footer a {
  display: inline-block;
  margin-top: 8px;
  color: #2563eb;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}


/* === Navbar === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: #2563eb;
  letter-spacing: -0.5px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li a {
  text-decoration: none;
  font-size: 15px;
  color: #374151;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links li a:hover {
  color: #2563eb;
}

/* === Back Button === */
.back-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 18px;
  border-radius: 50px;
  /* round pill style */
  background: #16a085;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: 0.25s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.back-btn:hover {
  background: #12876f;
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.12);
}