@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

/* =============================================
   WAILSALUTEM FOUNDATION — DESIGN SYSTEM
   ============================================= */
 
:root {
  --color-primary: #5483b1;
  --color-primary-dark: #5483b1;
  --color-background: #FFFFFF;
  --color-text-dark: #4A4A4A;
  --color-heading: #333333;
  --color-white: #FFFFFF;
  --color-light-bg: #F5F5F5;
  --color-border: #E0E0E0;
  --color-accent: #5A7FB8;
  --color-muted: #8C8C8C;
  --font-family: 'Open Sans', 'Segoe UI', Roboto, Arial, Helvetica, sans-serif;
}
 

/* =============================================
   DARK MODE
   ============================================= */
.dark-mode {
  --color-background: #121212;
  --color-text-dark: #ffffff;
  --color-heading: #ffffff;
  --color-white: #1e1e1e;
  --color-light-bg: #2a2a2a;
  --color-border: #444;
  --color-muted: #aaa;
}

/* Dark mode button */
.dark-btn {
  margin-right: 12px;
  background: transparent;
  color: white;
  border: 2px solid white;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.dark-btn:hover {
  background: white;
  color: var(--color-primary);
}
/* =============================================
   GLOBAL STYLES
   ============================================= */
  
body {
  background-color: var(--color-background);
  color: var(--color-text-dark);
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  background-color: var(--color-background);
  font-family: var(--font-family);
  color: var(--color-text-dark);
  font-size: 16px;
  line-height: 1.6;
}
 
h1 {
  text-align: center;
  color: var(--color-heading);
  font-size: 42px;
  font-weight: 300;
  letter-spacing: -0.5px;
}
 
h2 {
  color: var(--color-heading);
  font-weight: 300;
}
 
li {
  display: inline;
}
 
a,
a:link,
a:visited {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
 
a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

 
/* =============================================
   NAVBAR
   ============================================= */

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 30px;
  background-color: var(--color-primary);
  position: relative;
}

/* LOGO LEFT */
.logo {
  height: 40px;
}

/* MENU CENTER */
.nav-center {
  display: flex;
  list-style: none;
  gap: 20px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 0;
  margin: 0;
}

.nav-center li {
  list-style: none;
}

/* WhITE BUTTONS */
.nav-center a {
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border: 2px solid white;
  border-radius: 6px;
  transition: 0.2s;
}

.nav-center a:hover {
  background-color: white;
  color: var(--color-primary);
}

/* LOGOUT RIGHT */
.nav-right {
  margin-left: auto;
}

.nav-center a,
a.logout-btn,
a.logout-btn:link,
a.logout-btn:visited {
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border: 2px solid white;
  border-radius: 6px;
  transition: 0.2s;
  background-color: transparent;
  display: inline-block;
}

.nav-center a:hover,
a.logout-btn:hover,
a.logout-btn:active,
a.logout-btn:focus {
  background-color: white;
  color: var(--color-primary);
  text-decoration: none;
}
 
/* =============================================
   LAYOUT
   ============================================= */
 
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
  padding-bottom: 60px;
  text-align: left;
}
 
/* =============================================
   FORM ELEMENT
   ============================================= */
 
input {
  width: 60%;
  font-family: var(--font-family);
  font-size: 15px;
  padding: 10px 12px;
  border: 1.5px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-text-dark);
  background: var(--color-light-bg);
  box-sizing: border-box;
}
 
input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(99, 132, 182, 0.15);
  background: var(--color-white);
}
 
/* =============================================
   TABEL
   ============================================= */
 
table {
  width: 100%;
  border-collapse: collapse;
}
 
td.fitwidth {
  width: 1px;
  white-space: nowrap;
}
 
tr.clicked {
  background-color: rgba(99, 132, 182, 0.15);
}
 
td {
  color: var(--color-text-dark);
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 400;
  min-width: 20px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
}
 
th {
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 600;
  padding: 12px;
  text-align: left;
}
 
