@charset "UTF-8";
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
  font-size: 62.5%;
  font-family: Verdana, Geneva, Tahoma;
  line-height: 1.6;
}

.naslov {
  padding-bottom: 3rem;
  padding-left: 5rem;
  font-size: 2.5rem;
  font-weight: bolder;
}
.naslov2 {
  padding-top: 1em;
}

.rastojanie {
  margin-top: 2.5rem;
}

.direkciite,
.container {
  padding-bottom: 3rem;
  padding-left: 5rem;
  font-size: 1.6rem;
  max-width: 120rem;
  min-width: 119rem;
  margin: 25px auto;
  border-radius: 0.5rem;
}

.skrieno {
  display: none;
}

.dolu {
  margin-bottom: 1.5rem;
}

.doluu {
  margin-bottom: 3rem;
}

.za_user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 3px solid #7a68bb;
  padding: 2rem 1rem;
  background-color: rgb(244, 249, 253);
  margin-bottom: 4rem;
}

.procena {
  padding: 2rem 3rem;
}

.greska {
  margin: auto;
  width: 70%;
  border: 1px solid red;
  margin-top: 3rem;
  padding: 1rem 2rem;
  color: red;
  text-align: center;
  background-color: rgb(250, 231, 231);
}

.modal {
  position: fixed; /* Stay in place */
  z-index: 100; /* Sit on top */
  padding-top: 20rem; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(14, 2, 58, 0.849); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
  background-color: #fefefe;
  color: #004282;
  font-size: 2.5rem;
  margin: auto;
  padding: 2rem;
  border: 1rem solid rgb(255, 255, 255);
  width: 50%;
  white-space: pre-wrap;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.432), 0 6px 20px 0 rgba(0, 0, 0, 0.5);
}

.premesti {
  width: 18px;
  height: 18px;
  background: url("/css/move-svgrepo-com.svg") no-repeat center; /* <- real path */
  border: none;
  cursor: move;
  margin-right: 0.25rem;
  padding: 0;
}

.glaven {
  margin-top: 15px;
}

.glaven.enter,
.ostanati.enter,
.dokument.enter {
  background-color: #d7fad7;
}

.search-list {
  margin: 0.5rem 0;
  padding: 0;
  list-style: none;
}

.search-list li {
  padding: 0.25rem 0;
  border-bottom: 1px solid #eee;
}

.search-list a {
  text-decoration: none;
  color: #0466d2;
}

.search-list a:hover {
  text-decoration: underline;
}

.dep-heading {
  margin: 2rem 0 1rem;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.3;
}

.crumb {
  color: #111;
  text-decoration: none;
}

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

.audit-section {
  margin: 4rem 0;
  border-top: 1px solid #cfd9ea; /* light gray line at the top */
  padding-top: 1rem; /* optional: spacing below the border */
}

#toggle-logs {
  cursor: pointer;
  user-select: none;
  font-size: 1.5rem;
}

.audit-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.audit-table th,
.audit-table td {
  padding: 0.5rem;
  border: 1px solid #ddd;
  text-align: left;
}

.audit-pager a {
  margin: 0 0.5rem;
  text-decoration: none;
}

.audit-pager span {
  margin: 0 0.5rem;
}

/* hide every file list by default */
.file-list {
  display: none;
}

/* show the one that has the helper class */
.file-list.is-open {
  display: block;
}

.space-switcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1rem 0;
}

.space-switcher .tabs {
  display: flex;
  gap: 0.5rem;
}

.space-switcher .tab {
  border: 1px solid #ddd;
  padding: 0.4rem 0.8rem;
  border-radius: 0.5rem;
  cursor: pointer;
}

.space-switcher .tab.is-active {
  font-weight: 600;
  border-color: #999;
}

.space-select {
  display: none;
}

@media (max-width: 640px) {
  .space-switcher .tabs {
    display: none;
  }
  .space-select {
    display: inline-block;
  }
}
@media only screen and (max-width: 1400px) {
  .direkciite,
  .container {
    max-width: 80vw;
    margin: 23px auto;
  }
}
@media only screen and (max-width: 1000px) {
  .direkciite,
  .container {
    max-width: 95vw;
    margin: 10px auto;
  }
}
@media only screen and (max-width: 800px) {
  .direkciite,
  .container {
    max-width: 95vw;
  }
}
.logo,
.brzi_linkovi,
.animacija {
  font-size: 1.6rem;
  max-width: 120rem;
  min-width: 80rem;
}

