/* Theme-variabelen */
:root {
  --brand-color: #99B024;
  --main-font: 'Poppins-Regular', sans-serif;
}

.theme-packagingdirect {
  /* zelfde als default */
  --brand-color: #99B024;
  --main-font: 'Poppins-Regular', sans-serif;
}

.theme-bordexdirect {
  /* voor BordexDirect: Arial en #00338d */
  --brand-color: #00338d;
  --main-font: Arial, sans-serif;
}



/* Fonts */
@font-face {
  font-family: 'Menco';
  src: url(Menco.ttf) format('truetype');
}

@font-face {
  font-family: 'Poppins-Regular';
  src: url(Poppins-Regular.ttf) format('truetype');
}


/* Basis-styling */
body {
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  /* body pakt hier de main-font variabele */
  font-family: var(--main-font);
}

.container {
  width: 80%;
  margin: auto;
  overflow: hidden;
}

@media screen and (max-width: 768px) {
  .container {
    width: 100%;
  }

  main {
    background: #fff;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
    width: 90%;
  }
}

header {
  background: #fff;
  color: #fff;
  padding-top: 30px;
  min-height: 100px;
  border-bottom: var(--brand-color) 15px solid;
}

header .logo {
  width: 200px;
  display: block;
  margin: 0 auto;
}

main {
  background: #fff;
  padding: 20px;
  margin-top: 20px;
  text-align: center;
}

h1, h2 {
  font-family: 'Menco';
  color: #333332;
  text-align: center;
}

p,
#main-content p {
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  color: #333332;
}

.input-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

input[type="text"] {
  width: 300px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: var(--main-font);
  margin-right: 10px;
  font-size: 16px;
}

.button {
  background-color: var(--brand-color);
  color: white;
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px;
  font-family: var(--main-font);
}

.button:hover {
  background-color: #88a020; /* blijft hetzelfde, of pas aan naar filter: brightness(0.9); */
}

.button .loader {
  display: none;
  border: 4px solid #f3f3f3;
  border-radius: 50%;
  border-top: 4px solid white;
  width: 10px;
  height: 10px;
  animation: spin 1s linear infinite;
  margin-left: 10px;
}

.button.loading .loader {
  display: inline-block;
}

.button.loading {
  background-color: #ddd;
  cursor: not-allowed;
}

.button.loading span {
  display: none;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hidden {
  display: none;
}

.proefdruk-container {
  text-align: center;
  margin: 20px 0;
}

.proefdruk {
  max-width: 100%;
  border: 1px solid #ddd;
  box-shadow: 2px 2px 12px rgba(0,0,0,0.1);
}

.button-container {
  text-align: center;
  margin: 20px 0;
}

#modalNietAkkoord textarea {
  width: 80%;
  height: 150px;
  padding: 10px;
  margin-top: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: var(--main-font);
}

footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 10px 0;
  margin-top: 20px;
  border-top: var(--brand-color) 3px solid;
}

.modal {
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  text-align: center;
  border-radius: 5px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.confirmation-message {
  background-color: #f0f0f0;
  border: 2px solid #ddd;
  padding: 20px;
  text-align: center;
  margin-top: 20px;
  border-radius: 5px;
}

.confirmation-text {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4caf50;
  font-size: 16px;
  font-family: var(--main-font);
}

.check-icon {
  margin-right: 10px;
  font-size: 16px;
}

.progress-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 50px 0 15px;
  position: relative;
}

.progress-step {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ddd;
  color: #333332;
  padding: 10px;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  margin: auto;
  font-size: 24px;
}

.progress-step span {
  display: block;
  color: #333332;
  margin-top: 10px;
  font-size: 14px;
  font-family: var(--main-font);
}

.progress-step.active .step-icon,
.progress-step.completed .step-icon {
  background-color: var(--brand-color);
  color: white;
}

.tooltip {
  background-color: var(--brand-color);
  color: #fff;
  padding: 10px;
  border-radius: 5px;
  font-size: 12px;
  position: absolute;
  width: 150px;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-family: var(--main-font);
  margin-top: 10px;
}

.progress-step:hover .tooltip {
  opacity: 1;
}

.error-message {
  background-color: #f0f0f0;
  border: 2px solid #ddd;
  padding: 20px;
  text-align: center;
  margin-top: 20px;
  border-radius: 5px;
}

.error-text {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f44336;
  font-size: 16px;
  font-family: var(--main-font);
}

.error-icon {
  margin-right: 10px;
  font-size: 24px;
}

/* Dropdown styling */
.dropdown-container {
  margin: 20px 0;
  text-align: center;
}

label[for="productSelect"] {
  font-size: 16px;
  color: #333332;
  margin-right: 10px;
  font-family: var(--main-font);
}

select#productSelect {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: var(--main-font);
  color: #333332;
}

.block-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.block {
  background: #f4f4f4;
  border: 2px solid #ddd;
  border-radius: 10px;
  text-align: center;
  padding: 20px;
  width: 200px;
  color: #333;
  transition: background 0.3s, border-color 0.3s;
  position: relative;
}

@media (max-width: 600px) {
  .block-container {
    flex-direction: column;
    align-items: center;
  }

  .block {
    width: 90%;
    margin-bottom: 20px;
  }
}

.block:hover {
  background: #fff;
  border-color: var(--brand-color);
}

.block-icon {
  font-size: 48px;
  color: var(--brand-color);
  margin-bottom: 10px;
}

.block h2 {
  font-size: 20px;
  margin: 10px 0;
  font-family: var(--main-font);
}

.block p {
  font-size: 14px;
  font-family: var(--main-font);
  color: #666;
}

#colors {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.color-circle {
  width: 75px;
  height: 75px;
  border-radius: 5px;
  margin: 10px;
  cursor: pointer;
  border: solid 2px #000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 6px 20px rgba(0,0,0,0.19);
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 10px;
}

.color-circle:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 16px rgba(0,0,0,0.4), 0 12px 30px rgba(0,0,0,0.3);
}

.color-code {
  margin-top: 5px;
  font-size: 18px;
  cursor: pointer;
  font-family: var(--main-font);
}

input[type="file"].button:hover {
  background-color: var(--brand-color);
  filter: brightness(0.9);
}

input[type="file"].button::file-selector-button {
  border: none;
  background: none;
  font-weight: bold;
  color: inherit;
  cursor: pointer;
  font-family: var(--main-font);
}

input[type="file"].button:hover::file-selector-button {
  text-decoration: underline;
}

#color-palettes {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.palette {
  display: flex;
  margin: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  font-family: var(--main-font);
}

.palette-color {
  width: 75px;
  height: 75px;
  position: relative;
  cursor: pointer;
}

.color-palettes-title {
  display: none;
}

#result {
  margin-top: 20px;
  font-size: 18px;
  font-family: var(--main-font);
}

#loader {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  color: #333;
  font-family: var(--main-font);
}

/* Verberg de body tot theme.js de class weghaalt */
body.theme-loading {
  opacity: 0;
}

/* Keyframe voor fade-in */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Zodra de loading-class weg is, start de animatie */
body:not(.theme-loading) {
  animation: fadeIn 0.3s ease-in-out forwards;
}
