
:root {
  --success: #0fff80;
  --error: #ff4f4f;
  --warning: #ff9f4f;
  --blue: #77a9df;
  --indigo: #566ff9;

--white: rgb(255, 255, 255);
--light: rgb(238, 238, 238);
--light-soft: rgb(187, 187, 187);
--light-opacity-high: rgba(255, 255, 255, 0.5);
--light-opacity-low: rgba(255, 255, 255, 0.1);
--dark: rgb(17, 17, 17);
--dark-soft: rgb(68, 68, 68);
--dark-opacity-high: rgba(0, 0, 0, 0.5);
--dark-opacity-low: rgba(0, 0, 0, 0.1);

--light-logo-url: url("../images/logo_zelte_raab.jpg");
--dark-logo-url: url("../images/logo_zelte_raab.jpg");

--primary: var(--blue);
--secondary: var(--indigo);
--text: var(--dark);
--link: var(--dark-soft);
--background: var(--light);
--background-transparent: var(--light-opacity-high);
--inverse-transparent: var(--dark-opacity-high);
--inverse-shadow: var(--light-opacity-low);
--shadow: var(--dark-opacity-low);
--logo-url: var(--light-logo-url);


--gradient-horizontal: linear-gradient(90deg, var(--primary), var(--secondary));
--gradient-vertical: linear-gradient(var(--primary), var(--secondary));
--border-gradient-horizontal: var(--gradient-horizontal) 1;
--border-gradient-vertical: var(--gradient-vertical) 1;
--animation-time: 3s;
--half-animation-time: 1.5s;
--small-animation-time: 2s;
--half-small-animation-time: 1s;
--transition-time: 0.3s;
--radius: 30px;


--font-family-default: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
--font-size-accent: 24px;
--font-size-default: 18px;
--font-size-compact: 14px;
--font-size-small: 12px;
--font-size-tiny: 8px;
--font-weight-default: 400;
--font-weight-accent: 500;
--letter-spacing-default: -0.4px;
--line-height-accent: 32px;
--line-height-default: 24px;
--line-height-small: 16px;
--line-height-tiny: 10px;

--content-width: 750px;
}

html, body {
  margin: 0;
  padding: 0;
  max-width: 100vw;
  min-height: 100vh;
  overflow-x: hidden !important;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-family-default);
  font-size: 18px;
  line-height: 1.6;
}

section {
  background: var(--white);
  width: min(100%, var(--content-width));
  margin: 40px auto;
  padding: 30px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.blur {
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background: rgba(255,255,255,0.7);

}

.ci-border {
  border-image-slice: 1 !important;
  border-image-source: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%) !important;
}

.ci-border-top {
  border-top: 2px solid;
}

.ci-border-bottom {
  border-bottom: 2px solid;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--primary);
  margin-top: 0;
}

p {
  margin-top: 0;
  margin-bottom: 0.5em;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--primary);
}

/* Flexbox utilities */
.flex-box-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  gap: 10px;
}

.flex-box-column {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 10px;
}

.flex-no-wrap {
  flex-wrap: nowrap;
}




/* Below css for the header */
header {
  width: 100%;
  position: sticky;
  z-index: 99;
  top: 0;
  background: var(--background);
}


.nav-side {
  max-width: 180px;
  margin: 5px 0;
}

.nav-container {
  width: 100%;
  display: flex;
  align-items: center;
  flex-direction: row;
  position: sticky;
}

.navbar {
  width: 100%;
}

.nav-menu {
  list-style-type: none;
  padding-left: 0;
  text-align: center;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap; /* nowrap */
}

.navbar li {
  display: inline-block;
  margin: 0 3%;
}

.nav-link {
  text-decoration: none;
}

#mobile-menu {
  display: none;
}

/* Mobile Layout */
@media screen and (max-width: 1000px) {

  #mobile-menu {
    cursor: pointer;
    display: block;
    margin-left: -25%;
  }

  .nav-button {
    display: none;
  }

  .nav-menu {
    top: 100vh;
    left: -100vw;
    width: 100vw;
    height: 100vh;
    background: var(--background);
    margin: 0;
    position: fixed;
    flex-direction: column;
    transition: all 0.3s ease-in-out;
  }

  .nav-menu.active {
    top: 0;
    left: 0;
    transition: all 0.3s ease-in-out;
  }

  .nav-link {
    margin: 2vh 0;
    display: inline-block;
  }

  .bar {
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    display: block;
    background-color: var(--text);
  }

  #mobile-menu.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  #mobile-menu.is-active .bar:nth-child(2) {
    opacity: 0;
  }

  #mobile-menu.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /*Normal stuff*/
  section {
    width: 90%;
    padding: 16px 12px;
    margin: 16px auto;
    font-size: 1em;
  }

  h1, h2, h3 {
    font-size: 1.2em;
  }

  nav, #navigation {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  button, input[type="submit"] {
    width: 100%;
    min-width: unset;
    font-size: 1em;
    padding: 12px 0;
  }

  table {
    margin: 12px 0;
    width: 100%;
  }
}