.animacija {
  margin: 25px auto;
  border-radius: 0.5rem;
  display: flex;
  min-height: 45rem;
  max-height: 60vh;
  overflow: hidden;
}

.item {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}
.item--1 {
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.897), rgba(255, 255, 255, 0.753)), url(./src_01.jpg);
  background-size: cover;
  background-position: center;
  width: 95vw;
  transition: width 200ms ease-out;
}
.item--2 {
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.877), rgba(255, 255, 255, 0.719)), url(./src_02.jpg);
  background-size: cover;
  background-position: right;
  width: 10rem;
  transition: width 200ms ease-out;
}
.item--3 {
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.877), rgba(255, 255, 255, 0.719)), url(./src_03.jpg);
  background-size: cover;
  background-position: center;
  width: 10rem;
  transition: width 200ms ease-out;
}
.item--4 {
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.877), rgba(255, 255, 255, 0.719)), url(./src_04.jpg);
  background-size: cover;
  background-position: center;
  width: 10rem;
  transition: width 200ms ease-out;
}

.prvoo {
  display: none;
  grid-column: 1/-1;
  grid-row: 1/-1;
  background-image: linear-gradient(to bottom, rgba(59, 122, 216, 0.897), rgba(0, 33, 53, 0.932));
  z-index: 1;
  transition: all 200ms ease-out;
  cursor: pointer;
}
.prvoo--meni {
  align-self: flex-start;
  justify-self: flex-start;
  padding-top: 6rem;
  padding-left: 2.35rem;
  font-size: 2rem;
  line-height: 1.3;
  color: #fff;
}
.prvoo--meni div {
  font-weight: 600;
}

.vtoroo {
  grid-column: 1/-1;
  grid-row: 1/-1;
  background-image: linear-gradient(to right bottom, rgba(255, 0, 234, 0.945), rgba(19, 0, 37, 0.822));
  z-index: 1;
  color: #fff;
  transition: all 200ms ease-out;
  cursor: pointer;
}
.vtoroo--meni {
  align-self: flex-start;
  justify-self: flex-start;
  padding-top: 6rem;
  padding-left: 2.35rem;
  font-size: 2rem;
  line-height: 1.3;
}
.vtoroo--meni div {
  font-weight: 600;
}

.tretoo {
  grid-column: 1/-1;
  grid-row: 1/-1;
  background-image: linear-gradient(to bottom, rgba(255, 230, 0, 0.897), rgba(38, 43, 14, 0.89));
  z-index: 1;
  color: #fff;
  transition: all 200ms ease-out;
  overflow: none;
  cursor: pointer;
}
.tretoo--meni {
  align-self: flex-start;
  justify-self: flex-start;
  padding-top: 6rem;
  padding-left: 2.35rem;
  font-size: 2rem;
  line-height: 1.3;
}
.tretoo--meni div {
  font-weight: 600;
}

.cetvrtoo {
  grid-column: 1/-1;
  grid-row: 1/-1;
  background-image: linear-gradient(to right bottom, rgba(199, 79, 79, 0.945), rgba(48, 0, 0, 0.822));
  z-index: 1;
  color: #fff;
  transition: all 200ms ease-out;
  cursor: pointer;
}
.cetvrtoo--meni {
  align-self: flex-start;
  justify-self: flex-start;
  padding-top: 6rem;
  padding-left: 2.35rem;
  font-size: 2rem;
  line-height: 1.3;
}
.cetvrtoo--meni div {
  font-weight: 600;
}

.sec {
  display: grid;
  grid-column: 1/-1;
  grid-row: 1/-1;
}

.zaedno {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.6rem;
}

.direkcija {
  display: flex;
  border-radius: 1rem;
  align-items: center;
  justify-content: center;
  list-style: none;
  padding: 0.5rem 0.3rem;
  width: 15rem;
  height: 7rem;
  align-self: center;
  justify-self: center;
  text-align: center;
  line-height: 1.2;
  box-shadow: 0 0.1rem 0.2rem rgba(0, 0, 0, 0.2);
  transition: all 200ms;
  cursor: pointer;
}

