/* Reset and base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #f9f9fb;
  color: #333;
  padding-top: 80px;
}

a {
  text-decoration: none;
  color: #0077cc;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

/* Loader */
#loader {
  position: fixed;
  background: white;
  z-index: 9999;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #eee;
  border-top-color: #0077cc;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #0077cc;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  font-weight: 500;
  color: #333;
}

nav a.active,
nav a:hover {
  color: #0077cc;
}

/* Hero */
.hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #e3f2fd, #fce4ec);
}

.hero h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 18px;
}

/* Tools Grid */
.tools-section {
  padding: 40px 20px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.tools-grid a {
  background: white;
  padding: 20px;
  text-align: center;
  border-radius: 8px;
  font-weight: 500;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease;
  color: #333;
}

.tools-grid a:hover {
  transform: translateY(-5px);
  background: #f0f8ff;
}

/* Subscribe */
.subscribe {
  background: #e3f2fd;
  padding: 40px 20px;
  text-align: center;
}

.subscribe form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.subscribe input {
  padding: 10px;
  width: 300px;
  max-width: 90%;
  border-radius: 5px;
  border: 1px solid #ccc;
  margin-bottom: 10px;
  font-size: 16px;
}

.subscribe button {
  padding: 10px 20px;
  background: #0077cc;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: not-allowed;
}

.note {
  font-size: 13px;
  color: #555;
  margin-top: 5px;
}

/* Footer */
footer {
  background: #f5f5f5;
  padding: 20px 0;
  text-align: center;
  margin-top: 40px;
}

footer p {
  margin-bottom: 10px;
  color: #777;
}

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.footer-links a {
  color: #777;
  font-size: 14px;
}

.footer-links a:hover {
  color: #0077cc;
}

/* Tool Pages */
.tool-section {
  padding: 60px 20px;
  background: #f9f9ff;
  text-align: center;
  min-height: 60vh;
}

.tool-title {
  font-size: 28px;
  margin-bottom: 10px;
  color: #222;
}

.tool-desc {
  margin-bottom: 30px;
  font-size: 16px;
  color: #555;
}

.tool-card {
  background: #fff;
  padding: 30px 20px;
  border-radius: 10px;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.tool-card input[type="text"],
.tool-card input[type="file"],
.tool-card textarea {
  width: 100%;
  max-width: 600px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  font-family: monospace;
}

.tool-card button {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.tool-card button:hover {
  background-color: #0056b3;
}


.form-style {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: auto;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.form-style input, .form-style textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}
.form-style .btn {
  background-color: #007bff;
  color: #fff;
  padding: 10px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 6px;
  transition: background-color 0.3s;
}
.form-style .btn:hover {
  background-color: #0056b3;
}


.donate-qr {
  max-width: 160px;
  max-height: 160px;
  width: 100%;
  height: auto;
  margin: 1rem auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
