/* --- STIJL GEBASEERD OP ROOT-LANDING.CSS --- */
:root {
  --bg: #000;
  --overlay: rgba(0,0,0,.65);
  --panel: rgba(15,22,38,.94);
  --border: #1f2a37;
  --text: #fff;
  --muted: #9ca3af;
  --accent: #facc15; /* Geel accent */
  --accent2: #7dd3fc; /* Blauw accent voor labels */
  --radius: 16px;
  --shadow: 0 14px 40px rgba(0,0,0,.5);
  --error-red: #ff4444;
  --success-green: #44ff44;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  font-family: system-ui, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  padding: 20px;
}

.app-container {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 20px;
  width: 100%;
  max-width: 1400px;
  margin: 20px auto;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.header-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.header-icon {
  height: 40px;
  width: auto;
}
h1 {
  font-size: 22px;
  margin: 0;
  color: var(--text);
}

label {
  display: block;
  font-weight: 600;
  margin: 15px 0 8px 0;
  font-size: 14px;
  color: var(--accent2);
}

input[type="text"], select, input[type="number"], input[type="color"] {
  width: 100%;
  box-sizing: border-box;
  background: #0f1626;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}

input[type="color"] {
  padding: 6px;
  height: 49px;
  cursor: pointer;
}

input:focus, select:focus {
  border-color: var(--accent);
}

.input-error {
  border-color: var(--error-red) !important;
}

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

.btn {
  cursor: pointer;
  border: 1px solid var(--border);
  background: #0f1626;
  color: var(--text);
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.2s;
  width: 100%;
}

.btn:hover {
  background: #18243c;
  transform: translateY(-1px);
}

.btn.primary {
  background-color: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.btn.primary:hover {
  background-color: #fce16a;
}

.preview-wrap {
  justify-content: space-between;
}

.canvas-wrap {
  flex-grow: 1;
  display: grid;
  place-items: center;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background-color: #222;
  background-image: 
    linear-gradient(45deg, #333 25%, transparent 25%), 
    linear-gradient(-45deg, #333 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, #333 75%), 
    linear-gradient(-45deg, transparent 75%, #333 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  min-height: 200px;
}

canvas {
  max-width: 100%;
  display: block;
}

.hint, .format-label {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

img#kickKImg { display: none; }

.error-message {
  color: var(--error-red);
  font-size: 12px;
  margin-top: 5px;
  display: none;
}

.success-message {
  color: var(--success-green);
  font-size: 12px;
  text-align: center;
  margin-top: 15px;
  display: none;
}

.export-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.export-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 200px;
  background-color: #111;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 12px;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Footer */
.footer-box{
  text-align:center;
  width: 100%;
  max-width: 1080px;
  margin: 30px auto 0;
}
.footer-line{
  color:var(--muted);
  font-size:13px;
  margin-bottom: 8px;
}
.footer-links a, .footer-links a:visited {
  color: var(--accent);
  text-decoration: none;
  transition: color .2s ease;
}
.footer-links a:hover {
  color: var(--accent2);
}