@import url('https://fonts.googleapis.com/css?family=Exo:400,700');

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Exo', sans-serif;
  font-size: 0.9em;
}

@media (min-width: 1200px) {
  /* Push the main body content to the right */
  body {
      padding-left: 260px;
      transition: padding-left 0.3s ease;
  }
}

a {
  text-decoration: none;
}

/* code {
  font-size: 16px;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 0.2em;
  border-radius: 5px;
} */

/* This ensures that when Bootstrap adds the .show class, it uses flex */
#studentMenuDropdownContent.show {
    display: flex !important;
    flex-wrap: wrap;
}

/* Your Blur Styles */
.is-blurred {
    filter: blur(1px) !important;
    opacity: 0.5 !important;
    transition: all 0.3s ease;
    pointer-events: none; /* Prevents clicking links while blurred */
}

.nav-item-blur {
    transition: all 0.3s ease;
}

.dropdown-sidebar-bg {
  background-color: rgba(0, 0, 0, 1);
}

.login-button {
  color: white;
  transition: color 450ms;
}

.login-button:hover {
}

/* Tablet and Phone Styles (768px and below) */
@media (max-width: 768px) {

  .dropdown-toggle::after {
    display: none !important;
  }

  .p-4-if-desktop {
    padding: 0.4rem !important;
  }

  .smaller-text-mobile {
    font-size: 0.85em;
  }
}

/* BASE STYLES (Mobile first - items stay together) */
.navbar-nav {
    display: flex;
    flex-direction: column;
    height: auto; /* Let it shrink-wrap the content on mobile */
}

.navbar-nav-bottom {
    margin-top: 0; /* No separation on mobile */
}

/* DESKTOP STYLES (768px and wider) */
@media (min-width: 768px) {
    .navbar-nav {
        height: 100vh; /* Fill the sidebar height */
    }

    .navbar-nav-bottom {
        margin-top: auto; /* Push to the bottom */
        padding-bottom: 20px;
    }

    .p-4-if-desktop {
      padding: 1.5rem !important;
    }
}

/* Removes the dropdown arrow from sidebar links */
.desktop-sidebar .dropdown-toggle::after {
    display: none !important;
    content: none !important;
    border: none !important;
}

/* Ensure the span takes up the remaining space to push to the right */
.nav-link span {
    flex-grow: 1;
    text-align: right;
}

.pageDiv {
  margin-top: 2em;
}

.tabList {
  margin-bottom: 1em;
}

.input-group-text {
  background: rgba(155, 155, 155, 0.1);
  padding: 15px;
  border: 2px solid rgba(95, 95, 95, 0.2);
}

.margin-bottom {
  margin-bottom: 15px;
}

.leftpanel {
  background: var(--blue);
  position: fixed;
  height: 100%;
  overflow-x: hidden;
}

.rightpanel {
  position: fixed;
  height: 100%;
  overflow-x: scroll;
}

.footer {
  position: absolute;
  bottom: 0;
  margin-bottom: 0;
}

.navbar {
  position: static;
}

.list-group,
.list-group-item,
.dropdown-menu,
a {
  background-color: rgba(55, 55, 55, 0);
  color: black;
}

.dropdown-item:hover {
  background-color: rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.1);
}

.meddelandeContainer {
  height: 25em;
  overflow-y: scroll;
  scroll-behavior: smooth;
}

.elevdataContainer {
  border: 1px solid red;
}

.kontraktDisplay {
  margin-top: 2em;
}

.card {
  overflow-x: visible;
  margin-bottom: 2em;
}

.card-title {
  font-size: 2em;
  margin-bottom: -4px;
}

.hoverStyle {
  color: rgb(85, 85, 85);
}

.hoverStyle:hover {
  cursor: pointer;
  color: black;
}

@keyframes save-button {
  from {
    color: rgba(175, 175, 175, 1);
  }

  to {
    color: rgba(0, 200, 0, 0.8);
  }
}

.card-button:hover {
  color: rgba(0, 200, 0, 0.8);
  animation-name: save-button;
  animation-duration: 200ms;
  cursor: pointer !important;
}

.card-button {
  color: white !important;
  margin-top: -0.5em;
  margin-bottom: -0.5em;
  font-size: 1.5em;
  text-decoration: none !important;
}

.card-button-red {
  margin-top: -0.5em;
  margin-bottom: -0.5em;
  font-size: 1.5em;
}

@keyframes close-icon {
  from {
    color: black;
  }

  to {
    color: red;
  }
}

