body {
  font-family: Roboto, Arial, sans-serif;
  margin: 0;
}

a, button, .button {
  font-family: Roboto;
}

input[type="checkbox"] {
  accent-color: var(--main);
}

#content {
  min-height: 80vh;
  margin: 0 0.5em;
}

.korisnik {
  margin: 0.5em;
  display: inline-flex;
}

.error {
  background-color: #c02020; /* Red background color */
  color: #fff; /* White text color */
  border-radius: 0.5em; /* Rounded corners */
  padding: 10px 20px; /* Padding around the text */
  margin-bottom: 10px; /* Margin to separate it from other content */
  font-size: 16px; /* Font size */
  text-align: center; /* Center-align text */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  font-weight: bold;
  box-sizing: border-box;
  display: block;
  width: fit-content;
}

h1, h2 {
  text-align:center;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  background: var(--main);
  font-size: 2em;
  height: 1.2em;
  padding: 0.5em 0.25em;
  margin-bottom: 0.5em;
}

.header .company {
  text-align: center;
}

.header .logo {
  max-width: 3.2em;
  background: white;
  border-radius: 0.3em;
}


#menu {
    position: fixed;
    top: 4em;
    left: -15em; /* Initially, hide the menu off-screen */
    width: 13em;
    height: 100%;
    background-color: var(--menu);
    padding: 1em;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: left 0.3s ease;
}

.open {
    left: 0em !important;
}

#menu ul {
    list-style: none;
    padding: 0;
}

#menu ul li {
    margin-bottom: 1.5em;
}

#menu ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
}

#menu ul li a:hover {
  color: var(--highlight);
}

.general-container {
  padding: 20px;
  border-radius: 1em;
  background-color: var(--surface);
}

/* Style for Form Container */
.form-container {
  /* margin: 20px; */
  /* border: 1px solid #ddd; */
  padding: 20px;
  border-radius: 1em;
  background-color: var(--surface);
  /* box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); */
}

.form-container div {
  margin-bottom: 1.2em;
  display: block;
}

.form-container .alert div {
  margin-bottom: initial;
  display: flex;
}

/* Alert */
.alert {
  color: white;
  background-color: var(--toast-info);
  margin: 1em 0;
  padding: 1em;
  border-radius: 10px;
  box-shadow: #041c70 3px 2px 3px;
}

.alert.alert-danger {
  background: #c02020;
  box-shadow: #550020 3px 2px 3px;
}

.alert.alert-warning {
  color: black;
  background: #eed202;
  box-shadow: #837302 3px 2px 3px;
}

.subitem {
  /* border: 1px solid var(--background); */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  border-radius: 1em;
  padding: 1em;
  margin-bottom: 1em;
}

.mini-container {
  border: 1px solid #ccc;
  border-radius: 1em;
  padding: 10px;
  margin-bottom: 10px;
}

/* Style for Form Input Fields */
.form-container input[type=text], 
.form-container input[type=password], 
.form-container input[type=email], 
.form-container input[type=month], 
.form-container input[type=tel],
.form-container input[type=date],
.form-container input[type=datetime-local],
.form-container input[type=number], 
.form-container select, 
.form-container textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-top: 6px;
  margin-bottom: 16px;
  resize: vertical;
  font-size: 16px;
}

.form-container input[type=number] {
  /* width: 50%; */
  /* float: right; */
}

@media screen and (min-width: 800px) {
  .form-container {width: 700px;}

}

/* Style for Form Input Field Labels */
.form-container label {
  font-size: 18px;
/*  font-weight: bold;*/
  color: #333;
}

.required-input {
  border: 1px solid red !important;
}

#profit_splits_total {
  margin-bottom: 1em;
  display: inline-block;
}

.nice-select {
  margin-top: 6px;
  margin-bottom: 1em;
  padding-left: 12px;
  font-size: 0.9em;
}

.nice-select-search{
  margin-bottom:0px !important;
}

.nice-select .list {
  max-height: 30em !important;
}
.nice-select .list {
  margin-top:0px !important;
}

.button {
  background: var(--main);
  color: #fff;
  padding: 12px 20px;
  border: 0.15rem solid var(--main);
  cursor: pointer;
  font-size: 18px;
  text-decoration:none;
  display: inline-block;
  border-radius: .4rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-bottom: 0.5em;
}

.button:hover {
  background: var(--highlight);
  border: 0.15rem solid var(--highlight);
}

.button.danger {
  background: #c02020;
  border: 0.15rem solid #c02020;
}

.button.danger:hover {
  background: #dd4242;
  border: 0.15rem solid #dd4242;
}

.button.button-outline, .button.button-outline a { 
  background-color: transparent;
  color: var(--main);
}

.button.list-button {
  margin:0.5em;
  display: inline-block;
  text-align: center;
}

.button.plus-button {
  width: 40px;
  height: 40px;
  font-size: 24px;
  text-align: center;
  line-height: 40px; /* Center the + vertically */
  border-radius: 50%; /* Make it circular */
  padding: 0;
  background-color: var(--main);
  color: white;
  display: inline-block;
  font-weight: bold;
}

