body {
    padding-top: 110px;
  }

  .fixed-top-2 {
    margin-top: 48px;
  }

  @media (min-width: 992px) {
    body {
      padding-top: 110px;
    }
    html {
      font-size: 14px;
    }
  }

#id_search {
    width: 200px;
    margin-right: 3px;
}



/* ##############################################################################################################################
##############################################################################################################################
When image is clicked it is shown in it's full size. When a user clicks again it is returned back to normal.
############################################################################################################################## */

 /* Style the Image Used to Trigger the Modal */
 #myImg {
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

#myImg:hover {opacity: 0.7;}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (Image) */
.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

/* Caption of Modal Image (Image Text) - Same Width as the Image */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* Add Animation - Zoom in the Modal */
.modal-content, #caption {
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {transform:scale(0)}
  to {transform:scale(1)}
}

/* The Close Button */
.close {
  color: #f1f1f1;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
  .modal-content {
      width: 100%;
  }
} 



/* ##############################################################################################################################
##############################################################################################################################
Multilevel drop-down menus.
############################################################################################################################## */
.dropdown-submenu {
  position: relative;
  width: 100%;
}

.dropdown-submenu>.dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: 0px;
  margin-left: 1px;
  -webkit-border-radius: 0 6px 6px 6px;
  -moz-border-radius: 0 6px 6px;
  border-radius: 0 6px 6px 6px;
}

.dropdown-submenu:hover>.dropdown-menu {
  display: block;
  width: 250%;
}

.dropdown-submenu>a:after {
  display: block;
  content: " ";
  float: right;
  width: 0;
  height: 0;
  border-color: transparent;
  border-style: solid;
  border-width: 5px 0 5px 5px;
  border-left-color: #ccc;
  margin-top: 5px;
  margin-right: 10px;
}

.dropdown-submenu:hover>a:after {
  border-left-color: #fff;
}

.dropdown-submenu.pull-left {
  float: none;
}

.dropdown-submenu.pull-left>.dropdown-menu {
  left: -100%;
  margin-left: 10px;
  -webkit-border-radius: 6px 0 6px 6px;
  -moz-border-radius: 6px 0 6px 6px;
  border-radius: 6px 0 6px 6px;
}

.scrollable-menu {
  height: auto;
  max-height: 600px;
  overflow-x: hidden;
}

/* ##############################################################################################################################
##############################################################################################################################
Code color
############################################################################################################################## */

code {
  font-size: 90%;
  font-family: monospace, monospace;
  color: #000;
  background-color: #f9f2f4;
  border-radius: 2px;
  word-break: break-word;
}

#im_icon { 
  height: 50px; 
  width: 100px; 
  overflow: hidden; 
}

.table-container {
  font-size: 13px;
}

.table-input {
  font-size: 13px;
  padding-bottom: 1%;
  padding-top: 1%;
  padding-left: 5%;
  padding-right: 3%;
}

/* ##############################################################################################################################
##############################################################################################################################
############################################################################################################################## */

.prikaz {
  background-color: transparent;
}


.modal-backdrop {
  /* bug fix - no overlay */    
  display: none;    
}


.test-assignment-button {
  width: 70px; /* Adjust based on your needs */
  height: 70px; /* Adjust based on your needs */
  border-radius: 50%; /* Makes the div circular */
  overflow: hidden; /* Ensures the image doesn't escape the circle */
  position: fixed; /* Keeps the circle fixed during scrolling */
  top: 70px; /* Distance from the top */
  right: 30px; /* Distance from the right */
  border: 2px solid #fff; /* Optional: adds a border around the circle */
  box-shadow: 0 4px 8px rgba(0,0,0,0.5); /* Optional: adds shadow for better visibility */
  z-index: 1000; /* Ensures the circle is on top of everything */
}

.test-assignment-button img {
  width: 100%; /* Ensure the image covers the circle area */
  height: 100%;
  object-fit: cover; /* Ensures the image covers the area, cropping if necessary */
}

/* LADISK News Feed - Responsive iframe */
@media (max-width: 768px) {
	.card-body iframe {
		height: 500px;
	}
}

/* ##############################################################################################################################
Mobile-only tweaks. Everything below is inside a max-width media query, so it is
inert on desktop (>= 768px) -- the desktop UI is intentionally left unchanged.
############################################################################################################################## */
@media (max-width: 767.98px) {
	/* Wide data tables scroll within their own box instead of stretching the whole
	   page. Targets the Bootstrap .table class only (data tables, never layout). */
	.table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	/* The superuser "teacher view" button is position:fixed (floats in the desktop
	   gutter); on a phone that floats it over the card title. Put it back into the
	   normal flow on small screens. !important overrides the element's inline style. */
	.teacher-view-btn {
		position: static !important;
		display: inline-block;
		margin: 0 0 12px 0 !important;
	}

	/* .container-{sm,md,lg,xl} don't exist in Bootstrap 4.0.0 (added in 4.4), so they
	   carry no padding to cancel the -15px .row margins -- content spills past the
	   screen edge and sits flush against the left. Give them the standard 15px gutter
	   on phones. Used in ~46 templates (incl. base_home), so this is site-wide on mobile. */
	.container-sm, .container-md, .container-lg, .container-xl {
		padding-right: 15px;
		padding-left: 15px;
	}

	/* Buttons that sit side by side on desktop wrap/stack on phones; without a gap
	   they look glued together. Give standalone buttons a small bottom margin on
	   mobile. Grouped / input-group buttons must stay flush, so reset those. */
	.btn {
		margin-bottom: 0.4rem;
	}
	.btn-group .btn,
	.btn-group-vertical .btn,
	.input-group .btn {
		margin-bottom: 0;
	}
}

/* ##############################################################################################################################
Disabled buttons: wash out to a clearly "off" grey instead of Bootstrap's default
(which only drops opacity to .65, leaving e.g. .btn-success a faded green). This makes
the inactive action -- e.g. "Deaktiviraj" on an inactive quiz -- read as unavailable.
!important is needed to override the coloured .btn-* background/border.
############################################################################################################################## */
.btn.disabled,
.btn:disabled {
	background-color: #e9ecef !important;
	border-color: #dee2e6 !important;
	color: #a0a6ac !important;
	opacity: 1;
	box-shadow: none !important;
}