/* style.css - Tools with Fun */
:root{ --bg:#f7f8fc; --card:#ffffff; --text:#0f172a; --muted:#6b7280; --glass: rgba(255,255,255,0.6); }
[data-theme="dark"]{ --bg:#0b1220; --card:#071226; --text:#e6eef8; --muted:#94a3b8; --glass: rgba(255,255,255,0.03); }
*{box-sizing:border-box} body{margin:0;font-family:Inter,Arial;background:var(--bg);color:var(--text)} .theme-toggle{cursor: pointer}.container{max-width:1100px;margin:24px auto;padding:16px} .header{display:flex;align-items:center;justify-content:space-between} .brand{display:flex;align-items:center;gap:12px} .brand img{width:52px;height:52px;border-radius:10px} .nav{display:flex;gap:12px;align-items:center;margin-top:12px} .nav a{padding:8px 12px;border-radius:8px;text-decoration:none;color:var(--muted)} .nav a.active{background:var(--glass);color:var(--text)} .search{display:flex;align-items:center;gap:8px;background:var(--card);padding:8px;border-radius:10px} .search input{border:0;background:transparent;padding:8px;width:220px;color:var(--text)} .btn{padding:8px 12px;border-radius:10px;border:0;cursor:pointer;background:linear-gradient(90deg,#7ee8fa,#80ff72);font-weight:700} .grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px;margin-top:18px} .card{background:var(--card);border-radius:14px;padding:16px;box-shadow:0 6px 18px rgba(11,20,34,0.06);transition:transform .18s ease} .card:hover{transform:translateY(-6px)} .modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(2,6,23,0.45);z-index:60;padding:20px} .modal.show{display:flex} .modal-card{width:100%;max-width:720px;background:var(--card);padding:18px;border-radius:12px} .input,textarea,select{padding:10px;border-radius:8px;border:1px solid rgba(0,0,0,0.06);width:100%;background:transparent;color:var(--text)} .small{width:140px} .actions{display:flex;gap:8px;justify-content:flex-end;margin-top:12px} .result{margin-top:12px;padding:12px;background:linear-gradient(135deg,rgba(0,0,0,0.02),rgba(0,0,0,0.01));border-radius:10px;font-weight:700} footer.footer{margin-top:28px;padding:20px;border-radius:12px;background:var(--card);display:flex;justify-content:space-between;align-items:center} @media (max-width: 640px) {
  /* Header layout */
  .header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .brand {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .brand img {
    width: 60px;
    height: 60px;
  }

  /* Search + Theme Toggle Section */
  .search {
    width: 90%;
    justify-content: center;
    margin: 10px auto;
  }

  .search input {
    width: 100%;
    max-width: 200px;
  }

  .theme-toggle {
    margin-top: 8px;
    cursor: pointer;
  }

  /* Navigation (Categories) */
  .nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
  }

  .nav a {
    font-size: 0.85rem;
    padding: 6px 10px;
    color: var(--muted);
  }

  .nav a.active {
    background: var(--glass);
    color: var(--text);
  }

  /* Cards Grid */
  .grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Footer */
  footer.footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}