@font-face {
  font-family: 'DM Sans';
  src: url('assets/DMSans_24pt-Light.ttf') format('opentype');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'DM Sans';
  src: url('assets/DMSans_24pt-LightItalic.ttf') format('opentype');
  font-weight: 300;
  font-style: italic;
}
@font-face {
  font-family: 'DM Sans';
  src: url('assets/DMSans_24pt-SemiBold.ttf') format('opentype');
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: 'DM Sans';
  src: url('assets/DMSans_24pt-SemiBoldItalic.ttf') format('opentype');
  font-weight: 600;
  font-style: italic;
}
@font-face {
  font-family: 'Dr';
  src: url('assets/Dr-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Dr';
  src: url('assets/Dr-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

:root {
  --verloop-zwart: #220503;
  --verloop-koraal: #ED6C53;
  --verloop-paars: #722483;
  --verloop-geel: #FAEB3E;
  --bg-page: #DFD8CA;
  --bg-card: #EAE6DD;
  --placeholder: rgba(34, 5, 3, 0.4);
  --font-body: 'DM Sans', sans-serif;
  --font-display: 'Dr', serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg-page);
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--verloop-zwart);
}

.viewport {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.page {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1728px;
  height: 961px;
  transform-origin: center center;
  background: var(--bg-page);
  overflow: hidden;
}

/* Header */
.header {
  position: fixed;
  left: 36px;
  top: 36px;
  z-index: 1;
}
.logo {
  display: block;
  width: 140px;
  height: auto;
}
.tool-label {
  position: absolute;
  left: 0;
  top: 41px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  white-space: nowrap;
}

.badge {
  position: fixed;
  right: 26px;
  top: 26px;
  width: 46px;
  height: 46px;
  display: block;
  z-index: 1;
}
.badge img { width: 100%; height: 100%; display: block; }

/* Cards */
.card {
  position: absolute;
  background: var(--bg-card);
}
.card-main {
  left: 274px;
  top: 143px;
  width: 698px;
  height: 674px;
}
.card-deadline {
  left: 996px;
  top: 143px;
  width: 458px;
  height: 310px;
}
.card-uploads {
  left: 996px;
  top: 477px;
  width: 458px;
  height: 341px;
  background: #fff;
}
.uploads-heading {
  position: absolute;
  left: 35px;
  top: 27px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 27px;
  color: var(--verloop-zwart);
}
.uploads-list {
  position: absolute;
  left: 35px;
  top: 78px;
  right: 20px;
  bottom: 20px;
  margin: 0;
  padding: 0 14px 0 0;
  list-style: none;
  overflow-y: auto;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 20px;
  color: var(--verloop-zwart);
}
.uploads-list li {
  line-height: 35px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.uploads-list:empty::before {
  content: 'Nog geen bestanden geüpload.';
  color: var(--placeholder);
  font-size: 18px;
}
.uploads-list::-webkit-scrollbar { width: 9px; }
.uploads-list::-webkit-scrollbar-track { background: transparent; }
.uploads-list::-webkit-scrollbar-thumb { background: var(--verloop-zwart); border-radius: 31px; }

.heading {
  position: absolute;
  left: 40px;
  top: 11px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 60px;
  line-height: 126px;
  white-space: nowrap;
}

.intro {
  position: absolute;
  left: 42px;
  top: 129px;
  width: 584px;
  margin: 0;
  font-weight: 300;
  font-size: 20px;
  line-height: normal;
}

.field {
  position: absolute;
  left: 42px;
  background: #fff;
}
.field-title {
  top: 216px;
  width: 615px;
  height: 52px;
}
.field-title .field-value {
  position: absolute;
  left: 14px;
  top: 13px;
  font-size: 20px;
}
.field-dropzone {
  top: 288px;
  width: 615px;
  height: 267px;
}
.field-placeholder {
  position: absolute;
  left: 14px;
  top: 13px;
  font-size: 20px;
  color: var(--placeholder);
}
.field-textarea {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 13px 14px;
  border: none;
  outline: none;
  resize: none;
  background: transparent;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 20px;
  color: var(--verloop-zwart);
}
.field-textarea::placeholder {
  color: var(--placeholder);
  opacity: 1;
}

.btn {
  position: absolute;
  top: 578px;
  height: 49px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
}
.btn span {
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-primary {
  left: 42px;
  width: 148px;
  background: var(--verloop-koraal);
  color: #fff;
  transition: background-color 0.15s ease, color 0.15s ease, width 0.15s ease;
}
.btn-primary:hover {
  width: 164px;
  background: #fff;
  color: var(--verloop-zwart);
}
.icon-arrow {
  width: 15px;
  height: 15px;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width 0.15s ease, opacity 0.15s ease;
}
.btn-primary:hover .icon-arrow {
  max-width: 15px;
  opacity: 1;
}
.btn-secondary {
  transition: left 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  left: 208px;
  width: 261px;
  background: transparent;
  border: 1px solid var(--verloop-zwart);
  color: var(--verloop-zwart);
  cursor: pointer;
}
.btn-primary:hover ~ .btn-secondary {
  left: 224px;
}
.btn-secondary:hover,
.btn-secondary.uploading,
.btn-secondary.uploaded {
  background: var(--verloop-paars);
  border-color: var(--verloop-paars);
  color: #fff;
}

.icon-slot {
  position: relative;
  width: 21px;
  height: 22px;
  display: inline-block;
}
.icon-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.icon-slot { overflow: hidden; }

.icon-bracket {
  transition: filter 0.15s ease;
}
.btn-secondary:hover .icon-bracket,
.btn-secondary.uploading .icon-bracket,
.btn-secondary.uploaded .icon-bracket {
  filter: brightness(0) invert(1);
}

@keyframes iconFallIn {
  0% { transform: translateY(-10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.icon-fall-arrow {
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.4s cubic-bezier(0.55, 0, 1, 0.45), opacity 0.15s ease 0.28s, filter 0.15s ease;
}
.btn-secondary:hover .icon-fall-arrow {
  filter: brightness(0) invert(1);
}
.btn-secondary:hover:not(.uploading):not(.uploaded) .icon-fall-arrow {
  animation: iconFallIn 0.5s ease-out;
}
.btn-secondary.uploading .icon-fall-arrow,
.btn-secondary.uploaded .icon-fall-arrow {
  transform: translateY(10px);
  opacity: 0;
  filter: brightness(0) invert(1);
}

.icon-check {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.btn-secondary.uploading .icon-check,
.btn-secondary.uploaded .icon-check {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}
.btn-dark {
  left: 42px;
  top: 219px;
  width: 167px;
  justify-content: flex-start;
  padding-left: 28px;
  background: var(--verloop-zwart);
  color: #fff;
  border: 1px solid var(--verloop-zwart);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn-dark:hover:not(.afgerond) {
  background: #fff;
  color: var(--verloop-zwart);
  border-color: #fff;
}
.btn-dark.afgerond {
  background: #fff;
  color: var(--verloop-zwart);
  border-color: #fff;
  cursor: default;
}
.icon-afgerond-check {
  width: 15px;
  height: 11px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.btn-dark.afgerond .icon-afgerond-check {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}

.deadline {
  position: absolute;
  left: 42px;
  top: 41px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 32px;
  white-space: nowrap;
  transition: top 0.15s ease;
}
.deadline-label { font-weight: 500; }

.progress-track {
  position: absolute;
  left: 41px;
  top: 111px;
  width: 378px;
  height: 16px;
  background: #fff;
  transition: top 0.15s ease;
}
.progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 89px;
  height: 16px;
  background: var(--verloop-koraal);
  transition: width 0.15s ease;
}

.deadline-copy {
  position: absolute;
  left: 42px;
  top: 144px;
  width: 377px;
  margin: 0;
  font-weight: 300;
  font-size: 20px;
  transition: top 0.15s ease;
}

/* Deadline warning states */
.deadline-warning-row {
  position: absolute;
  left: 41px;
  top: 48px;
  width: 340px;
  display: none;
  line-height: 1.3;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  color: var(--verloop-koraal);
}
.deadline-warning-days { text-decoration: underline; }
.deadline-warning-icon {
  position: absolute;
  left: 412px;
  top: 13px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--verloop-koraal);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 27px;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
}
.card-deadline.deadline-warn { height: 351px; }
.card-deadline.deadline-warn .deadline-warning-row { display: block; }
.card-deadline.deadline-warn .deadline-warning-icon { display: flex; }
.card-deadline.deadline-warn .deadline { top: 90px; line-height: 1; }
.card-deadline.deadline-warn .progress-track { top: 148px; }
.card-deadline.deadline-warn .deadline-copy { top: 181px; }
.card-deadline.deadline-warn .btn-dark { top: 257px; }
.card-deadline.deadline-warn .progress-fill { width: 321px; }
.card-deadline.deadline-expired .progress-fill { width: 378px; }
.deadline-warning-icon .excl { display: inline-block; position: relative; top: -3px; }
.deadline-warning-icon .excl-2 { display: none; }
.card-deadline.deadline-expired .deadline-warning-icon { gap: 3px; }
.card-deadline.deadline-expired .deadline-warning-icon .excl-2 { display: inline; }

/* Footer */
.footer-link {
  position: fixed;
  bottom: 30px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 20px;
  color: var(--verloop-zwart);
  text-decoration: underline;
  white-space: nowrap;
  z-index: 1;
}
.footer-link-left { left: 36px; }
.footer-link-right { right: 36px; }

.toast {
  position: absolute;
  left: 428px;
  top: 841px;
  width: 390px;
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  background: var(--verloop-geel);
  color: var(--verloop-zwart);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 20px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast.visible {
  opacity: 1;
  transform: translateY(0);
}
.toast-success {
  left: 428px;
  width: 390px;
  background: var(--verloop-geel);
  color: var(--verloop-zwart);
}
.toast-error {
  left: 291px;
  width: 665px;
  background: var(--verloop-koraal);
  color: #fff;
}