.direkcii {
  padding: 2rem 2rem;
}

.brzi_linkovi {
  margin: 25px auto;
  border-top: #004282 solid 1px;
  padding: 2.5rem 0;
}
.brzi_linkovi--zaedno {
  display: flex;
  list-style: none;
  justify-content: space-between;
}
.brzi_linkovi--element {
  text-decoration: none;
  color: #fff;
  background-image: linear-gradient(to bottom, rgba(24, 34, 124, 0.945), rgba(43, 108, 161, 0.822));
  border-radius: 1rem;
  padding: 1rem 2rem;
}
.brzi_linkovi--element:link, .brzi_linkovi--element:visited {
  color: #ffffff;
  box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.192);
  transition: all 200ms;
}
.brzi_linkovi--element:hover {
  box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.192);
  color: #ffffff;
  background-image: linear-gradient(to bottom, rgba(43, 108, 161, 0.822), rgba(24, 34, 124, 0.945));
  transform: translateY(-3px);
}
.brzi_linkovi--element:active {
  box-shadow: 0 0.1rem 0.5rem rgba(0, 0, 0, 0.192);
  color: #ffffff;
  transform: translateY(-1px);
}

.odmori {
  display: inline-block;
  margin-top: 25rem;
  margin-left: 38rem;
}

/* ======= Header two-column layout ======= */
.logo {
  border-bottom: 1px solid #004282;
  padding-bottom: 1rem;
  margin: 10px auto;
}

/* Two columns: left (logo), right (search+menu) */
.header-2col {
  display: flex;
  margin-bottom: 2.5rem;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap; /* wrap on small screens */
}

.header-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.logo--l {
  width: 20rem;
  max-width: 100%;
  height: auto;
  display: block;
}

/* Right column contains two rows stacked, aligned to the right */
.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* right-align children */
  gap: 0.6rem;
  flex: 1 1 420px; /* let it shrink/grow as needed */
  min-width: 320px;
}

.header-right__top,
.header-right__bottom {
  width: 100%;
  display: flex;
  justify-content: flex-end; /* content to the right */
}

/* ======= Main menu styling (unchanged look) ======= */
.meni--glavno {
  list-style: none;
  padding: 0;
  margin: 10px;
  text-align: right; /* visual right align for inline items */
}
.meni--li {
  display: inline-block;
  margin-inline: 0.25rem;
}
.meni--element {
  text-decoration: none;
  background-color: #fff;
  border-radius: 1rem;
  padding: 1rem 2rem;
}
.meni--element:link, .meni--element:visited {
  color: #004282;
  transition: all 200ms;
}
.meni--element:hover {
  box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.192);
  color: #004282;
  transform: translateY(-3px);
}
.meni--element:active {
  box-shadow: 0 0.1rem 0.5rem rgba(0, 0, 0, 0.192);
  color: #004282;
  transform: translateY(-1px);
}

/* ======= Search ======= */
/* visually-hidden label for a11y */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.search {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid #cfd9ea;
  border-radius: 999px;
  padding: 0.35rem 0.5rem 0.35rem 0.9rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: box-shadow 140ms ease, border-color 140ms ease;
}
.search:focus-within {
  border-color: #004282;
  box-shadow: 0 0 0 3px rgba(0, 66, 130, 0.15);
}

.search__input {
  border: none;
  outline: none;
  font: inherit;
  width: min(33ch, 60vw);
  padding: 0.5rem 0;
  color: #002a57;
}
.search__input::placeholder {
  color: #7a8aa3;
}

.search__btn {
  border: none;
  outline: none;
  background: #004282;
  color: #ffffff;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}
.search__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0.2rem 0.7rem rgba(0, 0, 0, 0.2);
  background: #003869;
}
.search__btn:active {
  transform: translateY(0);
  box-shadow: 0 0.1rem 0.4rem rgba(0, 0, 0, 0.18);
}

/* right-top row: search + vertical divider + auth icon */
.header-right__top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.6rem;
}

/* the divider between search and auth icon */
.header-divider {
  width: 1px;
  height: 4.25rem; /* same as .search__btn height */
  background: #cfd9ea;
  align-self: center;
  margin-inline: 1.25rem;
}

