:root {
  --secondary-color: #011e4a;
  --secondary-color-dimmed: #0a2e5a;
  --main-color: #d10000;
  --main-color-dimmed: #660000;
  --main-color-rgb: 209, 0, 0;
  --fw-red: #d10000;
  --gray: #f0f2f4;
  --darkgray: #4a4a4a;
  --tag-color: #a4a6a7;
  --alt-white: #f9fafb;

  --white: #fff;
  --black: #000;

  --selection-bg: #308dfd;
  --selection-color: var(--white);

  --success-gradient-start: #28a745;
  --success-gradient-end: #20c997;
  --warning-gradient-start: #ffc107;
  --warning-gradient-end: #e0a800;
  --info-gradient-start: #17a2b8;
  --info-gradient-end: #138496;
  --secondary-gradient-start: #6c757d;
  --secondary-gradient-end: #5a6268;

  --chat-bg-light: #f8f9fa;
  --chat-border-light: #ddd;
  --message-shadow: rgba(0, 0, 0, 0.1);

  --message-border-radius: 12px;
  --section-border-radius: 8px;
  --header-border-radius: 12px;
  --button-border-radius: 8px;

  --box-shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
  --box-shadow-medium: 0 4px 15px rgba(0, 0, 0, 0.15);
  --box-shadow-strong: 0 6px 20px rgba(0, 0, 0, 0.2);
}

[data-bs-theme="dark"] {
  --chat-bg-light: rgba(255, 255, 255, 0.05);
  --chat-border-light: #192231;
  --message-shadow: rgba(0, 0, 0, 0.3);
  --box-shadow-light: 0 2px 8px rgba(0, 0, 0, 0.2);
  --box-shadow-medium: 0 4px 15px rgba(0, 0, 0, 0.3);
  --box-shadow-strong: 0 6px 20px rgba(0, 0, 0, 0.4);
}

* {
  -webkit-hyphens: auto;
  hyphens: auto;
}

body {
  --bs-body-font-family: "Maven Pro", system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
}

body:not(#antrag) {
  --bs-body-bg: #010618 !important;
}

.bg-secondary-color {
  background-color: var(--secondary-color) !important;
}

.bg-main-color {
  background-color: var(--main-color) !important;
}

.bg-gray-color {
  background-color: var(--gray) !important;
}

.bg-semigray {
  background-color: var(--tag-color) !important;
}

.bg-darkgray {
  background-color: var(--darkgray) !important;
}

.bg-white-color {
  background-color: var(--alt-white) !important;
}

.border-main-color {
  --bs-border-color: var(--main-color) !important;
}

.border-secondary-color {
  --bs-border-color: var(--secondary-color) !important;
}

.border-gray-color {
  --bs-border-color: var(--gray) !important;
}

.border-semigray {
  --bs-border-color: var(--tag-color) !important;
}

.text-gray-color {
  color: var(--gray) !important;
}

.text-main-color {
  color: var(--main-color) !important;
}

a.text-main-color:hover {
  color: var(--main-color-dimmed) !important;
}

.text-secondary-color {
  color: var(--secondary-color) !important;
}

.btn-outline-main-color {
  --bs-btn-border-color: var(--main-color) !important;
  --bs-btn-color: var(--main-color) !important;
  --bs-btn-hover-bg: var(--main-color) !important;
  --bs-btn-hover-color: var(--white) !important;
  --bs-btn-active-bg: var(--main-color) !important;
  --bs-btn-active-border-color: var(--main-color) !important;
  --bs-btn-disabled-color: var(--main-color) !important;
  --bs-btn-disabled-border-color: var(--gray) !important;
}

.btn-outline-secondary-color {
  --bs-btn-border-color: var(--secondary-color) !important;
  --bs-btn-color: var(--secondary-color) !important;
  --bs-btn-hover-bg: var(--secondary-color) !important;
  --bs-btn-hover-color: var(--white) !important;
  --bs-btn-active-bg: var(--secondary-color) !important;
  --bs-btn-active-border-color: var(--secondary-color) !important;
  --bs-btn-disabled-color: var(--secondary-color) !important;
  --bs-btn-disabled-border-color: var(--gray) !important;
}

.btn-main-color {
  --bs-btn-bg: var(--main-color) !important;
  --bs-btn-color: var(--white) !important;
  --bs-btn-hover-bg: var(--bs-btn-bg) !important;
  --bs-btn-hover-color: var(--white) !important;
  --bs-btn-active-bg: var(--bs-btn-bg) !important;
  --bs-btn-active-color: var(--white) !important;
  --bs-btn-active-border-color: var(--bs-btn-bg) !important;
  --bs-btn-disabled-bg: var(--main-color) !important;
  --bs-btn-disabled-color: var(--white) !important;
}