#clicked {
  background-color: rgba(99, 132, 182, 0.25);
}
 
/* =============================================
   FOOTER
   ============================================= */
 
footer {
  position: static;
  width: 100%;
  height: 40px;
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  font-size: 13px;
  line-height: 40px;
}
 
footer a,
footer a:link,
footer a:visited {
  color: var(--color-white);
}
 
/* =============================================
   EXTRA CONTAINERS
   ============================================= */
 
.container {
  height: 60%;
  overflow-y: scroll;
}
 
/* =============================================
   CREATEACCOUNT PAGINA
   ============================================= */
 
.aanmaak-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 50px 20px;
  background-color: var(--color-background);
}
 
.aanmaak-box {
  background: var(--color-white);
  color: var(--color-text-dark);
  padding: 44px 48px;
  border-radius: 12px;
  width: 100%;
  max-width: 520px;
  text-align: left;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  margin-bottom: 80px;
  box-sizing: border-box;
}
 
.aanmaak-titel {
  font-size: 32px;
  font-weight: 300;
  color: var(--color-heading);
  text-align: center;
  margin-top: 0;
  margin-bottom: 32px;
  letter-spacing: -0.3px;
}
 
/* ---- Labels Inside aanmaak-box ---- */
 
.aanmaak-box label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 6px;
  margin-top: 20px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
 
.aanmaak-box label:first-of-type {
  margin-top: 0;
}
 
/* ---- Inputs Inside Aanmaak-box ---- */
 
.aanmaak-box input[type="text"],
.aanmaak-box input[type="email"],
.aanmaak-box input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: var(--font-family);
  color: var(--color-text-dark);
  background: var(--color-light-bg);
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}
 
.aanmaak-box input::placeholder {
  color: var(--color-muted);
}
 
.aanmaak-box input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(99, 132, 182, 0.15);
  background: var(--color-white);
}
 
/* ---- Name Row (First Name + Surname) ---- */
 
.naam-row {
  display: flex;
  gap: 12px;
}
 
.naam-row input {
  flex: 1;
  min-width: 0;
}
 
/* ---- Password Wrapper eye icon ---- */
 
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
 
.password-wrapper input {
  padding-right: 44px;
}
 
.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-muted);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  border-radius: 0;
}
 
.toggle-password:hover {
  color: var(--color-text-dark);
  background: none;
}

.toggle-password svg {
  width: 20px;
  height: 20px;
}

.toggle-password.is-visible {
  color: var(--color-primary);
}

/* ---- Submit Button (Account Aanmaken) ---- */
 
.btn-aanmaken {
  width: 100%;
  padding: 14px;
  margin-top: 30px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-family);
  color: var(--color-white);
  background-color: var(--color-primary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  display: block;
  letter-spacing: 0.2px;
}
 
.btn-aanmaken:hover {
  background-color: var(--color-primary-dark);
}
 
.btn-aanmaken:active {
  transform: scale(0.98);
}
 
/* ---- Login link Bottom ---- */
 
.login-link {
  text-align: center;
  margin-top: 22px;
  margin-bottom: 0;
  font-size: 14px;
  color: var(--color-muted);
}
 
.login-link a,
.login-link a:link,
.login-link a:visited {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}
 
.login-link a:hover {
  text-decoration: underline;
  color: var(--color-primary-dark);
}

/* =============================================
   SOCIAL ICONS
   ============================================= */
   .social-icons {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 5rem;
  height: 5rem;
  border: 0.2rem solid var(--COLOR_PRIMARY);
  border-radius: 50%;
  margin: 3rem 1.5rem;
  color: var(--COLOR_PRIMARY);
  transition: 0.3s ease;
}

.social-icons:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 0 25px var(--COLOR_PRIMARY);
}

