*{box-sizing:border-box;margin:0;padding:0;font-family:Arial,sans-serif}

body{background:#f4f7fb;color:#222}

.top-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 20px;
  background:#1ebfdb;
  color:#fff;
}

.logo img{height:40px}

.nav a{
  margin:0 10px;
  color:#fff;
  text-decoration:none;
}

.user img{
  height:36px;
  width:36px;
  border-radius:50%;
}

.layout{
  display:grid;
  grid-template-columns:250px 1fr 220px;
  gap:15px;
  padding:15px;
  flex: 1;   /* ⭐ IMPORTANT */
}


.sidebar{
  background:#fff;
  padding:15px;
  border-radius:8px;
}

.acc-btn{
  width:100%;
  background:#eee;
  border:none;
  padding:10px;
  margin-top:8px;
  text-align:left;
  cursor:pointer;
}

.acc-panel{
  display:none;
  padding-left:10px;
}

.acc-panel a{
  display:block;
  padding:6px 0;
  text-decoration:none;
  color:#333;
}

.content{
  background:#fff;
  padding:20px;
  border-radius:8px;
}

.tools-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:15px;
  margin-top:20px;
}

.tool-card{
  background:#f9f9f9;
  padding:15px;
  border-radius:6px;
}

.ads .ad-box{
  background:#fff;
  height:200px;
  margin-bottom:15px;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
}

html, body {
  height: 100%;
}

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.footer{
  background:#222;
  color:#fff;
  text-align:center;
  padding:20px;
}


.footer-links a{
  color:#1ebfdb;
  margin:0 8px;
  text-decoration:none;
}

/* Mobile Responsive */
@media(max-width:900px){
  .layout{
    grid-template-columns:1fr;
  }
  .nav{display:none;}
}
.tool-page{
  max-width:1200px;
  margin:auto;
  padding:20px;
}

.tool-desc{
  color:#555;
  margin-bottom:20px;
}

.tool-wrapper{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}

.tool-controls,
.tool-preview{
  background:#fff;
  padding:20px;
  border-radius:10px;
}

.tool-controls label{
  font-weight:600;
  margin-top:12px;
  display:block;
}

.tool-controls input,
.tool-controls select{
  width:100%;
  padding:10px;
  margin-top:6px;
}

.row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.checkbox{
  margin:15px 0;
}

.btn-primary{
  background:#1ebfdb;
  color:#fff;
  border:none;
  padding:12px;
  width:100%;
  margin-top:10px;
  cursor:pointer;
}

.btn-secondary{
  background:#eee;
  border:none;
  padding:10px;
  width:100%;
  margin-top:8px;
}

.processing{
  display:none;
  margin-top:10px;
  color:#888;
}

.tool-preview canvas{
  max-width:100%;
  border:1px dashed #ccc;
  margin-bottom:15px;
}

.download-btn{
  display:none;
  background:#1ca67a;
  color:#fff;
  padding:10px 15px;
  text-decoration:none;
}

/* Mobile */
@media(max-width:900px){
  .tool-wrapper{
    grid-template-columns:1fr;
  }
}
.tool-btn{
  background:#5bc0de;
  color:#fff;
  padding:10px;
  border-radius:6px;
  text-decoration:none;
  font-size:14px;
  box-shadow:0 3px 6px rgba(0,0,0,.15);
}
.tool-btn i{
  margin-right:6px;
}
.tool-btn:hover{
  background:#31b0d5;
}
