* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --back-color-menu: #555;
  --green: #087f5b;
  --blue: #1864ab;
  --red: #c2255c;
  --darkred: #c92a2a;
}

html {
  font-size: 62.5%;
}

body {
  font-size: 1.4rem;
  font-family: sans-serif;
  max-width: 144rem;
  padding: 0 1.6rem;
  margin: auto;
  color: #333;
}

h1 {
  font-size: 2.8rem;
  margin-bottom: 1.8rem;
}

h2 {
  font-size: 2.2rem;
  margin: 1.4rem 0;
}

h3 {
  font-size: 1.6rem;
  margin-bottom: 1.6rem;
}

p {
  line-height: 1.6;
}

hr {
  margin-bottom: 1.6rem;
}

/* ----------------  HELPERI -------------------*/
.mg-left-large {
  margin-left: 5rem;
}

.mg-bottom-small {
  margin-bottom: 2.4rem;
}

.mg-right-large {
  margin-right: 5rem;
}

/*  --------------------  NAVIGACIJA ------------------- */

nav {
  display: flex;
  flex-wrap: wrap;
  background-color: #444;
  position: -webkit-sticky;
  position: sticky;
  margin: 0;
  margin-bottom: 1.8rem;
  padding: 0;
  top: 0;
  left: 0;
  z-index: 10;
  gap: 3px;
}

nav a:link,
nav a:visited {
  display: inline-block;
  color: #fff;
  padding: 1.4rem;
  text-decoration: none;
}
.active-page,
nav a:hover,
nav a:active {
  background-color: var(--back-color-menu);
  border-radius: 8px;
}

.userdata {
  color: #fff;
  padding: 1.4rem;
  margin-left: auto;
  background-color: IndianRed;
}

/* ---------------------- TABLICE  --------------------------------------- */

table {
  line-height: 2.2;
  border-collapse: collapse;
  width: 100%;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

th {
  position: relative;
  cursor: pointer;
}

th:hover {
  background-color: #ffffe6;
}

td,
th {
  white-space: normal;
  border: 1px solid #dddddd;
  text-align: left;
  padding: 0.8rem;
}

/* .index th:nth-child(-n + 9)::before,
.my_exp_prof th:nth-child(-n + 7)::before {
  color: #bbb;
  font-size: 1rem;
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translate(0, -50%);
  content: "\25BC";
} */

td.center {
  width: 1px;
  text-align: center;
}

tr:nth-child(even) {
  background-color: #f7f7f7;
}

#popis {
  width: auto;
}

#popis tr:hover {
  background-color: #ffffe6;
}

#popis td:not(:last-child) {
  padding-right: 2rem;
  padding-left: 1rem;
}

.tabend {
  display: block;
  margin-bottom: 2rem;
}

.col-hidden {
  display: none;
}

/************** Ikone **********************/

.fa {
  font-size: 2.2rem;
}
.fa-calendar-check-o {
  font-size: 2.4rem;
  color: var(--green);
}

.fa-unlock-alt,
.fa-edit,
.fa-user-times,
.zelena {
  color: var(--green);
}

.fa-calendar-o {
  font-size: 2.4rem;
  color: var(--blue);
}

.fa-copy,
.plava {
  color: var(--blue);
}

.fa-lock,
.crvena {
  color: var(--red);
}

.navicons.fa {
  font-size: 1.6rem;
  padding-right: 0.8rem;
  color: #fff;
}

/********************* BUTTON*****************************************************/
button {
  border-top: 1px solid #c9c9c9;
  border-left: 1px solid #c9c9c9;
  border-bottom: 2px solid #777;
  border-right: 2px solid #777;
  border-radius: 3px;
  background-color: #f9f9f9;
  padding: 3px;
  cursor: pointer;
}
/* button:hover:not([disabled], .input-button) {
  box-shadow: 0px 0px 3px yellow;
} */

button[disabled] {
  cursor: not-allowed;
  background-color: #d4d4d4;
}

#naziv-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}
#tekst-container {
  width: 100%;
}

#lista-container {
  margin-left: 0.5rem;
}
#potvrda {
  padding: 0.5rem;
  margin-right: 1rem;
}

.locking {
  padding: 3px 5px;
  margin-left: 0px;
}

.buttons-container {
  margin-top: 1.6rem;
}

.button-table-hide {
  font-size: 1.2rem;
  background-color: #dff5ff;
  padding: 0.6rem 0.8rem;
  box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.3);
  margin-bottom: 2.4rem;
}

.button-table-hide:hover {
  transform: translate(0, -2px);
  box-shadow: 2px 4px 3px rgba(0, 0, 0, 0.3);
}

.button-table-hide:not(:last-child) {
  margin-right: 1rem;
}

.button-hidden {
  background-color: #c9c9c9;
}

.input-button {
  display: inline-block;
}

/*************** FORMULARI    *********************************************/

input {
  border-color: darkgray;
  margin: 1rem 0 2.4rem 0;
  border-radius: 5px;
  padding: 0.8rem 1rem;
}

input:hover,
input:focus {
  border-color: darkgray;
  background-color: #ebf6ff;
}

input:focus-visible {
  outline: 1px solid #aaa;
}

input::placeholder {
  font-style: italic;
  opacity: 1;
  color: #999;
}

input[type='submit'],
.input-button {
  font-size: 1.5rem;
  padding: 0.8rem 1.6rem;
  margin-right: 5px;
  background-color: #fff7ee;
  border: 1px solid #bbb;
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  text-decoration: none;
  color: #333;
  border-radius: 5px;
}