@media (max-width: 640px) {
  .header-divider {
    display: none;
  } /* save space on small screens */
}
/* small circular icon button for login/logout */
.auth-icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  background: #004282;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.auth-icon:hover {
  background: #003869;
  transform: translateY(-1px);
  box-shadow: 0 0.2rem 0.7rem rgba(0, 0, 0, 0.2);
}
.auth-icon:active {
  transform: translateY(0);
  box-shadow: 0 0.1rem 0.4rem rgba(0, 0, 0, 0.18);
}

/* (optional) different hues if you want them distinct */
.auth-icon--login {
  background: #1b8957;
} /* green-ish for sign-in */
.auth-icon--login:hover {
  background: #0c633c;
}

.auth-icon--logout {
  background: #ed1c24;
} /* red-ish for sign-out */
.auth-icon--logout:hover {
  background: #731a1a;
}

/* ======= Responsive tweaks ======= */
@media (max-width: 1000px) {
  .header-right {
    flex: 1 1 100%;
    min-width: 0;
  }
  .search__input {
    width: min(38ch, 70vw);
  }
}
@media (max-width: 640px) {
  .header-2col {
    align-items: stretch;
  }
  .header-right__top,
  .header-right__bottom {
    justify-content: stretch; /* full width on small screens */
  }
  .search {
    width: 100%;
  }
  .search__input {
    width: 100%;
  }
  .meni--glavno {
    text-align: left; /* simpler nav on small screens */
  }
}
.linkot {
  display: flex;
  align-items: center;
}

.doc {
  display: inline-block;
  width: 85rem;
}

.btn_edit,
.btn_delete {
  text-decoration: none;
  padding: 0.5rem 1.5rem;
  background-color: rgb(233, 233, 233);
  border-radius: 0.6rem;
  margin-left: 1.5rem;
}

.clen--element {
  height: 0px;
  overflow: hidden;
}

.accordion {
  border: none;
  border-left: 2px solid rgb(187, 14, 14);
  color: rgb(0, 0, 0);
  cursor: pointer;
  padding: 1.6rem;
  width: 97%;
  text-align: left;
  outline: none;
  font-size: 1.8rem;
  transition: 0.2s;
  margin-top: 3rem;
  text-transform: uppercase;
  font-weight: 700;
  counter-reset: odnovo;
}

.doc {
  position: relative;
}
.doc::before {
  counter-increment: odnovo;
  content: counter(odnovo);
  position: absolute;
  left: -0.1rem;
  background: rgb(255, 255, 255);
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  border: 1px solid rgb(187, 14, 14);
  font-size: 1.3rem;
  color: rgb(187, 14, 14);
}

.active, .accordion:hover {
  background-color: #ccc;
  border-left: 1rem solid rgb(187, 14, 14);
}

.accordion:after {
  content: "+";
  color: rgb(187, 14, 14);
  font-size: 2rem;
  font-weight: 100;
  float: right;
  margin-left: 5px;
}

.active:after {
  content: "−";
}

.panel {
  padding: 0 1.8rem;
  background-color: rgb(245, 245, 245);
  width: 97%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}

.podnaslov_1 {
  font-size: 1.8rem;
  padding-bottom: 1.2rem;
  padding-top: 1.2rem;
  padding-left: 1rem;
  text-transform: uppercase;
  border-left: 1rem solid rgb(187, 14, 14);
}

.cetvrt {
  font-size: 1.6rem;
  text-transform: uppercase;
  padding-left: 4rem;
  padding-top: 1.2rem;
}

.doc {
  text-decoration: none;
  padding-left: 4rem;
  padding-top: 1.5rem;
}
.doc:visited, .doc:link {
  color: #004282;
  transition: all 200ms;
}
.doc:hover {
  color: rgb(189, 79, 79);
  transform: translateX(3px);
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.form__group:not(:last-child) {
  margin-bottom: 2rem;
}
.form__input {
  font-size: 1.5rem;
  font-family: inherit;
  color: inherit;
  padding: 1.5rem 2rem;
  border-radius: 2px;
  background-color: rgb(245, 245, 245);
  border: none;
  border-bottom: 3px solid transparent;
  width: 100%;
  display: block;
  transition: all 0.3s;
}
.form__input:focus {
  outline: none;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
  border-bottom: 3px solid #004282;
}
.form__input:focus:invalid {
  border-bottom: 3px solid rgb(255, 0, 0);
}
.form__input::-webkit-input-placeholder {
  color: rgb(136, 136, 136);
}
.form__pola {
  width: 50%;
}
.form__label {
  font-size: 1.2rem;
  font-weight: 700;
  margin-left: 2rem;
  margin-top: 0.7rem;
  display: block;
  transition: all 0.3s;
}
.form__input:placeholder-shown + .form__label {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4rem);
}