.button.plus-button:hover {
  background-color: var(--highlight);
}

.button.minus-button {
  width: 1.2em;
  height: 1.2em;
  font-size: 1em;
  text-align: center;
  line-height: 1em;
  vertical-align: middle;
  font-weight: bolder !important;
  border-radius: 50%;
  padding: 0;
  background-color: #c02020;
  border:none;
  display: inline-block;
  margin-bottom: 0;
}

.button.minus-button:hover {
  background-color: #dd4242;
}

.button.button-slim {
  background: none;
  color: var(--main);
}

.button.button-slim:hover {
  background: var(--main);
  color: white;
}


.autoshrink-button {
  width: 130px;
  padding: 8px;
  white-space: nowrap;
  overflow: hidden;
  font-size: 16px;
  display: inline-block;
  height: 1.2rem;
}


/* Style for Form Submit Button 
.form-container button {
  background-color: #4CAF50;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
}8*/


.ok {
  background-color: rgba(144, 238, 144, 0.5); /* Use rgba() to set the background color with alpha transparency */
  color: #000000;
  padding: 10px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
}

.greska {
  background-color: #FF4444;
  color: #ffffff;
  padding: 10px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
}

.table {
  border-collapse: collapse;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.table th {
  background-color: var(--main);
  color: #fff;
  font-weight: bold;
  padding: 10px;
  text-align: left;
  text-transform: uppercase;
}

.table td, .table th {
  border: 1px solid #ccc;
  padding: 10px;
  vertical-align: middle;
}

.table tr:nth-child(even) {
  background-color: #f2f2f2;
}

.table tr:hover {
  background-color: #ddd;
}

.text-center { text-align: center; }

.table-text-center td,
.table-text-center th {
  text-align: center;
}


/* FANCY TABLE 
table{width:100%;border-collapse:collapse;border-spacing:0;font-family:Arial,sans-serif}
table td,table th{padding:12px;text-align:center;border:1px solid #ccc}
table th{background-color:var(--main);font-weight:700;border:1px solid #8c1af5}
table tr:nth-child(2n){background-color:#f7f7f7}
*/

button a {
  color: #fff;
  text-decoration: none;
}

button.save {
  padding-left: 24px;
  background: url('/icons/save.svg') no-repeat left center;
  background-size: 16px 16px;
}

#menu-toggle {
  cursor: pointer;
}


/********/
/* LIST */
/********/
.x-list {
  background: var(--surface);
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  max-width: 500px;
  /* margin: 0 auto; */
}

.x-list a {
  display: block;
  padding: 20px 16px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
  position: relative;
}

.x-list a:last-child {
  border-bottom: none;
}

.x-list a:hover {
  background: #f8f8f8;
}

.x-list .x-list-item.selected {
  background-color: var(--accent);
}

.x-list-title {
  color: var(--surface-title);
}

.x-list-subtitle {
  font-size: small;
  color: var(--surface-subtitle);
}

.chevron {
  color: #ccc;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
}

.selected-icon {
  float: right; height: 1.5em;
}

.required {
  color: red;
  padding: 0 2px;
}

@media (min-width: 768px) {
  #content {
      margin-left: 18em;
  }
  #menu {
    left: 0px;
    top: 0em;
  }
  body {
    background: var(--background);
  }
}

.fade {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.fade.show {
  opacity: 1;
}

#global-spinner {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  position: fixed;
  background-color: rgba(0, 0, 0, 0.5);
  -webkit-tap-highlight-color: transparent;
  transition: all 0.3s ease-in-out;
  height: 100vh;
}

.loader {
  position: relative;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  border: 5px solid #D8D8D8;
  border-bottom-color: var(--main);
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.page-header {
  text-align: center;
  margin: 1.75em 0;
}

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

.page-subheading {
  font-size: 1.25rem;
  color: gray;
}

.link {
  text-decoration-color: var(--main);
  color: black;
  transition: all .4s;
}

.link:hover {
  text-decoration-color: black;
  color: var(--main);
}

.svg-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  font-size: 0;
}

.svg-icon > svg {
  display: inline;
  height: 100%;
  fill: currentColor;
}

.svg-icon-with-text-container {
  display: flex;
  align-items: center;
  justify-content: left;
  gap: 0.5em;
}

.svg-icon-with-text {
  display: flex;
  justify-content: center;
}

.svg-icon-clickable {
  transition: color 0.3s ease, color 0.3s ease;
}

.svg-icon-clickable:hover {
  color: var(--highlight);
}

.simple-navigator {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 1em 0;
  font-size: 1.25em;
  font-weight: bold;
}

.simple-navigator-title {
  margin-bottom: 0.5em;
  font-size: 1.5em;
}

.simple-navigator-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
}

.simple-navigator-navigation .button {
  margin: 0;
}