/* Form styles */

input, select {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}

input {
  min-width: 120px;
  min-height: 40px;
  border-color: var(--primary);
  border-radius: var(--radius);
  text-align: left;
  padding-left: 8px;

}

input[type="text"]:disabled {
  min-width: auto;
  background: var(--background);
  color: var(--text);
}

select {
  min-width: 120px;
  min-height: 40px;
  padding: 1px;
  border-color: var(--primary);
  border-radius: var(--radius);
  text-align: left;
  border-width: 2px;
  padding-left: 8px;
}

button {
  min-width: 120px;
  min-height: 40px;
  z-index: 10;
  font-family: inherit;
  color: var(--background);
  background-color: var(--primary);
  border-radius: var(--radius);
  padding: 5px 10px;
  font-size: 1em;
  font-weight: 500;
  font-style: normal;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  display: inline-block;
  line-height: 1.3;
  border: 1px solid transparent;
  outline: 0;
  vertical-align: middle;
  -webkit-appearance: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-transition: all linear .2s;
  transition: all linear .2s;
}

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

button:disabled,
button[disabled] {
  background-color: var(--background);
  color: var(--link);
  cursor: initial;
}

.btn-icon {
  margin: 6px;
  padding: 5px 2.75px;
  min-width: auto;
  min-height: auto;
  width: 30px;
  height: 30px;
}

.btn-margin {
  margin: 8px;
}

.btn-danger {
  background-color: var(--error);
}

.clickable {
  cursor: pointer;
}

/* Below css for loading */
.loader-wrapper {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: rgb(0, 0, 0); /* Fallback for older browsers without RGBA-support */
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  margin: 0;
}

.loader-wrapper-hidden {
  z-index: -1;
  display: none;
}

.loader {
  display: inline-block;
  width: 75px;
  height: 75px;
  position: absolute;
  border: 4px solid var(--primary);
  opacity: 1 !important;
  animation: loader 2s infinite ease;
}

.loader-inner {
  vertical-align: top;
  display: inline-block;
  width: 100%;
  background-color: var(--background);
  opacity: 1 !important;
  animation: loader-inner 2s infinite ease-in;
}

.loader-text {
  color: var(--background);
  font-weight: bolder;
  font-size: large;
  text-align: center;
  position: relative;
  top: 80px;
}

@keyframes loader {
  0% {
      transform: rotate(0deg);
  }
  25% {
      transform: rotate(180deg);
  }
  50% {
      transform: rotate(180deg);
  }
  75% {
      transform: rotate(360deg);
  }
  100% {
      transform: rotate(360deg);
  }
}

@keyframes loader-inner {
  0% {
      height: 0;
  }
  25% {
      height: 0;
  }
  50% {
      height: 100%;
  }
  75% {
      height: 100%;
  }
  100% {
      height: 0;
  }
}


/*--------------------------------------------------------------
# Cameras
 */

 .terminal-grid {
  display: grid;
  grid-template-columns: 33vw 33vw 33vw;
}

.terminal-grid > img {
  width: 100%;
  height: auto;
  max-width: fit-content;
  max-height: 100%;
}


/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/

footer {
  width: 100%;
  margin: 5px 0 0 0;
  text-align: center;
  padding: 5px 0;
}

/* Table */


table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

th, td {
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

th {
  background: var(--dark-opacity-high);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.03em;
}

tr:nth-child(even) {
  background: #f7f9fb;
}


/*--------------------------------------------------------------
# Modal classes
--------------------------------------------------------------*/

.modal {
  position: fixed; 
  z-index: 100; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: var(--dark-opacity-high); 
}
.modal-content {
  background-color: var(--background);
  margin: 15% auto; 
  padding: 0px;
  border: 1px solid #888;
  width: 80%; 
  max-width: 500px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.modal-header {
  margin-top: 10px;
  padding: 10px 20px 0px 20px;

}
.modal-body {
  padding: 20px;
  background-color: var(--white);
}
.modal-footer {
  padding: 10px 20px;
  text-align: right;
  justify-content: right;
}