.prva_linija {
  grid-column: 1/-1;
}

.hidden {
  display: none;
}

.modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 6rem;
  border-radius: 5px;
  box-shadow: 0 3rem 5rem rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 1, 68, 0.884);
  backdrop-filter: blur(5px);
  z-index: 5;
}

.show-modal {
  font-size: 2rem;
  font-weight: 600;
  padding: 1.75rem 3.5rem;
  margin: 5rem 2rem;
  border: none;
  background-color: #fff;
  color: #444;
  border-radius: 10rem;
  cursor: pointer;
}

.close-modal {
  position: absolute;
  top: 1.2rem;
  right: 2rem;
  font-size: 5rem;
  color: #333;
  cursor: pointer;
  border: none;
  background: none;
}

.gore {
  margin-top: 2rem;
  margin-bottom: 2rem;
  font-size: 1.6rem;
}

.glaven-kontejner-prvo {
  display: block;
  margin-top: 2rem;
  margin-left: 2rem;
  border-left: 7px solid rgb(255, 0, 0);
  padding-left: 1rem;
}

.ostanati {
  display: block;
  margin-top: 1rem;
  margin-left: 3rem;
  border-left: 3px solid rgb(0, 18, 58);
  padding-left: 1rem;
}

.dokument_b {
  display: block;
  padding-left: 1rem;
  background-color: none;
  color: rgb(0, 73, 156);
  text-decoration: none;
}

.dDugme {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  background-color: #004282;
  border: none;
  background-color: none;
  color: none;
  transform: translateY(0.6rem);
  cursor: pointer;
  margin-left: 1rem;
}

.logoF {
  display: inline-block; /* let it behave like an icon */
  width: 21rem; /* outer box  → change as needed */
  height: 7rem;
  /* show the SVG itself */
  background: url("/css/logo_UNINet.svg") center/contain no-repeat;
  /* no hover effects, no extra transforms */
  cursor: default;
}

.hH3 {
  font-size: 2rem;
  font-weight: bold;
}

.hH4 {
  font-size: 1.6rem;
  font-weight: 700;
}

.dDugme:hover {
  transform: translateY(0.5rem);
  background-color: rgb(194, 7, 7) !important;
}

.newFolder {
  -webkit-mask: url(folder-svgrepo-com.svg) no-repeat center;
  mask: url(folder-svgrepo-com.svg) no-repeat center;
}

.edit {
  -webkit-mask: url(edit-svgrepo-com.svg) no-repeat center;
  mask: url(edit-svgrepo-com.svg) no-repeat center;
}

.file {
  -webkit-mask: url(file-svgrepo-com.svg) no-repeat center;
  mask: url(file-svgrepo-com.svg) no-repeat center;
}

.brisi {
  -webkit-mask: url(delete-svgrepo-com.svg) no-repeat center;
  mask: url(delete-svgrepo-com.svg) no-repeat center;
}

.volinija {
  display: inline-block;
}

.crveno {
  color: red;
}

.toggle-files {
  border: none;
  background: none;
  padding: 0 4px;
  cursor: pointer;
}

.toggle-files::before {
  content: "▶"; /* closed */
  display: inline-block;
  transition: transform 0.2s;
}

.toggle-files.open::before {
  transform: rotate(90deg); /* ▼ open */
}

/* indent file rows */
.file-list {
  margin-left: 36px; /* visually under the category */
}

/* subtle slide-down animation (optional) */
.file-list {
  overflow: hidden;
  transition: all 0.25s ease;
}

/* -------------------------------
   Login page
-------------------------------- */
.auth {
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.auth-card {
  width: min(440px, 100%);
  background: #ffffff;
  border: 1px solid #cfd9ea;
  border-radius: 14px;
  padding: 2rem 1.6rem;
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.07);
}

