:root {
  --light-background: #f8f9f9;
  --dark-background: #1a1a1a;
  --header-light-background: #f8f9f9;
  --header-dark-background: #333333;
  --content-light-background: #fff;
  --content-dark-background: #2c2c2c;
  --sidebar-light-background: #f8f9f9;
  --sidebar-dark-background: #1a1a1a;
  --link-color: #337ab7;
  --link-hover-color: #23527c;
  --highlight-color: #6c757d;
  --scrollbar-thumb-color: #aab7cf;
}

:root {
  scroll-behavior: smooth;
}

body {
  font-family: Arial;
  font-size: 13px;
  color: #444444;
  margin: 0;
  padding: 0;
  background-color: var(--light-background);
}

a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover-color);
  text-decoration: none;
}

#main {
  margin-top: 0px;
  transition: all 0.3s;
}

@media (max-width: 1199px) {
  #main {
    padding: 0px;
  }
}

@keyframes dropdown-animate {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }

  0% {
    opacity: 0;
  }
}

#header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0px;
  background-color: var(--header-light-background);
  width: 100%;
  height: 50px;
  z-index: 997;
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
}

.header-shadow {
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
}

.content {
  width: 100%;
  padding: 70px 20px 20px 20px; /* top right bottom left */
  background-color: var(--content-light-background);
}

.sidebar {
  position: fixed;
  top: 0px;
  left: 0;
  bottom: 0;
  width: 300px;
  z-index: 996;
  transition: all 0.3s;
  padding: 4px;
  overflow-y: auto;
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
  background-color: var(--sidebar-light-background);
}

#sidebarBackdrop {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.2); /* Adjust the alpha value for the desired transparency */
z-index: 1;
}

@media (max-width: 1199px) {
.toggle-sidebar #sidebarBackdrop {
  display: block;
}
}

@media (max-width: 1199px) {
  .sidebar {
    left: -300px;
    top: 50px;
  }
}

.sidebar::-webkit-scrollbar {
  width: 5px;
  height: 8px;
  background-color: #fff;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb-color);
}

@media (min-width: 1200px) {
  #main {
    margin-left: 300px;
  }

  #header {
    width: calc(100% - 300px);
  }
}

@media (max-width: 1199px) {
  .toggle-sidebar .sidebar {
    left: 0;
  }
}

@media (min-width: 1200px) {
  .toggle-sidebar #main {
    margin-left: 0;
  }

  .toggle-sidebar .sidebar {
    left: -300px;
  }

  .toggle-sidebar #header {
    width: 100%;
  }
}

