/* Reset */
* { margin:0; padding:0; box-sizing:border-box; }
html,body { height:100%; }
body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background:#f4f7fb;
  color:#1e293b;
  line-height:1.6;
}

/* Navbar */
.navbar {
  position: sticky; top:0; z-index:1000;
  background: linear-gradient(135deg,#6366f1,#22d3ee);
  color:#fff; padding:16px 20px; box-shadow:0 2px 10px rgba(0,0,0,.12);
}
.logo { font-size:20px; font-weight:700; text-align:center; }

/* Hero */
.hero {
  text-align:center; color:#fff; padding:56px 18px 48px;
  background: linear-gradient(135deg,#4f46e5,#3b82f6);
  border-bottom-left-radius:28px; border-bottom-right-radius:28px;
}
.hero h1 { font-size: clamp(26px,5vw,44px); margin-bottom:8px; }
.hero p { font-size: clamp(14px,3.2vw,18px); opacity:.95; }

/* Cards Grid */
.tools { max-width:1200px; margin:auto; padding:28px 16px 40px; }
.tool-grid {
  display:grid; gap:22px;
  grid-template-columns: repeat(auto-fit,minmax(230px,1fr));
}
.tool-card {
  display:block; text-decoration:none; color:inherit;
  background: rgba(255,255,255,.95); border-radius:16px; padding:18px 18px;
  box-shadow:0 6px 16px rgba(0,0,0,.08); transition:.2s ease;
}
.tool-card:hover { transform: translateY(-4px); box-shadow:0 10px 24px rgba(0,0,0,.14); }
.tool-card h3 { font-size:18px; margin:2px 0 6px; color:#4f46e5; }
.tool-card p { font-size:14px; color:#475569; }

/* Tool Page Layout */
.tool-section {
  max-width:780px; margin:22px auto; padding:22px; background:#fff;
  border-radius:16px; box-shadow:0 6px 20px rgba(0,0,0,.08);
}
.tool-section h2 { margin-bottom:10px; color:#334155; }
.tool-section small { color:#64748b; }

.control { margin:12px 0; }
textarea, input, select {
  width:100%; padding:12px 12px; border:1px solid #e2e8f0; border-radius:10px;
  outline:none; background:#fff;
}
textarea { min-height:140px; resize:vertical; }

.btns { display:flex; gap:10px; flex-wrap:wrap; margin:12px 0 6px; }
button {
  padding:10px 14px; border:none; border-radius:10px; cursor:pointer; font-weight:600;
  background:#4f46e5; color:#fff; transition:.15s;
}
button.secondary { background:#0ea5e9; }
button.ghost { background:#e2e8f0; color:#0f172a; }
button:hover { filter: brightness(.95); }

pre, .result, .mono {
  background:#0b1220; color:#dbeafe; padding:14px; border-radius:10px; overflow:auto;
}
.result { margin:8px 0; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

footer {
  background:#1e293b; color:#fff; text-align:center; padding:14px; margin-top:28px;
}

/* Mobile tweaks */
@media (max-width:560px){
  .tool-section { margin:16px 10px; padding:16px; }
  button { flex:1 1 auto; }
}
footer {
  background: #1e293b;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

.social-links {
  margin-top: 10px;
}

.social-links a {
  color: #22d3ee;
  margin: 0 8px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #6366f1;
}
.search-bar {
  text-align: center;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.search-bar input,
.search-bar select {
  width: 80%;
  max-width: 400px;
  padding: 12px 15px;
  font-size: 16px;
  border: 2px solid #6366f1;
  border-radius: 10px;
  outline: none;
  transition: 0.3s;
}

.search-bar input:focus,
.search-bar select:focus {
  border-color: #22d3ee;
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.5);
}




body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  text-align: center;
}

header {
  background: #222;
  color: #fff;
  padding: 20px;
}

#searchInput, #categoryFilter {
  margin: 10px;
  padding: 10px;
  width: 250px;
  max-width: 90%;
}

#toolsContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 20px;
}

.tool-card {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  margin: 10px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  width: 200px;
  text-align: center;
  transition: 0.3s;
}

.tool-card:hover {
  background: #007bff;
  color: #fff;
  transform: scale(1.05);
}





.tool-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: #4b4bf9; /* ya jo bhi color baaki titles ka hai */
  margin: 10px 0 5px;
}

.tool-card p {
  font-size: 14px;
  color: #666;
}




.tool-card a {
  text-decoration: none; /* underline hata do */
  color: inherit;        /* text ka color normal rakho */
  display: block;        /* poore card ko clickable banao */
}
.tool-card a:hover h3 {
  color: #007bff;        /* hover effect me heading ka color change ho */
}

@media (max-width: 600px) {
  .header {
    font-size: 20px;
    text-align: center;
  }
  
  .search-bar, .category-select {
    width: 100%;
    margin-bottom: 10px;
  }
}
/* sabhi text select hone se rokna */
body {
  -webkit-user-select: none; /* Chrome, Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* IE/Edge */
  user-select: none;         /* Standard */
}

/* Tool cards grid layout */
.tools-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
  padding: 10px;
}

/* Cards styling */
.tool-card {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.2s;
}

.tool-card:hover {
  transform: translateY(-5px);
}
