#educentre-qr-generator{width:100%;display:block;font-family:"Segoe UI",Inter,system-ui,sans-serif;color:#183247}
#educentre-qr-generator *,#educentre-qr-generator *::before,#educentre-qr-generator *::after{box-sizing:border-box}
#educentre-qr-generator button,#educentre-qr-generator input,#educentre-qr-generator select{font-family:inherit}


*{box-sizing:border-box}
body{
  margin:0;padding:24px 14px;min-height:100vh;
  font-family:"Segoe UI",Inter,system-ui,sans-serif;
  background:#eef2f8;color:#183247;
}
.app{max-width:1450px;margin:auto}
.header{text-align:center;margin:5px 0 20px}
.header h1{margin:0;font-size:2rem;color:#173b55}
.header p{margin:7px 0 0;color:#61788d;font-size:.9rem}
.mode-switch{
  display:flex;justify-content:center;gap:8px;margin:0 auto 20px;
  background:#fff;padding:7px;border-radius:50px;box-shadow:0 8px 25px #00000012;
  max-width:430px;
}
.mode-btn{
  flex:1;border:0;background:transparent;color:#49657b;
  padding:12px 18px;border-radius:40px;font-weight:700;cursor:pointer;
}
.mode-btn.active{background:#2c7da0;color:#fff}
.panel{display:none}
.panel.active{display:block}
.layout{display:flex;flex-wrap:wrap;gap:24px}
.editor,.preview{
  background:#fff;border-radius:30px;padding:24px;
  box-shadow:0 16px 35px #00000012;border:1px solid #ffffffaa;
}
.editor{flex:1.15;min-width:320px}
.preview{flex:1;min-width:320px;display:flex;flex-direction:column;align-items:center}
h2{margin:0 0 6px;color:#1f4058;font-size:1.35rem}
.sub{color:#6c8294;font-size:.78rem;margin-bottom:20px}
.group{margin-bottom:16px}
label{display:block;font-size:.8rem;font-weight:700;color:#27465b;margin-bottom:6px}
input[type=text],input[type=number],select{
  width:100%;padding:11px 14px;border:1.5px solid #dce6ee;border-radius:14px;
  background:#fff;font:inherit;font-size:.9rem;outline:none;
}
input:focus,select:focus{border-color:#2c7da0;box-shadow:0 0 0 3px #2c7da022}
.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.row>*{flex:1;min-width:100px}
button.action{
  width:100%;border:0;border-radius:40px;padding:13px 20px;
  color:#fff;background:#2c7da0;font-weight:700;cursor:pointer;margin-top:6px;
}
button.action:hover{filter:brightness(.92)}
button.download{background:#2c6e49}
.qr-stage{
  width:100%;min-height:280px;display:flex;align-items:center;justify-content:center;
  background:#fafcff;border-radius:22px;padding:20px;margin:5px 0 15px;
  border:1px solid #edf2f7;overflow:auto;
}
#simple-qrcode,#custom-qrcode{display:flex;align-items:center;justify-content:center;max-width:100%}
canvas{max-width:100%;height:auto;background:#fff}
.status{font-size:.75rem;text-align:center;color:#2c7da0;min-height:18px;margin:4px}
.card{
  background:#f8fbfe;border:1px solid #e8f0f6;border-radius:22px;padding:15px;margin:14px 0;
}
.checkbox{display:flex;align-items:center;gap:9px;font-weight:700;margin-bottom:12px;cursor:pointer}
.checkbox input{width:18px;height:18px;accent-color:#2c7da0}
.file-box{position:relative}
.file-box input[type=file]{
  position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;
}
.file-label{
  display:block;padding:12px 14px;text-align:center;border:1.5px dashed #8aa9c9;
  border-radius:14px;background:#edf5fb;color:#26648b;cursor:pointer;font-weight:600;
}
.file-name{font-size:11px;color:#2d6a4f;margin-top:6px;min-height:15px}
.range-row{display:flex;gap:12px;align-items:center}
.range-row input{flex:1}
.range-value{background:#edf2f8;padding:5px 10px;border-radius:30px;font-size:.78rem;min-width:48px;text-align:center}
.badge{display:inline-block;background:#eaf3f8;color:#2c7da0;padding:5px 11px;border-radius:30px;font-size:.7rem;font-weight:700}
.side-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;margin-top:10px}
.side-card{border:1px solid #e5edf4;border-radius:18px;padding:13px;background:#fff}
.side-title{font-weight:800;font-size:.85rem;margin-bottom:9px}
.side-controls{display:none}
.small-inputs{display:grid;grid-template-columns:1fr 85px 50px;gap:7px;margin-top:7px}
.small-inputs select,.small-inputs input{min-width:0;padding:8px 9px}
.note{font-size:.68rem;color:#71879a;text-align:center;margin-top:10px;line-height:1.45}
@media(max-width:760px){
  body{padding:14px 9px}.editor,.preview{padding:17px;border-radius:23px}
  .layout{gap:15px}.header h1{font-size:1.55rem}.mode-switch{margin-bottom:14px}
}

/* WordPress embed isolation */
#educentre-qr-generator {
  all: initial;
  display:block;
  width:100%;
  font-family:"Segoe UI",Inter,system-ui,sans-serif;
  color:#183247;
}
#educentre-qr-generator *, #educentre-qr-generator *::before, #educentre-qr-generator *::after {
  box-sizing:border-box;
}
#educentre-qr-generator .app {
  font-family:"Segoe UI",Inter,system-ui,sans-serif;
}
#educentre-qr-generator button,
#educentre-qr-generator input,
#educentre-qr-generator select {
  font-family:inherit;
}
