/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

html{
    font-size: 16px;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

.container{
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f7fbf4;
    color: #0f172a;
    margin: 0;
}

h2 {
    margin: 1.75rem 0 0.75rem;
    font-size: 2rem;
    color: #0f5132;
}

.page-form {
    max-width: 760px;
    margin: 2rem auto 3rem;
    background: #ffffff;
    border: 1px solid #dbe7d5;
    border-radius: 24px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    padding: 2rem;
}

.login-page-form {
    max-width: 440px;
    padding: 2rem 1.75rem;
}

.page-form h1,
.page-form h2 {
    margin-top: 0;
    margin-bottom: 1.25rem;
    color: #0f5132;
}

.page-form form {
    display: grid;
    gap: 1rem;
}

.page-form label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 700;
    color: #334155;
}

.page-form input[type="text"],
.page-form input[type="password"],
.page-form input[type="date"],
.page-form select,
.page-form textarea {
    width: 100%;
    max-width: 100%;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    border: 1px solid #d1d5db;
    background: #f7f9fb;
    color: #0f172a;
    font: inherit;
    box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.page-form input[type="text"]:focus,
.page-form input[type="password"]:focus,
.page-form input[type="date"]:focus,
.page-form select:focus,
.page-form textarea:focus {
    outline: none;
    border-color: #4ade80;
    box-shadow: 0 0 0 4px rgba(134, 239, 172, 0.18);
    transform: translateY(-1px);
}

.page-form textarea {
    min-height: 180px;
    resize: vertical;
}

.page-form button {
    width: fit-content;
    padding: 0.95rem 1.5rem;
    border: none;
    border-radius: 999px;
    background: #fbbf24;
    color: #0f172a;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.page-form button:hover {
    background: #f59e0b;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.button-danger {
    background: #dc2626;
    color: #ffffff;
}

.button-danger:hover {
    background: #b91c1c;
}

.delete-form {
    margin-top: 1rem;
}

@media (max-width: 720px) {
    .page-form {
        padding: 1.5rem;
    }
}

p {
    line-height: 1.75;
}

.form-input{
    width: 600px;
}




/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: " ";
  display: table;
}

.clearfix::after {
  clear: both;
}

/*what position fixed does is that it sets the position of the item and it cant be moved*/
.welkom {
  margin: 0;
  font-size: clamp(2.5rem, 3.5vw, 4rem);
  color: #0f5132;
  line-height: 1.05;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #f3fbf0 100%);
  border: 1px solid #dbe7d5;
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  margin: 2rem 0;
}

.hero-content {
  max-width: 620px;
}

.hero-text {
  margin: 1.25rem 0 1.75rem;
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-image img {
  width: 100%;
  max-width: 420px;
  border-radius: 24px;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  gap: 0.35rem;
  text-align: center;
}

header {
    background: #166534;
    padding: 0.85rem 0;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.headerContainer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  color: #f8fafc;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.headerNav {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.headerNav a {
  text-decoration: none;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.headerNav a:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.headerActions {
  display: flex;
}

.buttonLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #0f172a;
  background: #facc15;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.buttonLink:hover {
  background: #f59e0b;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.lane-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.lane-column {
  background: #fbf7ed;
  border: 1px solid #f5dd99;
  border-radius: 18px;
  padding: 1rem;
  min-height: 320px;
}

.lane-column.todo {
  border-color: #fbbf24;
  background: #fffbeb;
}

.lane-column.doing {
  border-color: #4d7c0f;
  background: #ecfdf5;
}

.lane-column.done {
  border-color: #bef264;
  background: #f0fdf4;
}

.lane-column h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #111827;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  padding-bottom: 0.75rem;
}

.lane-task {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.lane-task-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.lane-task-top strong {
  display: block;
  font-size: 1rem;
  color: #111827;
}

.lane-task-status {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #475052;
  font-weight: 700;
}

.lane-task p {
  margin: 0 0 0.85rem;
  color: #4b5563;
  line-height: 1.5;
}

.lane-task-meta {
  display: grid;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 0.85rem;
}

.lane-task-meta span {
  display: block;
}

.lane-task {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lane-task:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
}

.lane-task a {
  color: #065f46;
  text-decoration: none;
  font-weight: 700;
}

.lane-task a:hover {
  text-decoration: underline;
}

/* Drag and Drop styles */
.lane-task {
  cursor: grab;
}

.lane-task.dragging {
  opacity: 0.5;
  cursor: grabbing;
}

.lane-column.drag-over {
  background: #fef3c7 !important;
  border-color: #f59e0b !important;
}

footer {
  margin-top: 2rem;
  background: #166534;
  color: white;
  padding: 1rem 0;
  text-align: center;
}

.lane-empty {
  padding: 1.5rem;
  color: #6b7280;
  font-style: italic;
  background: #ffffff;
  border: 1px dashed #d1d5db;
  border-radius: 14px;
}

@media (max-width: 900px) {
  .lane-board {
    grid-template-columns: 1fr;
  }
}

/* Kleine kleurige rondjes naast elke taak (gekoppeld aan data-afdeling) */
.task-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 50%;
  margin-right: 0.6rem;
  vertical-align: middle;
}

/* Kleurmapping per afdeling (gebruik lowercase waarden voor data-afdeling) */
.lane-task[data-afdeling="personeel"] .task-dot { background: #1e90ff; }
.lane-task[data-afdeling="horeca"] .task-dot { background: #ff8c00; }
.lane-task[data-afdeling="techniek"] .task-dot { background: #7c3aed; }
.lane-task[data-afdeling="inkoop"] .task-dot { background: #06b6d4; }
.lane-task[data-afdeling="klantenservice"] .task-dot { background: #ec4899; }
.lane-task[data-afdeling="groen"] .task-dot { background: #16a34a; }
.lane-task[data-afdeling="unknown"] .task-dot { background: #94a3b8; }

/* Handmatige kleurkeuze voor taken */
.task-dot.task-rood { background: #dc2626; }
.task-dot.task-oranje { background: #f97316; }
.task-dot.task-geel { background: #eab308; }
.task-dot.task-groen { background: #22c55e; }
.task-dot.task-blauw { background: #3b82f6; }
.task-dot.task-paars { background: #a855f7; }

.lane-task-top strong { vertical-align: middle; }


/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  /*
   * Printing Tables:
   * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
   */
  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}
