:root {
  --blue-700:#0d47a1;
  --blue-500:#1976d2;
  --blue-300:#63a4ff;
  --white:#ffffff;
  --muted:#f3f8ff;
  --card-shadow: 0 8px 20px rgba(13,71,161,0.12);
}
*{box-sizing:border-box}

/* Full height layout */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  background: linear-gradient(180deg,#e8f3ff 0%, #ffffff 60%);
  color: #05365a;
}


/* Main content expands to push footer down */
main {
  flex: 1;
  display: flex;
  flex-direction: column; /* ye add karo */
  justify-content: flex-start; /* top se start ho */
  align-items: center;       /* horizontally center */
  padding: 48px 20px;
  gap: 40px; /* optional: tool aur content ke beech gap */
}

/* Tool container */
.wrap {
  width: 100%;
  max-width: 980px;
  background: var(--white);
  border-radius: 14px;
  padding: 26px;
  box-shadow: var(--card-shadow);
  border:1px solid rgba(9,50,94,0.06);
  animation: popIn .45s ease;
}

/* animation */
@keyframes popIn {
  from { opacity:0; transform: translateY(12px) scale(.995); }
  to   { opacity:1; transform: translateY(0) scale(1); }
}

/* =====================
   Tool Section Styling
   ===================== */
header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
header h1{
  font-size:20px;
  margin:0;
  color:var(--blue-700);
  display:flex;
  align-items:center;
  gap:10px;
}
header p{ margin:0; color:#2b5876; font-size:13px }

.controls{
  display:grid;
  grid-template-columns: 1fr 220px 140px;
  gap:12px;
  margin-top:14px;
  align-items:center;
}

.field{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.field label{
  font-size:13px;
  color:#1b496b;
}
.text, select, input[type="number"]{
  padding:12px 14px;
  border-radius:10px;
  border:1px solid rgba(9,50,94,0.08);
  font-size:15px;
  outline:none;
  background: #fff;
  transition: box-shadow .18s, transform .12s;
}
.text:focus, select:focus, input[type="number"]:focus{
  box-shadow: 0 6px 20px rgba(25,118,210,0.12);
  transform: translateY(-1px);
  border-color: var(--blue-500);
}

.row {
  display:flex;
  gap:10px;
  align-items:center;
}

.btn {
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:10px;
  border:none;
  cursor:pointer;
  background:linear-gradient(180deg,var(--blue-500),var(--blue-700));
  color:var(--white);
  font-weight:600;
  box-shadow: 0 8px 18px rgba(25,118,210,0.12);
  transition: transform .12s, box-shadow .12s, opacity .12s;
}
.btn.secondary{
  background:transparent;
  color:var(--blue-700);
  border:1px solid rgba(9,50,94,0.06);
  box-shadow:none;
  font-weight:600;
}
.btn:hover{ transform: translateY(-3px); }
.btn.secondary:hover{ background:rgba(9,50,94,0.04) }

.small {
  font-size:13px;
  padding:8px 10px;
  border-radius:8px;
}

.slider-wrap{
  display:flex;
  align-items:center;
  gap:12px;
}
input[type="range"]{
  width:100%;
  height:6px;
  border-radius:6px;
  background: linear-gradient(90deg,var(--blue-300),var(--blue-500));
  outline:none;
}

/* Results grid */
#results {
  margin-top:20px;
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap:12px;
}

.card {
  background:var(--muted);
  border-radius:12px;
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:8px;
  justify-content:space-between;
  min-height:64px;
  box-shadow: 0 6px 18px rgba(9,50,94,0.04);
  transition: transform .14s, box-shadow .14s;
  border:1px solid rgba(13,71,161,0.04);
}
.card:hover{
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(9,50,94,0.08);
}

.username {
  font-weight:700;
  font-size:16px;
  color:var(--blue-700);
  word-break:break-word;
}
.meta {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
}
.copy {
  padding:7px 10px;
  background:var(--blue-500);
  color:var(--white);
  border-radius:8px;
  border:none;
  cursor:pointer;
  font-weight:600;
  transition:transform .12s, background .12s;
}
.copy:hover{ transform:translateY(-3px); background: var(--blue-700) }

.hint{
  margin-top:18px;
  padding:12px;
  border-radius:10px;
  background: linear-gradient(180deg, rgba(9,50,94,0.03), rgba(13,71,161,0.02));
  color:#09507a;
  font-size:13px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
}

.controls-bottom{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:flex-end;
}

/* Responsive */
@media (max-width:880px){
  .controls{ grid-template-columns: 1fr 120px 110px; }
}
@media (max-width:640px){
  .controls{ grid-template-columns: 1fr; }
  .controls .row{ width:100%; justify-content:space-between; }
  header{ flex-direction:column; gap:8px; align-items:flex-start; }
}

/* =========================
   Footer Styling
   ========================= */
.footer {
  background: #1e293b;
  color: #94a3b8;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-left:10px;
}

.footer-brand .nav-brand {
  margin-bottom: 1rem;
}
.footer-brand .brand-logo {
  height: 40px;   /* desired height */
  width: auto;    /* width proportionally adjust ho jaye */
  object-fit: contain;
  transition: transform 0.3s ease; /* hover effect already defined */
}

.footer-brand .brand-text {
  display: none;
  margin-left:10px;
}

.footer-brand p {
  color: #94a3b8;
  line-height: 1.6;
  margin-left:10px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
}

.footer-column h3 {
  color: white;
  font-weight: 600;
  margin-bottom: 1rem;
}
.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column ul li a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: #8b5cf6;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 1rem;
  text-align: center;
}
/* =========================
   Other Content Styling
   ========================= */