.auth-title {
  margin: 0 0 1.2rem 0;
  color: #004282;
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  font-weight: 700;
  line-height: 1.2;
}

.auth-alert {
  background: #ffe9e9;
  color: #8a1f1f;
  border: 1px solid #f3c7c7;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}
.field__label {
  font-weight: 600;
  color: #002a57;
}
.field__input {
  border: 1px solid #cfd9ea;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  line-height: 1.3;
  font: inherit;
  color: #002a57;
  background: #ffffff;
  transition: box-shadow 0.14s ease, border-color 0.14s ease;
}
.field__input::placeholder {
  color: #7a8aa3;
}
.field__input:focus {
  outline: none;
  border-color: #004282;
  box-shadow: 0 0 0 3px rgba(0, 66, 130, 0.12);
}
.field__password {
  position: relative;
  display: flex;
  align-items: center;
}
.field__password .field__input {
  width: 100%;
  padding-right: 2.8rem;
}
.field__toggle {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.2rem;
  height: 2.2rem;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #004282;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.12s ease;
}
.field__toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}
.field__toggle:active {
  background: rgba(0, 0, 0, 0.08);
}

.btn {
  appearance: none;
  border: none;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font: inherit;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn--primary {
  background: #004282;
  color: #fff;
}
.btn--primary:hover {
  background: rgb(0, 50.4646153846, 99.4);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}
.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
}
.btn--primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 66, 130, 0.18);
}
.btn--block {
  width: 100%;
}

.auth-help {
  margin-top: 0.9rem;
  color: #7a8aa3;
  font-size: 1.2rem;
  text-align: center;
}

/* Flat, block layout (no card) */
.doc-form {
  padding: 1rem;
}

.form-alert {
  background: #ffe9e9;
  color: #8a1f1f;
  border: 1px solid #f3c7c7;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin: 0 0 1rem 0;
}

.form {
  display: grid;
  gap: 1rem;
  width: 100%;
}

.field {
  display: block;
  /* 100% width text input */
}
.field__label {
  display: block;
  font-weight: 600;
  color: #002a57;
  margin-bottom: 0.4rem;
}
.field__help {
  margin-top: 0.35rem;
  color: #7a8aa3;
  font-size: 0.9rem;
}
.field__input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cfd9ea;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: #002a57;
  background: #ffffff;
  transition: box-shadow 0.14s ease, border-color 0.14s ease;
}
.field__input::placeholder {
  color: #7a8aa3;
}
.field__input:focus {
  outline: none;
  border-color: #004282;
  box-shadow: 0 0 0 3px rgba(0, 66, 130, 0.12);
}

/* File picker as its own block */
.file-picker {
  display: block;
  /* filename on its own line under the button */
}
.file-picker__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0; /* visually hidden but accessible */
}
.file-picker__btn {
  display: inline-block;
  background: #004282;
  color: #fff;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  cursor: pointer;
  user-select: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.file-picker__btn:hover {
  background: rgb(0, 50.4646153846, 99.4);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}
.file-picker__btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}
.file-picker__btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 66, 130, 0.18);
}
.file-picker__name {
  display: block;
  margin-top: 0.4rem;
  color: #002a57;
  min-height: 1.25rem;
}

/* Buttons row under the two blocks */
.form-actions {
  display: flex;
  margin-top: 2.5rem;
  gap: 0.6rem;
  justify-content: flex-end;
}

.btn {
  appearance: none;
  border: none;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font: inherit;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.12s ease, background 0.12s ease;
  text-decoration: none;
  display: inline-block;
}
.btn--primary {
  background: #004282;
  color: #fff;
}
.btn--primary:hover {
  background: rgb(0, 50.4646153846, 99.4);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}
.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
}
.btn--primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 66, 130, 0.18);
}
.btn--secondary {
  background: #eef3f9;
  color: #002a57;
  border: 1px solid #cfd9ea;
}
.btn--secondary:hover {
  background: #e6eef7;
}
.btn--secondary:active {
  background: #dde7f4;
}

/* ——— Force vertical stacking on the new/edit file forms ——— */
.doc-form .form {
  display: grid !important;
  grid-template-columns: 1fr !important; /* one column only */
  grid-auto-flow: row !important; /* place items top→bottom */
  gap: 1rem;
}