.close-icon:hover {
  color: red;
  animation-name: close-icon;
  animation-duration: 100ms;
}

.form-button {
  background-color: rgba(30, 220, 50, 0.1);
  font-size: 1.2em;
}

.checkInForm {
  margin-top: 2em;
  font-size: 1.2em;
  margin-left: -2em;
}

.red {
  background-color: red !important;
  border: 1px solid red !important;
}

.alert-popup {
  margin-top: 1em !important;
}

.remove-button {
  position: absolute;
  border: none;
  color: red;
  font-size: 2em;
}

.remove-button-time {
  color: red;
  font-size: 1em;
}

@media only screen and (max-width: 600px) {
  .nav-text {
    text-align: center !important;
    color: white !important;
    font-size: 1.2em !important;
  }

  .nav-logout {
    color: red !important;
  }
}

/* The slider itself */
.slider {
  -webkit-appearance: none !important;
  /* Override default CSS styles */
  appearance: none !important;
  width: 100% !important;
  /* Full-width */
  height: 10px !important;
  /* Specified height */
  border-radius: 1em !important;
  background: #d3d3d3 !important;
  /* Grey background */
  outline: none !important;
  /* Remove outline */
  opacity: 0.7 !important;
  /* Set transparency (for mouse-over effects on hover) */
  -webkit-transition: .2s !important;
  /* 0.2 seconds transition on hover */
  transition: opacity .2s !important;
}

/* Mouse-over effects */
.slider:hover {
  opacity: 1 !important;
  /* Fully shown on mouse-over */
}

/* The slider handle (use -webkit- (Chrome, Opera, Safari, Edge) and -moz- (Firefox) to override default look) */
.slider::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  /* Override default look */
  appearance: none !important;
  width: 25px !important;
  /* Set a specific slider handle width */
  height: 25px;
  border-radius: 50%;
  background: #2196f3 !important;
  /* Blue background */
  cursor: pointer !important;
  /* Cursor on hover */
}

.slider::-moz-range-thumb {
  width: 25px !important;
  /* Set a specific slider handle width */
  height: 25px;
  border-radius: 50%;
  background: #04AA6D !important;
  /* Green background */
  cursor: pointer !important;
  /* Cursor on hover */
}

.navbar-phone-menu {
  display: none;
}

@media only screen and (max-width: 1199px) {
  .navbar-phone-menu {
    display: flex;
  }
}

.navbar-phone-item {
  color: white;
  font-size: 2em;
  margin-right: 1em;
  float: right !important;
}

.navbar-brand {
  float: left;
  color: text-primary !important;
}

.nav {
  text-align: center;
}

.card-header {
  background: white;
}

.viewSidePanel {
  MARGIN-TOP: 2EM;
}

.shadows {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.table {
  font-family: 'Segoe UI', Times, serif;
}

.loader {
  width: 50px;
  padding: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #25b09b;
  --_m:
    conic-gradient(#0000 10%, #000),
    linear-gradient(#000 0 0) content-box;
  -webkit-mask: var(--_m);
  mask: var(--_m);
  -webkit-mask-composite: source-out;
  mask-composite: subtract;
  animation: l3 1s infinite linear;
}

@keyframes l3 {
  to {
    transform: rotate(1turn)
  }
}

@media only screen and (min-width: 650px) {
  .main-container {
    padding-left: 2em;
    padding-right: 2em;
  }
}

@media only screen and (max-width: 650px) {
  .main-container {
    padding-left: 1em;
    padding-right: 1em;
  }
}

.pageTitle {
  width: 14em;
  position: relative;
  margin-top: -2em;
  margin-bottom: -4em;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

@media only screen and (max-width: 1200px) {
  .pageTitle {
    display: none;
  }
}

.kontrollpanelItem {
  padding-bottom: 1.4em;
  padding-top: 1.4em;
}

.fillSides {
  margin-left: -2em;
  margin-right: -2em;
}

.KontrollpanelTopBar {
  padding-left: 0em; 
  padding-right: 0em; 
  margin-top: -1em;
}

.KontrollpanelCard {
  margin-left: -1em; 
  margin-right: -1em; 
  padding-bottom: 0em; 
  padding-top: 0em;
}

.KontrollpanelFormAlign {
 padding-left: 2em; 
 padding-right: 2em;
}

.badge {
  color: white !important;
}

.printAccepted {
  position: relative;
  top: 2em;
}
