:root {
  --blue-color: #113c68;
  --color-dark: #2d2d2d;
  --color-light: #3b3b3b;
  --text-grey: #8390a2;
  --text-light: #959494;
  --color-grey: #efefef;
}

* {
  margin: 0;
  padding: 0;
  text-decoration: none;
  list-style-type: none;
  box-sizing: border-box;
  color: var(--color-dark);
}

p {
  margin-bottom: 0.5rem;
}

a.btn-primary,
button.btn-primary,
input.btn-primary {
  background-color: var(--blue-color);
  --bs-btn-border-color: var(--blue-color);
  color: #fd0;
}

body .mw-600 {
  max-width: 600px;
}

.text-blue {
  color: var(--blue-color);
}

.text-light-blue {
  color: #2470dc;
}

.ta-r {
  text-align: right;
}

.alert-success {
  color: #006e2c;
  background-color: #ccf1db;
  border-color: #b3e9c9;
  padding: 0.75rem;
}

.alert-danger {
  color: #951d32;
  background-color: #fed6dd;
  border-color: #fdc1cc;
  padding: 0.75rem;
}

.content-card {
  border-radius: 0.5rem;
}

.border-blue {
  border: 1px solid #1947a861;
}

/* TAGOVI */
.tag-item {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-bottom: 1rem;
  background-color: #f2f2f2;
  border-radius: 6px;
  padding: 0.6rem;
}

.tag-item .tag-status {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 1rem;
}