.doc-form .form > * {
  grid-column: 1/-1; /* each block spans the full width */
}

.doc-form .field {
  display: block !important;
  width: 100%;
  margin-top: 2.5rem;
}

/* Small screens: full width naturally */
@media (max-width: 600px) {
  .form-actions {
    justify-content: stretch;
  }
  .btn {
    width: 100%;
    text-align: center;
  }
}
/* ==========================================================================
   Search Results & Filters
   Aligns with the UNINet header styling (rounded, blue accents)
   ========================================================================== */
/* --- Tokens (simple) ----------------------------------------------------- */
/* --- Filters row --------------------------------------------------------- */
/* HTML (EJS):
<form class="search-filters" ...>
  <input type="hidden" ...>
  <label for="f-space" class="search-filters__label">Филтер:</label>
  <div class="search-filters__select-wrap">
    <select id="f-space" name="space">...</select>
    <span class="select-icon"></span>
  </div>
  <noscript><button type="submit">Филтрирај</button></noscript>
</form>
*/
.search-filters {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0.5rem 0 4rem;
  /* keep the whole control visually light, like the header */
  /* Chevron icon inside the select */
  /* Progressive enhancement: fallback submit button */
}
.search-filters__label {
  font-weight: 500;
  color: #002a57;
  white-space: nowrap;
  /* small soft chip look */
  background: #ffffff;
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
}
.search-filters__select-wrap {
  position: relative;
  display: inline-block;
}
.search-filters select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #ffffff;
  color: #002a57;
  font: inherit;
  border: 1px solid #cfd9ea;
  border-radius: 999px;
  padding: 0.45rem 2.5rem 0.45rem 0.9rem; /* room for the icon */
  min-width: 10rem;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search-filters select:hover {
  border-color: rgb(178.6173913043, 194.5304347826, 221.5826086957);
}
.search-filters select:focus {
  outline: none;
  border-color: #004282;
  box-shadow: 0 0 0 3px rgba(0, 66, 130, 0.15);
}
.search-filters .select-icon {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  width: 1rem;
  height: 1rem;
  transform: translateY(-50%);
  pointer-events: none;
  /* inline SVG so it inherits easily and avoids extra assets */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23004282' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center/contain;
}
.search-filters button {
  border: none;
  background: #004282;
  color: #fff;
  border-radius: 0.65rem;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}
.search-filters button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0.2rem 0.7rem rgba(0, 0, 0, 0.2);
  background: #003869;
}
.search-filters button:active {
  transform: translateY(0);
  box-shadow: 0 0.1rem 0.4rem rgba(0, 0, 0, 0.18);
}

/* --- Sections / Headings ------------------------------------------------- */
.search-group {
  margin-bottom: 2.25rem;
}
.search-group > h3 {
  margin: 0.4rem 0 0.6rem;
  font-weight: 900;
}

/* --- List of hits -------------------------------------------------------- */
.search-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.search-list li {
  padding: 0.35rem 0;
  border-bottom: 1px dashed #e3eaf5;
}
.search-list a {
  text-decoration: none;
  color: #004282;
  transition: color 0.15s ease, text-shadow 0.15s ease;
}
.search-list a:hover {
  color: #003869;
  text-shadow: 0 0 0.01px currentColor; /* crisper underlines on some renderers */
}

/* --- Pager --------------------------------------------------------------- */
.pager {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-top: 1px solid #e3eaf5;
  padding-top: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.pager a {
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #cfd9ea;
  border-radius: 0.75rem;
  padding: 0.35rem 0.7rem;
  color: #004282;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}
.pager a:hover {
  transform: translateY(-1px);
  box-shadow: 0 0.2rem 0.7rem rgba(0, 0, 0, 0.12);
  border-color: rgb(178.6173913043, 194.5304347826, 221.5826086957);
}
.pager span {
  color: #536683;
}

/* --- Accessibility helpers ---------------------------------------------- */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Responsive tweaks --------------------------------------------------- */
@media (max-width: 640px) {
  .search-filters {
    flex-wrap: wrap;
    gap: 0.6rem;
  }
  .search-filters__label {
    padding: 0.3rem 0.55rem;
  }
  .search-filters select {
    min-width: 0;
    width: 100%;
  }
}

/*# sourceMappingURL=styles.css.map */
