/* ===============================
   SuperTools Global Styles
   Shared across all tools
================================ */

/* RESET */
*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
font-family:Arial, Helvetica, sans-serif;
background:#f5f7fb;
color:#333;
line-height:1.6;
}

/* ===============================
   NAVBAR
================================ */

nav{
display:flex;
justify-content:space-between;
align-items:center;
padding:15px 40px;
background:white;
box-shadow:0 2px 10px rgba(0,0,0,0.08);
}

nav h2{
font-size:22px;
}

nav a{
display:flex;
align-items:center;
gap:10px;
text-decoration:none;
color:#333;
font-weight:bold;
}

nav a img.logo{
height:38px;
width:38px;
object-fit:contain;
}

/* ===============================
   TOOL CONTAINER
================================ */

.container{
max-width:520px;
margin:90px auto;
background:white;
padding:40px;
border-radius:14px;
box-shadow:0 10px 30px rgba(0,0,0,0.08);
text-align:center;
}

h1{
margin-bottom:25px;
font-size:28px;
}

/* ===============================
   INPUT / SELECT / TEXTAREA
================================ */

input,
select,
textarea{
width:100%;
padding:12px;
border-radius:8px;
border:1px solid #ccc;
font-size:16px;
margin-bottom:15px;
}

textarea{
height:200px;
resize:none;
}

/* ===============================
   BUTTONS
================================ */

button{
background:#4facfe;
color:white;
border:none;
padding:12px 22px;
border-radius:8px;
font-size:16px;
cursor:pointer;
transition:0.25s ease;
}

button:hover{
background:#0077ff;
transform:translateY(-2px);
}

/* ===============================
   RESULT AREA
================================ */

#result{
margin-top:25px;
font-size:20px;
font-weight:bold;
}

/* ===============================
   HOME PAGE TOOL GRID
================================ */

.tools{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:25px;
padding:50px 30px;
max-width:1100px;
margin:auto;
}

.tool-card{
background:white;
padding:30px;
border-radius:14px;
box-shadow:0 5px 15px rgba(0,0,0,0.08);
text-align:center;
transition:0.35s ease;
cursor:pointer;
}

.tool-card:hover{
transform:translateY(-8px);
box-shadow:0 15px 35px rgba(0,0,0,0.15);
}

/* TOOL ICON */

.tool-icon{
font-size:40px;
margin-bottom:15px;
color:#4facfe;
}

/* CARD TEXT */

.tool-card h3{
font-size:20px;
margin-bottom:5px;
}

.tool-card p{
font-size:14px;
color:#666;
}

/* ===============================
   SEARCH BAR
================================ */

.search{
text-align:center;
margin-top:30px;
}

.search input{
width:80%;
max-width:500px;
padding:14px;
border:none;
border-radius:30px;
box-shadow:0 5px 15px rgba(0,0,0,0.15);
}

/* ===============================
   BUTTON GROUP (Text Tools)
================================ */

.buttons{
display:flex;
flex-wrap:wrap;
gap:10px;
justify-content:center;
}

/* ===============================
   STATS BOX (Word Counter)
================================ */

.stats{
display:flex;
justify-content:space-around;
margin-top:20px;
font-size:18px;
font-weight:bold;
}

.stat-box{
background:#f0f4ff;
padding:15px 25px;
border-radius:10px;
}

/* ===============================
   IMAGE PREVIEW
================================ */

img{
max-width:100%;
border-radius:8px;
margin-top:20px;
}

/* DOWNLOAD BUTTON */

.download{
margin-top:20px;
display:none;
}

/* ===============================
   FOOTER
================================ */

footer{
text-align:center;
padding:20px;
background:#111;
color:white;
margin-top:80px;
font-size:14px;
}

/* ===============================
   MOBILE OPTIMIZATION
================================ */

@media(max-width:600px){

nav{
padding:15px 20px;
}

.container{
margin:60px 15px;
padding:25px;
}

.tools{
padding:30px 20px;
}

}