.other-content {
  max-width: 900px;
  width: 100%;
  background: #ffffff;
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: 0 8px 25px rgba(13,71,161,0.08);
  border: 1px solid rgba(9,50,94,0.08);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: #1a1a1a;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: popIn .45s ease;
}

/* Headings */
.other-content h2 {
  font-size: 1.8rem;
  color: #0d47a1;
  border-bottom: 2px solid #1976d2;
  padding-bottom: 8px;
  margin-top: 16px;
}

.other-content h3 {
  font-size: 1.4rem;
  color: #1976d2;
  margin-top: 14px;
}

/* Paragraphs */
.other-content p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 12px;
}

/* Lists */
.other-content ul, 
.other-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.other-content li {
  margin-bottom: 8px;
  font-size: 1rem;
  color: #444;
}

/* Links */
.other-content a {
  color: #0d47a1;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.other-content a:hover {
  color: #1976d2;
}

/* Buttons inside content if any */
.other-content .btn {
  background: #1976d2;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.other-content .btn:hover {
  background: #0d47a1;
  transform: translateY(-2px);
}

/* Smooth entry animation reuse */
@keyframes popIn {
  from { opacity:0; transform: translateY(12px) scale(.995); }
  to   { opacity:1; transform: translateY(0) scale(1); }
}

/* Responsive tweaks */
@media (max-width: 880px) {
  .other-content {
    padding: 24px 18px;
  }

  .other-content h2 {
    font-size: 1.6rem;
  }

  .other-content h3 {
    font-size: 1.3rem;
  }
}
@media (max-width: 640px) {
  .other-content {
    padding: 20px 14px;
  }
}
/* Internal Section Styling */
.internal {
  background: linear-gradient(135deg, #f9fcff, #e6f2ff);
  border: 1px solid #cfdfff;
  padding: 20px;
  margin: 40px auto;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  max-width: 720px;
  transition: all 0.3s ease-in-out;
}

.internal:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.internal p {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.6;
}

.internal a {
  color: #007bff;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

.internal a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: #007bff;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.internal a:hover {
  color: #0056cc;
}

.internal a:hover::after {
  transform: scaleX(1);
}
@media (max-width: 640px){
  .footer-brand .brand-logo {
    height: 30px;
  }
}


