* {
    box-sizing: border-box;
}

/* === ROOTVARIABELEN === */
:root {

  /* === KLEUREN === */
  --primary-color: #2c7be5; 
  --accent-color: #f2994a; 
  --background-color: #f5f5f5;
  --text-color: #333;
  --tile-color: #999;
  --tile-hover: #007BFF;
  --tile-radius: 12px;
  --button-color: #2f70ff;
  --button-hover: #1e5dd1;
  --header-color: #444;
  --tile-shadow: #666;

  /* === FONT SIZES === */
  --font-title: 1.6rem;
  --font-subtitle: 1.4rem;
  --font-subsubtitle: 1.3rem;
  --font-subsubsubtitle: 1.1rem;
  --font-regular: 1.0rem;
  --font-small: 0.9rem;
  --font-toelichting: 0.95rem;
  --font-dropdown: 0.85rem;
  --font-elearning: 1.0rem;
  --font-telearning:1.2rem;
  --font-tselearning:1.1rem;
  --font-button: 1.2rem;

  /* === FONT FAMILIES === */
  --font-title-family: 'Source Sans Pro', sans-serif;
  --font-body-family: 'Open Sans', sans-serif;
  --font-button-family: 'Barlow', sans-serif;

  /* === SPACING === */
  --platform-width: 1000px;
  --inline-normal: 40px;
  --inline-mobile: 15px;
  --block-gap: 20px;
  --grid-gap: 20px;
  --padding-header: ;
}

/* === INLOGPAGINA === */

.login-wrapper {
  max-width: 500px;
  margin: 100px auto;
  width: calc(100% - var(--inline-normal));
}

.login-container {
  border-radius: 12px;
  padding: 40px 40px 40px 35px;
  background: linear-gradient(160deg,#e6e6e6,#f8f8f8);
  box-shadow: inset 5px 0 0 0 var(--accent-color), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.login-title {
  font-family: var(--font-title-family);
  font-size: var(--font-title);
  color: var(--text-color);
  margin-bottom: 5px;
}

.login-subtitle{
  font-size: var(--font-regular);
  font-family: var(--font-body-family);
  color: var(--text-color);
  margin-top: 0;
  padding-bottom: 25px;
}

.login-label {
  font-size: var(--font-regular);
  color: var(--text-color);
  font-family: var(--font-body-family);
  font-weight: bold;
  margin-bottom: 10px;
  display: block;
  text-align: left;
}

.login-input {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: var(--font-regular);
  font-family: var(--font-body-family);
  color: var(--text-color);
}

.login-button {
  width: 100%;
  padding: 12px;
  background-color: var(--button-color);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: var(--font-button-family);
  font-size: var(--font-button);
  font-weight: 400;
}

.login-button:hover {
  background-color: var(--button-hover);
}

.login-input,
.login-button {
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .login-wrapper {
    width: calc(100% - var(--inline-mobile));
  }
}

/* === HEADER EN NAVIGATIE === */

.site-header {
  background-color: var(--header-color);
  color: var(--primary-color);
  padding: 20px 0px;
  margin: 20px auto;
  width: calc(100% - var(--inline-normal));
  max-width: var(--platform-width);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.site-header::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 70%;
  height: 100%;
  background: linear-gradient(
      to top right,
      #444,
      #555
      );
  clip-path: polygon(0 100%, 100% 0, 100% 100%, 0 100%);
  z-index: 0;
}

.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 80px 0px 0px 0px;
  z-index: 2;
}

.header-text {
  color: white;
  font-size: 0.9rem;
  align-items: left;
  position: relative;
  z-index: 3;
  position: relative;
  padding-bottom: 12px;
}

.header-subtext {
  color: white;
  font-family: var(--font-title-family);
  font-size: 1.8rem;
  margin: 0 0 0 45px;
  line-height: 1.2;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  gap: 15px;
  height: 100%;
  z-index: 2;
  position: relative;
}

.header-subtext i {
  font-size: 1.8rem;
  color: var(--accent-color);
  position: relative;
  top: -3px;
}

.site-header nav {
  margin-top: 0px;
  display: flex;
  justify-content: right;
  gap: 25px;
  padding-right: 40px;
  z-index: 2;
}

.site-header nav a {
  background-color: var(--button-color);
  color: white;
  padding-right: 0px;
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-size: 1.2rem;
  transition: background-color 0.3s ease;
}

.site-header nav a:hover {
  background-color: var(--button-hover);
  color: white;
  z-index: 2;
  transform: scale(1.01) translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* === HEADER MOBILE FRIENDLY=== */
@media (max-width: 768px) {
  .site-header {
    padding: 12px 0;
    margin: 12px auto;
    width: calc(100% - var(--inline-mobile));
  }

  .header-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 16px 8px 16px;
    gap: 8px;
  }

  .header-subtext {
    font-size: 1.4rem;
    margin: 0 0 15px 16px;
    gap: 10px;
  }

  .header-subtext i {
    font-size: 1.4rem;
    margin-bottom: -3px;
  }

  .site-header nav {
    width: 100%;
    justify-content: flex-start;
    padding: 0 16px 12px 16px;
    gap: 12px;
  }

  .site-header nav a {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
    border-radius: 10px;
  }

  .site-header::after {
    width: 100%;
    clip-path: polygon(0 100%, 100% 70%, 100% 100%, 0 100%);
  }
}

/* === INDEXPAGINA === */

.tile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 200px 200px 200px;
  gap: 20px;
  width: 100%;
  margin: 20px auto;
  width: calc(100% - var(--inline-normal));
  max-width: var(--platform-width);
  margin: 20px auto 0 auto;
}