.btn-secondary-color {
  --bs-btn-bg: var(--secondary-color) !important;
  --bs-btn-color: var(--white) !important;
  --bs-btn-hover-bg: var(--bs-btn-bg) !important;
  --bs-btn-hover-color: var(--white) !important;
  --bs-btn-active-bg: var(--bs-btn-bg) !important;
  --bs-btn-active-color: var(--white) !important;
  --bs-btn-active-border-color: var(--bs-btn-bg) !important;
  --bs-btn-disabled-bg: var(--secondary-color) !important;
  --bs-btn-disabled-color: var(--white) !important;
}

body#dashboard {
  height: 100vh;
  width: 100vw;
  overflow-x: hidden;
  background-color: #002a32;
  position: relative;
}

body#alogin {
  height: 100vh;
  width: 100vw;
  overflow-x: hidden;
  background-color: #002a32;
  position: relative;
}

#video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  filter: blur(12px);
}

#video-background::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

#video-background iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200vw;
  height: 200vh;
  transform: translate(-50%, -50%);
}

body#alogin .card {
  background: rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

body#alogin img,
body#alogin .card {
  transition: all 0.3s;
}

body#alogin img:hover,
body#alogin .card:hover {
  transform: scale(1.05);
}

body#alogin p {
  --bs-link-color-rgb: 255, 255, 255;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  --bs-link-opacity: 0.7;
  opacity: 0.7;

  > a:hover,
  > span > a:hover {
    --bs-link-color-rgb: 255, 255, 255;
    --bs-link-opacity: 0.9;
  }
}

body#dashboard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("https://dev.intrarp.de/assets/img/wallpaper.webp") no-repeat
    center center fixed;
  background-size: cover;
  filter: blur(3px); /* Adjust the value (5px) to control the amount of blur */
  z-index: -1;
}

#cards a {
  text-decoration: none;
  color: inherit;
}

#cards .card {
  transition: background-color 0.2s ease-in-out;
}

#cards .card .card-fa > i {
  font-size: 3rem;
  background-color: var(--secondary-color);
  color: var(--white);
  border-radius: 50%;
  padding: 1rem;
  transition: background-color 0.2s ease-in-out;
}

#cards .card:hover .card-fa > i {
  background-color: var(--main-color);
}

#cards h2 {
  text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

body#dashboard h1#loginHeader {
  font-weight: 700;
  text-align: center;
}

p.subtext {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.9;
  font-weight: 400;
  margin-top: -10px;
}

/* Footer Styles */
html {
  position: relative;
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.footer {
  margin-top: auto;
  background-color: #0f1828 !important;
  border-top: 2px solid #192231;
}

[data-bs-theme="dark"] .footer {
  background-color: #0f1828 !important;
  border-color: #192231 !important;
}

.footer a {
  color: var(--main-color);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.loader {
  min-width: 100vw;
  width: 100%;
  min-height: 100vh;
  height: 100%;
  margin: 0;
  position: fixed;
  background-color: #212529;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999999;
}
.loader .circle {
  background: linear-gradient(45deg, #337aff, #572ff3, #e81f6c, #f1c726);
  background-size: 200%;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  transform: translateX(-50%) translateY(-50%);
  position: absolute;
  top: 50%;
  left: 50%;
  animation: colorfull-spin 2s alternate infinite;
}
.loader .circle:nth-child(1) {
  width: 80px;
  height: 80px;
  z-index: 1;
  animation-delay: 0.1s;
}
.loader .circle:nth-child(2) {
  width: 60px;
  height: 60px;
  z-index: 2;
  animation-delay: 0.2s;
}
.loader .circle:nth-child(3) {
  width: 40px;
  height: 40px;
  z-index: 3;
  animation-delay: 0.3s;
}
.loader .circle:nth-child(4) {
  background: linear-gradient(45deg, #337aff, #572ff3, #e81f6c, #f1c726);
  background-size: 200%;
  width: 20px;
  height: 20px;
  z-index: 4;
  animation-delay: 0.4s;
}
@keyframes colorfull-spin {
  0% {
    border-radius: 50%;
    transform: translateX(-50%) translateY(-50%) rotate(0);
    background-position: 0 50%;
  }
  20% {
    border-radius: 50%;
    transform: translateX(-50%) translateY(-50%) rotate(0);
  }
  50% {
    background-position: 100% 50%;
  }
  90% {
    border-radius: 5%;
    transform: translateX(-50%) translateY(-50%) rotate(90deg);
  }
  100% {
    border-radius: 5%;
    transform: translateX(-50%) translateY(-50%) rotate(90deg);
    background-position: 0 50%;
  }
}