input[type='number'] {
  width: 7rem;
}

textarea {
  padding: 5px;
  resize: vertical;
}

.mailform {
  width: 40%;
  border-radius: 5px;
  background: FloralWhite;
  padding: 2rem 2rem;
}

/************ LOADER ********/

#loader {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 20rem;
  height: 20rem;
  transform: translate(-50%, -50%);
  border: 3rem solid #f3f3f3;
  border-radius: 50%;
  border-top: 3rem solid #ff8c00;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
  0% {
    -webkit-transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    -webkit-transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

#zatamni {
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgb(0, 0, 0);
  opacity: 0.5;
}

/****** CHEKBOX *************************/

/* Kontenjer */
.contchkbox {
  width: 1px;
  display: block;
  position: relative;
  padding-left: 0px;
  margin-bottom: 20px;
  cursor: pointer;
  font-size: 22px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default checkbox */
.contchkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  border-radius: 3px;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: var(--darkred);
}

/* On mouse-over, add a grey background color */
.contchkbox:hover input ~ .checkmark {
  background-color: #ff8787;
}

/* When the checkbox is checked, add a blue background */
.contchkbox input:checked ~ .checkmark {
  background-color: var(--green);
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: '';
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.contchkbox input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.contchkbox .checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.contchkbox input[readonly] ~ .checkmark {
  opacity: 0.6;
}

/******** PORUKE KORISNIKU ******************/
.infobox {
  display: table;
  max-width: 40rem;
  box-shadow: 2px 3px 3px rgba(0, 0, 0, 0.3);
  background-repeat: no-repeat;
  background-position: 5px center;
  border: 1px solid #808080;
  border-radius: 5px;
  padding: 1rem 1rem 1rem 4.5rem;
  margin-bottom: 2rem;
}
.errormsg {
  background-image: url('../img/errormsg.png');
  color: #d8000c;
  background-color: #ffbaba;
}

.ok {
  background-image: url('../img/ok.png');
  color: #4f8a10;
  background-color: #dff2bf;
}

.warning {
  background-image: url('../img/warning.png');
  color: #9f6000;
  background-color: #feefb3;
}

.info {
  background-image: url('../img/info.png');
  background-size: 10%;
  color: #00529b;
  background-color: #bde5f8;
}

.kopieksp {
  width: 40%;
  background-position: 5px 15px;
}

.ukupno-limit-potpisa {
  font-size: 1.2rem;
  display: inline-block;
  font-weight: 600;
  box-shadow: 3px 3px 2px grey;
  border-radius: 5px;
  background: AntiqueWhite;
  padding: 0.8rem 0.6rem;
  margin-bottom: 1rem;
  margin-right: 5rem;
}

/*************** STUDENT infobox - sati i sl.  **********************/

.info-priznavanje-sati {
  font-size: 1.6rem;
  padding: 1.8rem 0;
}

.studinfo {
  display: inline-block;
  margin-bottom: 3.2rem;
  box-shadow: 4px 4px 3px rgba(0, 0, 0, 0.15);
  border: 1px solid #808080;
  border-radius: 5px;
  background-color: #fff6e6;
  padding: 1.6rem;
}
.studinfo h4 {
  margin-bottom: 1.6rem;
}

/**********  PAGINACIJA  ************/

.pagination {
  text-align: center;
  margin-bottom: 1.2rem;
}

.pagination a {
  display: inline-block;
  border: 1px solid #aaa;
  border-radius: 3px;
  margin: 6px 4px;
  color: black;
  padding: 5px 10px;
  text-decoration: none;
  transition: all 0.3s;
}

.pagination a.active {
  background-color: #75aadf;
  color: white;
  font-weight: 600;
}

.pagination a:hover:not(.active) {
  background-color: #eafcff;
}

.hidden {
  visibility: hidden;
}

/* ------------------- STRANICA ZA POMOĆ --------------------------- */
.help {
  max-width: 60rem;
}

.help a:link,
.help a:visited {
  color: var(--blue);
  text-decoration: none;
  padding-bottom: 1px;
  border-bottom: 1px solid var(--blue);
}

.help p {
  margin-bottom: 1.2rem;
}

.help h3 {
  margin-top: 1.6rem;
}

.help_button {
  margin-bottom: 2rem;
}

.help_button > button {
  margin-right: 1rem;
}

/* --------------------------------SOSCI ----------------------- */

p.sosci {
  width: 50%;
  margin-bottom: 1rem;
  line-height: 1.8;
}

ol.sosci {
  padding-left: 2rem;
  padding-bottom: 1.2rem;
}

ol.sosci li {
  color: darkred;
  padding-bottom: 1rem;
}

span.kvazidugme {
  display: inline-block;
  background-color: #fff7ee;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 1px 5px;
  border: 1px solid #999;
  border-radius: 5px;
}

form.sosci {
  margin-top: 2rem;
}

.sosci input {
  margin-right: 1rem;
}

/* Chrome, Safari, Edge, Opera */
.sosci input[type='number']::-webkit-outer-spin-button,
.sosci input[type='number']::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
.sosci input[type='number'] {
  -moz-appearance: textfield;
}

.upitnik {
  font-weight: 700;
  color: var(--darkred);
}

.folder {
  font-weight: 700;
  color: var(--blue);
}

table.sosci {
  width: 80%;
  margin-bottom: 4rem;
}