.tag-item .tag-status .status {
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

@media (max-width: 767.98px) {
  .tag-item .tag-status {
    flex-direction: column;
    align-items: flex-end;
  }
}

/* PROLASCI */
.prolazak-item {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-bottom: 1rem;
  background-color: #f2f2f2;
  border-radius: 6px;
}

.prolazak-item:hover,
.tag-item:hover {
  background-color: rgb(216, 214, 214);
}

.prolazak-item .prolazak-info {
  padding: 0.6rem;
  flex: 1;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.prolazak-item .prolazak-info .stanice,
.tag-item .tag-info .stanice{
  margin-bottom: 0;
}

.prolazak-item .prolazak-info .tablice,
.tag-item .tag-info .tablice  {
  font-size: 1.3rem;
}

.prolazak-item .prolazak-info .datum-vreme {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.prolazak-item .prolazak-info .reklamacija {
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
  border-radius: 5px;
  background-color: #e3e3e3;
  cursor: pointer;
  margin-bottom: 5px;
}

.prolazak-item .prolazak-info .reklamacija:hover {
  opacity: 0.8;
}

.prolazak-item .prolazak-info .reklamacija.poslata {
  background-color: #ccf1db;
  color: #006e2c;
}

.prolazak-item .prolazak-info .reklamacija.poslata i {
  color: #006e2c;
}

.prolazak-item .prolazak-info .datum-vreme .datum {
  font-size: 0.9rem;
}

.prolazak-item .prolazak-info .datum-vreme .vreme {
  font-size: 0.9rem;
}

.prolazak-item .prolazak-cena {
  background-color: #2470dc;
  border-radius: 0 6px 6px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1rem;
}

.prolazak-item .prolazak-cena .cena {
  margin-right: 5px;
}

.prolazak-item .prolazak-cena span {
  color: white;
}

@media (max-width: 767.98px) {
  .prolazak-item .prolazak-info {
    flex-direction: column;
  }

  .prolazak-item .prolazak-info .stanice,
  .prolazak-item .prolazak-info .datum-vreme .datum {
    font-size: 0.8rem;
  }

  .prolazak-item .prolazak-info .datum-vreme {
    flex-direction: column;
    font-size: 0.8rem;
    align-items: flex-start;
  }

  .prolazak-item .prolazak-info .datum-vreme .vreme {
    font-size: 0.8rem;
  }
}

/* KARTICE */
.card-item {
  margin-bottom: 1rem;
  background-color: #f2f2f2;
  padding: 0.8rem;
  border-radius: 6px;
}

.card-item:hover {
  background-color: #efeded;
}

.card-item .default-label, 
.card-item .default-label i {
  color: #2470dc;
}

.card-item .default-card .default-label,
.card-item .default-card i {
  color: #2470dc;
}

.card-item .non-default-label,
.card-item .default-label  {
  display: none;
}

.card-item.default-card .default-label {
  display: block;
}

.card-item.other-card:hover .non-default-label {
  display: block;
}

.card-item .non-default-label, 
.card-item .non-default-label i {
  color: var(--text-light);
  cursor: pointer;
} 

.card-item .non-default-label:hover, 
.card-item .non-default-label:hover i {
  color: #2470dc;
}


.card-item .date-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.card-item .date-action i {
  color: var(--text-light);
  font-size: 1.3rem;
  cursor: pointer;
}

.card-item .heading {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.card-item .card-no {
  font-size: 1.5rem;
}

.card-item .expiration-date,
.card-item .expiration-date span {
  color: var(--text-light);
}

.card-item img {
  border-radius: 3px;
}

/* DASHBOARD START */

.dashboard-body header {
  background-color: var(--blue-color);
}
/*
   * Sidebar
   */

.sidebar {
  position: fixed;
  top: 0;
  /* rtl:raw:
    right: 0;
    */
  bottom: 0;
  /* rtl:remove */
  left: 0;
  z-index: 100; /* Behind the navbar */
  padding: 48px 0 0; /* Height of navbar */
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.1);
}

.recapitulation-table {
  width: 500px;
}

table.racuni td,
.recapitulation-table td {
  vertical-align: middle;
}

.payment-status {
  background-color: grey;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  color: white;
}

.payment-status.success,
.tag-item .status.success {
  color: #006e2c;
  background-color: #ccf1db;
}

.payment-status.failed,
.tag-item .status.failed {
  color: #951d32;
  background-color: #fed6dd;
}

.payment-status.waiting,
.tag-item .status.waiting {
  color: #856404;
  background-color: #fff3cd;
}

@media (max-width: 767.98px) {
  .sign-out-btn {
    display: none;
  }

  table.racuni thead {
    display: none;
  }

  table.racuni td {
    display: block;
    border-bottom: none;
    text-align: right;
  }

  table.racuni tr {
    border-bottom: 1px solid #dadada;
  }

  table.racuni td::before {
    content: attr(data-title);
    float: left;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 0.9rem;
    color: black;
  }

  .recapitulation-table {
    width: 100%;
  }

  .card-item.other-card .non-default-label {
    display: block;
    font-size: 0.8rem;
  }
}

.action-button {
  color: #2470dc;
  border: 1px solid #2470dc;
}

.action-button:hover {
  background-color: #2470dc;
  color: white;
}

.action-button:hover i {
  color: white;
}

.action-button i {
  color: #2470dc;
}

.sidebar-sticky {
  height: calc(100vh - 48px);
  overflow-x: hidden;
  overflow-y: auto; 
}

.sidebar .nav-item {
  padding: 0.25rem 0;
}

.sidebar .nav-link {
  font-weight: 500;
  color: #333;
}

.sidebar .nav-link i {
  margin-right: 4px;
  color: #333;
}

.sidebar .nav-link.active,
.sidebar .nav-link.active i {
  color: #2470dc;
}

.sidebar .nav-link:hover,
.sidebar .nav-link:hover i,
.sidebar .nav-link.active i {
  color: #2470dc;
}

.sidebar-heading {
  font-size: 0.75rem;
}

/*
   * Navbar
   */

.navbar-brand {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.25);
}

.navbar .navbar-toggler {
  top: 0.75rem;
  right: 1rem;
}

.navbar .form-control {
  padding: 0.75rem 1rem;
}

.form-control-dark {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
}

.form-control-dark:focus {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}