.tile {
  background-color: var(--tile-color);
  color: white;
  border-radius: var(--tile-radius);
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg,#b3b3b3,#999);
}

.tile:hover {
  background-color: var(--tile-hover);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  transform: scale(1.01) translateY(-5px);
  background: linear-gradient(145deg, #999, #b0b0b0);
}

.tile i {
  font-size: 2.5rem;
  display: block;
  color: white;
  font-weight: 500;
}

.tile-text {
  margin: 10px 0 0 0;
  font-size: var(--font-subsubtitle);
  letter-spacing: 0.9px;
  font-weight: 400;
  font-family: var(--font-body-family);
}

.tile-zoekprofiel {
  grid-column: 1;
  grid-row: 1 / span 2;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(120deg,#007BFF,#0056b3);

}

a.tile-zoekprofiel:hover {
  background: linear-gradient(120deg, #0056b3, #007BFF);
  transform: scale(1.01) translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.tile-zoekprofiel i {
  font-size: 3rem;
  color: var(--accent-color);
}

.tile-zoekprofiel p {
  font-size: 1.6rem;
}

.tile-elearning {
  grid-row: span 1;
  grid-column: 2;
  grid-row: 1;
}

.tile-kennisbank {
  grid-row: span 1;
  grid-column: 2;
  grid-row: 2;
}

.tile-beeldbank {
  background: linear-gradient(120deg, #ffa94d, #ff6700);
  grid-column: 2;
  grid-row: 3;
}

a.tile-beeldbank:hover {
  background: linear-gradient(120deg, #ff6700, #ffa94d);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.tile-beeldbank i {
  color: white;
}

.tile-kleinelettertjes {
  grid-column: 1;
  grid-row: 3;
}

.tile-disabled {
  background: repeating-linear-gradient(
      45deg,
      #ccc,
      #ccc 10px,
      #ddd 10px,
      #ddd 20px
    );
  color: #666;
  pointer-events: none;
  cursor: default;
  opacity: 0.6;
  text-align: center;
}

.tile-disabled i {
  color: #999;
}

.tile-disabled .tile-text {
  font-size: var(--font-regular);
  font-family: var(--font-body-family);
  margin-top: 10px;
}

.fa-book::before {
  content: "\f02d";
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
}

.fa-graduation-cap::before {
  content: "\f19d";
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
}

.fa-image::before {
  content: "\f03e";
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
}

.fa-file-alt::before {
  content: "\f15c";
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
}

.fa-magnifying-glass::before {
  content: "\f002";
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
}

.fa-lock::before {
  content: "\f023";
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
}

/* === ANIMATIE INDEX === */

@keyframes pulse-with-depth {
  0% {
    transform: scale(1);
    filter: brightness(1) saturate(1);
  }
  50% {
    transform: scale(1.15);
    filter: brightness(0.95) saturate(1.4);
  }
  100% {
    transform: scale(1);
    filter: brightness(1) saturate(1);
  }
}

.pulse-icon {
  animation: pulse-with-depth 2s infinite;
  color: var(--accent-color);
}

/* === MOBILE FRIENDLY INDEX === */

@media (max-width: 768px) {
  .tile-grid {
    grid-template-columns: 1fr;   
    grid-template-rows: none;
    grid-auto-rows: minmax(160px, auto);
    width: calc(100% - var(--inline-mobile));
  }

  .tile-zoekprofiel,
  .tile-elearning,
  .tile-kennisbank,
  .tile-beeldbank,
  .tile-kleinelettertjes {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}



/* === LAADSCHERM === */

.loading-container {
  max-width: 500px;
  margin: 100px auto;
  border-radius: 12px;
  padding: 40px 40px 40px 35px;
  background: linear-gradient(160deg,#e6e6e6,#f8f8f8);
  box-shadow: inset 5px 0 0 0 var(--accent-color), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.loading-header {
  padding: 0px 30px 20px 30px;
}

.loading-header h1 {
  font-size: var(--font-subtitle);
  color: var(--text-color);
  margin-bottom: 10px;
  text-align: center;
}

.loading-header p {
  font-size: var(--font-regular);
  color: var(--text-color);
  margin: 0;
  text-align: center;
}


