:root{
  --bg:#f6f8fa;
  --card:#ffffff;
  --muted:#6b7280;
  --accent:#0b74de;
  --radius:12px;
  --shadow: 0 10px 30px rgba(15,23,42,0.08);
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}
*{box-sizing:border-box}
html,body{
  height:100%;
  margin:0;
  background:linear-gradient(180deg,#f6f8fa,#eef6ff);
  color:#0f172a;
}
.wrap{max-width:1100px;margin:0 auto;padding:20px}

/* Header */
.site-header{padding:18px 0}
.header-inner{display:flex;justify-content:space-between;align-items:center;gap:12px}
.brand h1{margin:0;font-size:26px;color:var(--accent)}
.subtitle{margin:4px 0 0;color:var(--muted);font-size:14px}
.header-actions .btn{
  padding:8px 12px;
  border-radius:8px;
  background:#fff;
  border:1px solid rgba(15,23,42,0.06);
}

/* Layout */
.main-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  padding:18px 0;
}
@media (max-width:980px){ .main-grid{grid-template-columns:1fr} }
.panel{
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:20px;
}
.panel h2{margin:0 0 12px 0;font-size:18px;color:#0f172a}

/* Buttons */
.btn{
  padding:10px 14px;
  border-radius:10px;
  border:1px solid rgba(15,23,42,0.06);
  background:#fff;
  cursor:pointer;
  font-weight:700;
}
.btn.primary{
  background:var(--accent);
  color:#fff;
  border:none;
  box-shadow:0 8px 20px rgba(11,116,222,0.12);
}
.btn:hover{background:#f1f5f9}
.btn.primary:hover{background:#0759a6}

/* Inputs */
.input, .textarea, select{
  width:100%;
  padding:12px;
  border-radius:10px;
  border:1px solid rgba(15,23,42,0.06);
  background:#fff;
  font-size:14px;
  margin-bottom:14px; /* khoảng cách giữa các dòng input */
}
.textarea{min-height:120px;resize:vertical}
input:focus, textarea:focus, select:focus, button:focus {
  outline: 3px solid rgba(11,116,222,0.12);
  outline-offset: 2px;
}

input#shareInput {
    padding: 10px;
    margin-top: 5px;
}

/* Type buttons grid */
.type-grid{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:16px;
}
.type-btn{
  flex:1;
  min-width:100px;
  padding:10px;
  border-radius:8px;
  border:1px solid #d1d5db;
  background:#fff;
  cursor:pointer;
  font-weight:600;
}
.type-btn.active{
  background:var(--accent);
  color:#fff;
  border:none;
}

/* Form area */
.form-area .card{
  background:#f9fafb;
  border-radius:10px;
  padding:12px;
  margin-bottom:14px;
}
.label{
  font-weight:600;
  font-size:13px;
  margin-bottom:6px;
  display:block;
  color:#374151;
}

/* Logo upload */
.logo-row{display:flex;align-items:center;gap:12px}
#logoPreviewWrap{
  width:60px;height:60px;
  border:1px solid #e5e7eb;
  border-radius:8px;
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
  background:#f9fafb;
}
#logoPreview{
  max-width:100%;
  max-height:100%;
  display:none; /* ẩn khi chưa có logo */
}
#logoPreview[src]{
  display:block; /* chỉ hiển thị khi có src */
}

/* Preview */
.preview{
  background:#f9fafb;
  border-radius:12px;
  padding:20px;
  text-align:center;
  min-height:200px;
}
.download-panel{margin-top:12px}
.download-row{display:flex;gap:12px;flex-wrap:wrap}
.download-item{flex:1;min-width:120px}
.download-actions{display:flex;gap:12px}

/* Footer */
.site-footer{
  padding:20px 0;
  text-align:center;
  font-size:13px;
  color:var(--muted);
}