.week-1 { background-color: #E3F2FD; }
.week-2 { background-color: #F1F8E9; }
.week-3 { background-color: #FFF8E1; }
.week-4 { background-color: #E8EAF6; }
.week-5 { background-color: #F6F2E8; }

.week-1:hover { background-color: #BBDEFB; }
.week-2:hover { background-color: #DCEDC8; }
.week-3:hover { background-color: #FFECB3; }
.week-4:hover { background-color: #C5CAE9; }
.week-5:hover { background-color: #F3E3BB; }

.action-buttons {
  display: flex;
  justify-content: space-between;
  gap: 0.5em;
}

.action-buttons form {
  display: inline;
}

/* Right slide-in toast */

.toaster {
  position: fixed;
  top: 1em;
  right: 0;
  z-index: 102;
  background-color: var(--toast-primary);
  color: white;
  padding: 1em;
  border-radius: 0.5em;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  animation: slide-in-out 7s ease-in-out forwards;
}

@keyframes slide-in-out {
  0%   { transform: translateX(100%); }
  10%  { transform: translateX(-3%); }
  80%  { transform: translateX(-3%); }
  100% { transform: translateX(100%); }
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: white;
  border: 2px solid white;
  border-style: hidden;
  border-bottom-style: solid;
  border-bottom-right-radius: 40px;
  border-bottom-left-radius: 40px;
  animation: shrink 6s 0.5s linear forwards;
}

@keyframes shrink {
  from { width: 100%; border-bottom-right-radius: 0px; }
  to   { width: 0%; }
}

.toaster.t-success .svg-icon {
  color: var(--toast-success);
}

.toaster.t-success .toast-progress {
  background: var(--toast-success);
  border-color: var(--toast-success);
}

.toaster.t-error .svg-icon {
  color: var(--toast-danger);
}

.toaster.t-error .toast-progress {
  background: var(--toast-danger);
  border-color: var(--toast-danger);
}

.toaster.t-warning .svg-icon {
  color: var(--toast-warning);
}

.toaster.t-warning .toast-progress {
  background: var(--toast-warning);
  border-color: var(--toast-warning);
}

.toaster.t-info .svg-icon {
  color: var(--toast-info);
}

.toaster.t-info .toast-progress {
  background: var(--toast-info);
  border-color: var(--toast-info);
}


/* Top slide-down toast */

.toast {
  display: flex;
  align-items: center;
  position: fixed;
  top: 1em;
  left: 0;
  right: 0;
  width: 50px;
  height: 50px;
  border-radius: 6px;
  margin: auto;
  z-index: 101;
  visibility: hidden;
  text-align: center;
  color: white;
  background-color: var(--toast-primary);
}

.toast .toast-icon {
  flex: 0 0 50px;
  height: 50px;
  padding: 16px 0;
  box-sizing: border-box;
  border-radius: 2px;
  background-color: var(--toast-info);
  margin-right: 10px;
}

.toast .toast-description {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-align: left;
  height: 100%;
  align-content: center;
  min-width: 0;
  transform-origin: left;
}

.toast.toast-show {
  visibility: visible;
  animation: fadein 0.5s, expand 0.5s 0.5s, stay 3s 1s, t-shrink 0.5s 4s, fadeout 0.5s 4.5s;
}

.toast.t-success > .toast-icon { background-color: var(--toast-success); }
.toast.t-warning > .toast-icon { background-color: var(--toast-warning); }
.toast.t-error > .toast-icon { background-color: var(--toast-danger); }
.toast.t-info > .toast-icon { background-color: var(--toast-info); }

@keyframes fadein {
  from { top: 0; opacity: 0; }
  to   { top: 1em; opacity: 1; }
}

@keyframes expand {
  from { min-width: 0; }
  to   { min-width: var(--toast-width); }
}

@keyframes stay {
  from { min-width: var(--toast-width); }
  to   { min-width: var(--toast-width); }
}

@keyframes t-shrink {
  from { min-width: var(--toast-width); }
  to   { min-width: 0; }
}

@keyframes fadeout {
  from { top: 1em; opacity: 1; }
  to   { top: 0; opacity: 0; }
}

.hidden {
  display: none !important;
}

.table-text-center th a {
  display: block; /* so the user doesn't have to be pixel-perfect when clicking the link */
  color: white;
  text-decoration-color: var(--accent);
  transition: all .3s;
}

.table-text-center th a:hover {
  color: #b2b2b2;
  text-decoration-color: var(--highlight);
}

.content-container {
  width: max-content;
}

.content-container.form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.table-show-more-btn {
  background-color: var(--accent);
  cursor: pointer;
  text-align: center;
  transition: .3s ease-in-out;
  transition-property: background-color, color;
}

.table-show-more-btn:hover {
  background-color: var(--highlight);
  color: white;
}

.info-card-container {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.info-card {
  background-color: #fafafa;
  padding: 0.5em 1.5em;
  border-radius: 10px;
  border: 1px solid #cccccc;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.info-card-icon-container {
  text-align: center;
}

.info-card-title {
  margin: 0;
  margin-bottom: 5px;
  text-align: center;
}

.info-card-value {
  display: block;
  width: 100%;
  text-align: center;
  font-weight: bold;
}

@media (max-width: 1160px) {
  .info-card-container {
    flex-direction: column;
    gap: 1em;
  }
}