/* ======================================================
  CSS VARIABELEN
====================================================== */
:root {
  --color-bg: #000;
  --color-primary: red;
  --color-link: blue;
  --color-light: #fff;

  --radius-sm: 0.4rem;
  --radius-md: 0.6rem;

  --navbar-height: 56px;
}

/* ======================================================
  RESET & BASIS
====================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
}

body {
  min-height: 100svh;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 14px;
  background:
    var(--color-bg)
    url("./Picture/Zutphen_Fallschirmjager.jpg")
    center / cover
    no-repeat;
}

/* ======================================================
  LAYOUT
====================================================== */
main {
  position: relative;
  height: calc(100svh - 94px);
  overflow: hidden;
}

#Kaart_Hoogte {
  height: calc(100svh - 104px);
  overflow-x: auto;
}

/* ======================================================
  NAVIGATIE (Bootstrap overrides)
====================================================== */
.navbar-nav .nav-item {
  min-width: 115px;
  max-width: 400px;
}

.navbar-nav .nav-link {
  color: var(--color-link);
  border-radius: var(--radius-sm);
}

.navbar-nav .nav-item {
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-md);
}

.navbar-nav .nav-link:hover,
.dropdown-menu .dropdown-item:hover {
  background-color: var(--color-primary);
  color: var(--color-light);
}
.nav-link:hover {
  cursor: pointer;
}

/* Cursor gedrag */
.dropdown-submenu > a {
  cursor: pointer;
}

b:hover {
  cursor: default;
}

/* ======================================================
  DROPDOWN SUBMENU
====================================================== */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -0.3rem;
}

/* Desktop pijltje */
@media (min-width: 576px) {
  .navbar-expand-sm .dropdown-submenu > .dropdown-toggle::after {
    transform: rotate(-90deg);
    transition: transform 0.3s ease-in-out;
  }

  .navbar-expand-sm .dropdown-submenu > .dropdown-toggle.show::after {
    transform: rotate(0);
  }
}

/* ======================================================
  MOBIELE NAVBAR
====================================================== */
@media (max-width: 767.98px) {
  #navbarNav {
    position: absolute;
    top: var(--navbar-height);
    left: 0;
    width: 100%;
    background-color: var(--color-light);
    z-index: 1050;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
}

/* ======================================================
  CAROUSEL
====================================================== */
#carouselExampleIndicators {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(240px, 20vw, 360px);
  border-radius: var(--radius-md);
  box-shadow: 0 0 51px #333;
  z-index: 20;
}

.img_start {
  max-height: 345px;
}

/* ======================================================
  MODALS
====================================================== */
.modal.fade .modal-dialog {
  transform: scale(0.95);
  transition: transform 0.5s ease-out;
}

.modal.show .modal-dialog {
  transform: scale(1);
}

.warning-icon {
  font-size: 3rem;
  color: #ff6b6b;
}

/* ======================================================
  ALERTS (Custom)
====================================================== */
.custom-alert {
  position: fixed;
  top: 46%;
  left: 50%;
  width: min(90%, 400px);
  z-index: 9999;
  opacity: 0;
  transform: translateX(100vw);
}

@keyframes slideIn {
  from { transform: translateX(100vw); opacity: 0; }
  to   { transform: translateX(-50%); opacity: 1; }
}

@keyframes slideOut {
  from { transform: translateX(-50%); opacity: 1; }
  to   { transform: translateX(-150vw); opacity: 0; }
}

.custom-alert.showing {
  display: block;
  animation:
    slideIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    slideOut 1.2s cubic-bezier(0.55, 0, 0.45, 1) 4s forwards;
}

/* ======================================================
  SPLASH SCREEN
====================================================== */
#splash {
  position: fixed;
  inset: 0;
  background-color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease;
}

.splash-content {
  width: 80%;
  max-width: 320px;
  text-align: center;
  color: var(--color-light);
}

.logo {
  width: 140px;
  margin-bottom: 1.25rem;
  animation: fadeScale 1.2s ease forwards;
}

.progress-text {
  margin-bottom: 0.6rem;
  letter-spacing: 0.3px;
}

.progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--color-light);
  transition: width 0.3s ease;
}

@keyframes fadeScale {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

#app {
  display: none;
}

/* ======================================================
  UTILITIES
====================================================== */
.hidden { display: none; }

.rond {
  border-radius: 1rem;
}

.foto-ct {
  display: flex;
  justify-content: center;
  align-items: center;
}

td b {
  color: var(--color-primary);
}

.spinner-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
