:root{
  /* Match your Blockly Valentine LIGHT theme */
  --bg: #fff5f8;          /* workspaceBackgroundColour */
  --panel: #ffe3ec;       /* toolboxBackgroundColour */
  --panel2: #ffd6e5;      /* flyoutBackgroundColour */
  --text: #4a1f2b;        /* toolboxForegroundColour */
  --muted: rgba(74,31,43,0.70);
  --border: rgba(201, 24, 74, 0.18); /* soft valentine red border */

  --btn: #ff5c8a;         /* scrollbarColour (nice accent) */
  --btnHover: #c9184a;    /* insertion marker red */
  --btnText: #fff5f8;

  --card: rgba(255,255,255,0.75);   /* canvas/card surfaces */
  --card2: rgba(255,255,255,0.55);
}

*{ box-sizing: border-box; }

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

/* Top bar */
.topbar{
  height: 72px;             
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}


.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .2px;
}

.brand span{
  font-size: 1.6rem;   /* try 1.4–1.8rem */
  line-height: 1.1;
}

.brand-logo{
  width: 80px;      /* adjust size */
  height: 80px;
  border-radius: 8px; /* optional: rounded */
  object-fit: contain;
}


.actions button{
  background: var(--btn);
  color: var(--btnText);
  border: 1px solid rgba(201, 24, 74, 0.25);
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  margin-left: 8px;
  box-shadow: 0 6px 16px rgba(201, 24, 74, 0.12);
}
.actions button:hover{
  background: var(--btnHover);
  border-color: rgba(201, 24, 74, 0.35);
}

/* Split layout */
.layout{
  height: calc(100vh - 52px);
  display:flex;
}

/* Left pane (Blockly) */
.leftPane{
  width: 55%;
  min-width: 420px;
  border-right: 1px solid var(--border);
  display:flex;
  flex-direction: column;
  background: var(--panel);
}

/* IMPORTANT:
   Let Blockly theme control workspace visuals.
   Keep this transparent so it doesn't fight your theme. */
#blocklyDiv{
  width: 100%;
  height: 100%;
  min-height: 520px;
  background: transparent;
}

/* Bottom hint panel */
.hint{
  padding: 10px 12px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.45);
}

/* Right pane (Canvas) */
.rightPane{
  width: 45%;
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:flex-start;
  padding: 16px;
  gap: 12px;
}

/* Canvas card */
.canvasWrap{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 10px 22px rgba(201, 24, 74, 0.08);
}

#canvas{
  width: 500px;
  height: 500px;
  border-radius: 10px;
  background: white;
  border: 1px solid rgba(201, 24, 74, 0.18);
}

/* Under-canvas meta text */
.canvasMeta{
  width: 528px;
  color: var(--muted);
  font-size: 13px;
  display:flex;
  justify-content: space-between;
  gap: 10px;
}

.status{
  text-align:right;
  max-width: 55%;
}

/* Links */
a{
  color: #c9184a;
}
a:hover{
  color: #ff5c8a;
}

.status{
  color: #ff3534;   
}