.sidebar-nav {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav li {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav .nav-item {
  margin-bottom: 5px;
}

.sidebar-nav .nav-heading {
  font-size: 14px;
  text-transform: uppercase;
  color: #899bbd;
  font-weight: 400;
  margin: 10px 0 5px 15px;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 400;
  color: var(--highlight-color);
  transition: 0.3s; /* Add 's' after 0.3 for seconds */
  background: var(--content-light-background);
  padding: 4.75px 6px;

  /* Add border styles */
  border-radius: 0.375rem;
  border: 1px solid var(--bs-border-color-translucent);;
}

.sidebar-nav .nav-link i {
  font-size: 13px;
  margin-right: 10px;
  color: var(--highlight-color);
}

.sidebar-nav .nav-link.collapsed {
  color: #000;
  background: #fff;
}

.sidebar-nav .nav-link.collapsed i {
  color: var(--highlight-color);
}

.sidebar-nav .nav-link:hover {
  color: var(--highlight-color);
  background: var(--content-light-background);
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.sidebar-nav .nav-link:hover i {
  color: var(--highlight-color);
}

.sidebar-nav .nav-link .bi-chevron-down {
  margin-right: 0;
  transition: transform 0.2s ease-in-out;
}

.sidebar-nav .nav-content a span.badge {
  margin-left: auto;
}

.sidebar-nav .nav-link:not(.collapsed) .bi-chevron-down {
  transform: rotate(180deg);
}

.sidebar-nav .nav-content {
  padding: 5px 0 0 0;
  margin: 0;
  list-style: none;
  color: black;
}

.sidebar-nav .nav-content a {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 400;
  color: #000;
  transition: 0.3;
  padding: 2px 0px 10px 30px;
}

.sidebar-nav .nav-content a i {
  font-size: 6px;
  margin-right: 8px;
  line-height: 0;
  border-radius: 50%;
}

.sidebar-nav .nav-content a:hover,
.sidebar-nav .nav-content a.active {
  color: var(--highlight-color);
}

.sidebar-nav .nav-content a.active i {
  background-color: var(--highlight-color);
}

.blur {
  filter: blur(2.5px); /* Adjust the blur amount as needed */
  transition: filter 0.3s ease-in-out;
}

@keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}


.error {
    border: 1px solid red;
}

.selected-grey {
    background-color: var(--highlight-color) !important; /* Light blue background color */
    border: solid var(--highlight-color) 1px !important; /* Light blue border color */
    z-index: 1 !important;
}



/* Custom CSS for smaller alerts */
.alert-sm {
    padding: 5px 15px;
    font-size: 12px;
    border-radius: 3px;
}

/* Close button inside the smaller alert */
.alert-sm .close {
    font-size: 14px;
}

.editable {
    padding: 0px 0px;
    cursor: pointer;
    font-size: 12px;
    white-space: nowrap; /* Prevent text from wrapping */
    overflow: hidden; /* Hide overflowing text */
    position: absolute;
    width: 100%;
}

.textcontainer {
    padding: 0px 0px;
    font-size: 12px;
}

.bezeichnung-textarea {
    width: 100%;
    height: 3vh;
    box-sizing: border-box;
    border: none; /* Add a 1px solid black border */
    overflow: hidden; /* Hide the scrollbar */
    resize: none;
    background-color: transparent;
    outline: none; /* Remove the blue border */
    font-size: 12px;
}

.textcontainerSidebar {
    padding: 6px 6px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bc3 {
    padding: 8px 15px;
    background-color: var(--header-light-background);
    border-radius: var(--bs-border-radius);
    --bs-card-border-width: var(--bs-border-width);
    --bs-card-border-color: var(--bs-border-color-translucent);
    border: var(--bs-card-border-width) solid var(--bs-card-border-color);
}

.form-with-no-border {
    padding: 0px;
    border: 0px;
    box-shadow: none;
    height: auto;
}

.close {
    border-left: 2px solid #ccc;
    float: right;
    font-size: 21px;
    font-weight: bold;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    filter: alpha(opacity=20);
    opacity: .2;
    border: none;
    background: none;
    cursor: pointer;
}

.pull-right {
    float: right !important;
}

.custom-li-padding {
    padding: 2px 2px;
}

h6 a {
  text-decoration: none;
  color: inherit; /* Inherit the color from the parent (h5) */
}

.btn-custom-outline {
  color: #000;
  border-color: var(--bs-card-border-color);
  background-color: var(--header-light-background); /* Transparent background for outline style */

  /* Hover state */
  &:hover {
    color: var(--highlight-color); /* Change to your desired hover color */
    background-color: var(--header-light-background); /* Change to your desired hover background color */
    border-color: var(--highlight-color); /* Change to your desired hover border color */
  }

  /* Active state */
  &:active,
  &:focus {
    color: #000; /* Change to your desired active/focus color */
    background-color: var(--highlight-color); /* Change to your desired active/focus background color */
    border-color: var(--highlight-color); /* Change to your desired active/focus border color */
  }

  /* Disabled state */
  &:disabled {
    color: var(--highlight-color); /* Change to your desired disabled color */
    background-color: transparent; /* Transparent background for disabled state */
    border-color: var(--highlight-color); /* Change to your desired disabled border color */
  }
}

.custom-pagination .page-item .page-link {
  color: #000;
  border-color: var(--bs-border-color-translucent);
  background-color: var(--header-light-background);
}

.custom-pagination .page-item .page-link:hover {
  color: var(--highlight-color);
  background-color: var(--header-light-background);
  border-color: var(--highlight-color);
}

.custom-pagination .page-item.active .page-link,
.custom-pagination .page-item.active .page-link:focus {
  color: #000;
  background-color: var(--highlight-color);
  border-color: var(--highlight-color);
}

.custom-pagination .page-item.disabled .page-link {
  color: var(--highlight-color);
  background-color: transparent;
  border-color: var(--highlight-color);
}

.btn-custom-outline-header {
  color: var(--highlight-color);
  border-color: #dee2e6;
  background-color: #fff;

  /* Hover state */
  &:hover {
    color: var(--highlight-color); /* Change to your desired hover color */
    background-color: #fff; /* Change to your desired hover background color */
    border-color: var(--highlight-color); /* Change to your desired hover border color */
  }

  /* Active state */
  &:active,
  &:focus {
    color: #000; /* Change to your desired active/focus color */
    background-color: var(--highlight-color); /* Change to your desired active/focus background color */
    border-color: var(--highlight-color); /* Change to your desired active/focus border color */
  }

  /* Disabled state */
  &:disabled {
    color: var(--highlight-color); /* Change to your desired disabled color */
    background-color: transparent; /* Transparent background for disabled state */
    border-color: var(--highlight-color); /* Change to your desired disabled border color */
  }
}

.btn-custom {
  color: #000;
  background-color: var(--header-light-background);
}

.hidden {
    display: none;
}

.input-group-text:hover .hidden {
    display: block;
}

.card-header-tabs .nav-link {
  cursor: pointer;
}

.signature-box {
    border: 1px solid rgba(0, 0, 0, 0.175);
    border-radius: 0.375rem;
}

.pointer {
    cursor: pointer;
}

.grab {
    cursor: grab;
}

.has-warning input,
.has-warning textarea,
.has-warning select {
  border: 1px solid #ffc107; /* Apply the yellow border to form controls within the container */
}

.custom-accordion {
  padding: 0.5rem 0rem 0.5rem 1rem !important;
  font-size: 13px !important;
  font-family: Arial !important;
}

.delete-arrow .accordion-button:not(.collapsed)::after,
.delete-arrow .accordion-button::after {
  background-image: unset !important;
}

.link {
    color: #337ab7;
}

.link:hover {
    color: rgba(10,88,202);
}

.event-confirm-inner:not(.fc-list-event)::before {
    border-right: 1px solid black;
    border-bottom: 1px solid black;
    border-left: 1px solid black;
    padding: 0px 3px;
    background: green;
    z-index: 10;
    color: black;
    content: '✓';
    position: absolute;
    top: 0;
    right: 1px;
}

.event-not-confirm-inner:not(.fc-list-event)::before {
    border-right: 1px solid black;
    border-bottom: 1px solid black;
    border-left: 1px solid black;
    background: red;
    z-index: 10;
    padding: 0px 3px;
    color: black;
    content: '✗';
    position: absolute;
    top: 0;
    right: 1px;
}


@media only screen and (min-width : 320px) {
    .kalendar_class {
        height: 80vh;
    }
}

@media only screen and (min-width : 992px) {
    .kalendar_class {
        height: auto;
    }
}

#droppable {
  display: none;
  border: 1px dashed;
  border-radius: 0.375rem;
  margin-top: 20px;
  min-height: 100px;
  height: 100%; /* Set height to 100% */
}

#drop_back, #drop_next {
  flex: 1;
}

#drop_back {
  border-right: 1px dashed;
}

