:root{
  --bg:#ffffff;
  --card:#f8fbff;
  --muted:#6b7280;
  --accent:#3b82f6;     /* Cool blue */
  --accent2:#60a5fa;    /* Lighter blue gradient */
  --glass: rgba(255,255,255,0.6);
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial;
  background:#ffffff;
  color:#1e293b;
  -webkit-font-smoothing:antialiased;
}

.container{
  max-width:1200px;
  margin:28px auto;
  padding:20px;
}

.header{
  display:flex;
  align-items:center;
  gap:16px;
  background:#f0f7ff;
  padding:14px;
  border-radius:12px;
  box-shadow:0 6px 18px rgba(0,0,0,0.08);
  border:1px solid #e2e8f0;
}

.header img{
  height:56px;
  border-radius:8px;
}

.brand h1{
  margin:0;
  font-size:20px;
  color:#1e293b;
}

.brand p{
  margin:0;
  color:var(--muted);
  font-size:13px;
}

.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin-top:18px;
}

.card{
  background:#ffffff;
  padding:16px;
  border-radius:12px;
  border:1px solid #e5e7eb;
  box-shadow:0 6px 14px rgba(0,0,0,0.05);
}

.card h3{
  margin:0 0 10px 0;
  color:#1e293b;
}

.input, input, select, textarea, button{
  font-size:14px;
  padding:10px;
  border-radius:8px;
  border:1px solid #cbd5e1;
  background:#f8fafc;
  color:#1e293b;
}

.btn{
  background:linear-gradient(90deg, var(--accent), var(--accent2));
  color:white;
  border:none;
  padding:10px 12px;
  border-radius:8px;
  cursor:pointer;
  box-shadow:0 2px 6px rgba(59,130,246,0.3);
}

.btn.secondary{
  background:#f1f5f9;
  border:1px solid #cbd5e1;
  color:#475569;
}

.small{
  font-size:13px;
  color:var(--muted);
  margin-top:8px;
}

.footer{
  margin-top:20px;
  text-align:center;
  color:var(--muted);
  font-size:13px;
}

/* Responsive Layout */
@media(max-width:980px){
  .grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:640px){
  .grid{grid-template-columns:1fr}
  .header{flex-direction:column;align-items:flex-start}
  img{height:48px}
}

/* select/listbox background update */
.input, select { background:#f1f5f9; }
select option { background:white; color:#1e293b; }


/* ===== PAGE-WIDE TOOL GRID FIX ===== */
body {
  margin: 0;
  background: #f5f7fb;
}

/* Tool grid */
.grid, .tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Tool card */
.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;

  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  text-decoration: none;
  color: #000;

  height: 180px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.12);
}

/* Fixed image */
.tool-card img {
  width: 96px;
  height: 96px;
  object-fit: fill;
  margin-bottom: 12px;
}

/* Fixed title */
.tool-card h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}