.social-icons i {
  font-size: 2.5rem;
  transition: 0.3s ease;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* =============================================
   ABOUT US PAGE
   ============================================= */
 .over-ons-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  background-color: var(--color-background);
 }
 .over-ons-box {
  background: var(--color-white);
  color: var(--color-text-dark);
  padding: 40px 48px;
  border-radius: 12px;
  width: 100%;
  max-width: 800px;
  text-align: left;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--color-border);
 }

.wp-block-column {
    flex-grow: 1;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

 
/* =============================================
   RESPONSIVE
   ============================================= */
 
@media (max-width: 560px) {
  .aanmaak-box {
    padding: 30px 24px;
  }
 
  .naam-row {
    flex-direction: column;
    gap: 0;
  }
 
  .aanmaak-titel {
    font-size: 26px;
  }
 
  .main {
    padding-left: 16px;
    padding-right: 16px;
  }
 
  h1 {
    font-size: 30px;
  }
}

.blockly-balk {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 16px;
    margin-bottom: 12px;
}

.blockly-balk input {
    width: 280px;
}

#blocklyDiv {
    height: 480px;
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.opgeslagen {
    margin-top: 32px;
    margin-bottom: 80px;
}

/* =============================================
   BLOCKLY PAGE LAYOUT
   ============================================= */
.blockly-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.blockly-header input {
  width: 360px;
  max-width: 100%;
}

.btn-secondary {
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--color-primary);
  background: var(--color-white);
  color: var(--color-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-toolbox-toggle {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-primary);
  cursor: pointer;
  font-size: 18px;
  transition: background 0.2s ease;
}

.btn-toolbox-toggle:hover {
  background: var(--color-primary);
  color: var(--color-white);
}
.blockly-layout {
  display: grid;
  grid-template-columns: 1.2fr 420px;
  gap: 18px;
  align-items: start;
  margin-top: 6px;
}

.workspace-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#blocklyDiv.blockly-canvas {
  height: 620px;
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
  background: #fafbff;
}

.workspace-wrapper {
  position: relative;
}

.read-only-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  color: #856404;
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-weight: 500;
}


.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-box {
  background: var(--bg, #fff);
  border-radius: 8px;
  padding: 24px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.modal-box p {
  margin-bottom: 20px;
  font-size: 1rem;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

*/
.read-only-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  cursor: not-allowed;
  background: transparent;
}

.btn-run-floating {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: #00c853;
  color: white;
  font-size: 26px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(0, 200, 83, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
  z-index: 10;
}

.btn-run-floating:hover {
  transform: translateX(-50%) translateY(-1px);
  box-shadow: 0 16px 32px rgba(0, 200, 83, 0.42);
}

.side-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel {
  background: #f7fbf8;
  border: 2px solid #4caf7a;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  overflow: hidden;
}

.panel-header {
  padding: 12px 14px;
  font-weight: 700;
  color: #2f7c56;
  background: rgba(76, 175, 122, 0.1);
  letter-spacing: 0.4px;
}

.panel-body {
  padding: 14px 16px;
  white-space: pre-wrap;
  line-height: 1.5;
}

#generatedCode {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 14px;
  color: #333;
  min-height: 220px;
  line-height: 1.5;
  white-space: pre-wrap;
}

#resultContent {
  min-height: 120px;
}

.status-success {
  color: #1f8a5c;
}

.status-error {
  color: #b54747;
}

.status-warning {
  color: #b28704;
}

.muted {
  color: var(--color-muted);
}

.saved-test-result {
  display: inline-block;
  min-width: 6.5rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-weight: 700;
  text-align: center;
  background: #fff;
}

.saved-test-result.status-success {
  background: #e9f8ef;
}

.saved-test-result.status-error {
  background: #fdeeee;
}

.saved-test-result.status-warning {
  background: #fff7db;
}

.code-preview {
  background: #fff;
  border: 1px solid #dfe6ec;
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: none;
}

@media (max-width: 1080px) {
  .blockly-layout {
    grid-template-columns: 1fr;
  }

  .side-column {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .panel {
    flex: 1 1 320px;
  }
}