#drop_next {
}

.dotted {
    border: 1px dotted #ccc;
}

.dotted:hover {
    border: var(--bs-card-border-width) solid var(--bs-card-border-color);
    cursor: pointer;
}

.dotted-bottom {
    border-bottom: 1px dotted #ccc;
}

.dotted-left {
    border-left: 1px dotted #ccc;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 0px 0;
    cursor: pointer;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--bs-border-color-translucent);
}

.divider:not(:empty)::before {
    margin-right: 10px;
}

.divider:not(:empty)::after {
    margin-left: 10px;
}

/* Optional: Hover-Text anzeigen */
.divider:hover::after,
.divider:hover::before {
    border-color: var(--highlight-color);
}

.divider:hover {
    color: var(--highlight-color);
    transition: color 0.3s ease;
}

@keyframes failHighlight {
    0% {
        box-shadow: 3px 3px 5px rgba(255, 0, 0, 0.6);
    }
    80% {
        box-shadow: 3px 3px 5px rgba(255, 0, 0, 0.6);
    }
    100% {
        box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.15);
    }
}

@keyframes failHighlightWOShadow {
    0% {
        box-shadow: 3px 3px 5px rgba(255, 0, 0, 0.6);
    }
    20% {
        box-shadow: 3px 3px 5px rgba(255, 0, 0, 0.5);
    }
    40% {
        box-shadow: 3px 3px 5px rgba(255, 0, 0, 0.4);
    }
    60% {
        box-shadow: 3px 3px 5px rgba(255, 0, 0, 0.2);
    }
    80% {
        box-shadow: 3px 3px 5px rgba(255, 0, 0, 0.1);
    }
    100% {
        box-shadow: none;
    }
}

.fail-once {
    animation: failHighlight 1s ease-out forwards;
}

.fail-confirm {
    animation: failHighlightWOShadow 1s ease-out forwards;
}

@keyframes tempHighlight {
     0% {
        box-shadow: 3px 3px 5px rgba(0, 128, 0, 0.6);
    }
    80% {
        box-shadow: 3px 3px 5px rgba(0, 128, 0, 0.6);
    }
    100% {
        box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.15);
    }
}

@keyframes tempHighlightWOShadow {
     0% {
        box-shadow: 3px 3px 5px rgba(0, 128, 0, 0.6);
    }
    20% {
        box-shadow: 3px 3px 5px rgba(0, 128, 0, 0.5);
    }
    40% {
        box-shadow: 3px 3px 5px rgba(0, 128, 0, 0.4);
    }
    60% {
        box-shadow: 3px 3px 5px rgba(0, 128, 0, 0.2);
    }
    80% {
        box-shadow: 3px 3px 5px rgba(0, 128, 0, 0.1);
    }
    100% {
        box-shadow: none;
    }
}

.highlight-once {
    animation: tempHighlight 1s ease-out forwards;
}

.highlight-confirm {
    animation: tempHighlightWOShadow 1s ease-out forwards;
}

.highlight {
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.15);
}

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


/* Basis-Stil für alle hover-border Buttons */
[class*="border-hover-"] {
  border: 1px solid var(--bs-border-color);
  border-radius: 0.25rem;
  background: white; /* kein Hintergrund */
  transition: border-color 0.2s ease; /* smooth effect */
}

/* Hover-Farben mit Bootstrap-Variablen */
.border-hover-primary:hover   { background: white;border: 1px solid var(--bs-border-color);border-bottom-color: var(--bs-primary); }
.border-hover-secondary:hover { background: white;border: 1px solid var(--bs-border-color);border-bottom-color: var(--bs-secondary); }
.border-hover-success:hover   { background: white;border: 1px solid var(--bs-border-color);border-bottom-color: var(--bs-success); }
.border-hover-danger:hover    { background: white;border: 1px solid var(--bs-border-color);border-bottom-color: var(--bs-danger); }
.border-hover-warning:hover   { background: white;border: 1px solid var(--bs-border-color);border-bottom-color: var(--bs-warning); }
.border-hover-info:hover      { background: white;border: 1px solid var(--bs-border-color);border-bottom-color: var(--bs-info); }
.border-hover-light:hover     { background: white;border: 1px solid var(--bs-border-color);border-bottom-color: var(--bs-light); }
.border-hover-dark:hover      { background: white;border: 1px solid var(--bs-border-color);border-bottom-color: var(--bs-dark); }
.border-hover-custom:hover      { background: white;border: 1px solid var(--bs-border-color);border-bottom-color: var(--highlight-color); }
