/* Osnovni stil */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f8f8f8;
  color: #333;
}

header {
  background: #1e90ff;
  color: white;
  padding: 10px 20px;
}

.logo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo-img {
  width: 100px;
  height: auto;
}

.logo-text {
  font-size: 24px;
  font-weight: bold;
  color: white;
  margin-left: 15px;
}

#callout {
  margin-left: auto;
  text-align: right;
}

#callout p {
  margin: 0;
  font-size: 16px;
}

nav {
  display: flex;
  gap: 15px;
  margin: 10px 0;
  flex-wrap: wrap;
  justify-content: center;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 4px;
  background: #1e90ff;
  transition: background 0.3s;
}

nav a:hover {
  background: #0d71c7;
}

section {
  padding: 20px;
}

h1 {
  font-size: 1.8rem;
  margin-bottom: 20px;
   text-align: center;
}

form {
  max-width: 600px;
  margin: 0 auto;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  font-size: 1rem;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: #1e90ff;
  outline: none;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

button {
  padding: 10px 16px;
  background: #1e90ff;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
  border-radius: 4px;
  transition: background 0.3s, transform 0.2s;
}

button:hover {
  background: #0d71c7;
  transform: scale(1.02);
}

table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 10px;
  background: white;
}

th,
td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: center;
}

th {
  background: #f4f4f4;
}

footer {
  background: #1e90ff;
  color: white;
  text-align: center;
  padding: 15px;
  font-size: 14px;
}

/* Predlozi */
.suggestions {
  margin-top: 30px;
  background: #fff;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.suggestions h2 {
  margin-top: 0;
  font-size: 18px;
}

.suggestions ul {
  list-style: none;
  padding-left: 0;
}

.suggestions li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.suggestions li::before {
  content: "💡";
  position: absolute;
  left: 0;
}

/* Grafikon sekcija */
.chart-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

.chart-wrapper canvas {
  width: 100%;
  height: 400px;
  display: block;
  margin: 30px auto;
  background: #fff;
  padding: 15px;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Lokacije i kontakt */
.location-list {
  list-style: none;
  padding-left: 0;
}

.location-list li {
  margin-bottom: 30px;
  background: #fff;
  padding: 15px;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  line-height: 1.6;
}

.map-wrapper {
  margin-top: 10px;
}

.map-wrapper iframe {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: 6px;
}

.grafic-name {
  text-align: center;
  font-size: 1.8rem;
  /* možeš prilagoditi veličinu */
  font-weight: bold;
}

/* Admin panel dodatno */
form h3 {
  margin-top: 20px;
  font-size: 1.2rem;
  color: #1e90ff;
}
/* Tabela kontejner za mobilne uređaje */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.table-wrapper table {
  min-width: 500px;
}

/* Kartice za kursnu listu */
.currency-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
  width: 100%;
  /* puni ekran na mobilnim uređajima */
  max-width: 600px;
  /* ograniči širinu na desktopu */
  margin-left: auto;
  margin-right: auto;
}

.currency-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.currency-header {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #1e90ff;
}

.currency-row {
  display: flex;
  justify-content: space-between;
  margin: 5px 0;
  font-size: 0.95em;
}

.currency-row:last-child {
  margin-bottom: 0;
}

.currency-row span {
  color: #555;
}

.logo-subtext {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  display: block;
  margin-top: 6px;
}

.hidden {
  display: none !important;
}

/* Disclaimer */
.disclaimer {
  font-size: 0.6rem;
  font-style: italic;
  color: #555;
  margin-top: 10px;
  padding-top: 10px;
  line-height: 1.4;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.grafic-wrapper {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.history-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
/* ✅ Dodato za uvodni tekst */
.intro-section {
  background-color: #ffffff;
  padding: 20px;
  border-bottom: 1px solid #ddd;
}
.intro-text {
  text-align: center;
  font-size: 0.8rem;
  margin-bottom: 20px;
  color: #444;
}
.western-union {
  background-color: #FFD700;
  color: black;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: bold;
  display: inline-block;
  font-family: Arial, sans-serif;
  letter-spacing: 1px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}

.western-union:hover {
  transform: scale(1.05);
}
.western-union img {
  width: 16px; /* ili 50% ako koristiš relativno */
  height: auto;
  vertical-align: middle;
  margin-right: 4px;
}
.grafic-sub {
  font-size: clamp(1rem, 2vw, 1.6rem);
}
.nav-btn {
  padding: 10px 20px;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  background-color: #0077cc;
  border-radius: 6px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap; /* sprečava da se dugme lomi u dva reda */
  flex-shrink: 0; /* sprečava da se dugme smanji kad nema mesta */
}

.nav-btn:hover {
  background-color: #005fa3;
  transform: scale(1.05);
}

.nav-btn:active {
  transform: scale(0.95);
}
nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* možeš staviti "nowrap" ako želiš da se nikad ne lomi */
  gap: 10px;
  padding: 10px;
}
.nav-btn:hover {
  background-color: #005fa3;
  transform: scale(1.05);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.chart-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  overflow-x: auto; /* Dodaj ovde */
}
.reset-btn {
  background: #ff4d4d;
  color: white;
  border: none;
  font-weight: bold;
  border-radius: 4px;
  padding: 10px 16px;
  transition: background 0.3s, transform 0.2s;
}

.reset-btn:hover {
  background: #cc0000;
  transform: scale(1.02);
}
form[action="logout.php"] {
  margin-bottom: 10px;
}

form .reset-btn {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}



/* Mobilna optimizacija */
@media screen and (max-width: 768px) {
  body {
    font-size: 0.95rem;
    padding: 10px;
  }

  .container {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .logo-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .logo-img {
    width: 80px;
    margin-bottom: 10px;
  }

  .logo-text {
    font-size: 20px;
    margin-left: 0;
    color: white;
  }

  #callout {
    text-align: center;
    margin-left: 0;
    font-size: 14px;
  }

  nav {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
  }

  nav a {
    padding: 8px 10px;
    font-size: 0.95rem;
  }

  h1, h2 {
    font-size: 1.4rem;
    text-align: center;
  }

  table thead {
    display: none;
  }

  table,
  table tbody,
  table tr,
  table td {
    display: block;
    width: 100%;
  }

  table tr {
    margin-bottom: 15px;
    border: 1px solid #ccc;
    padding: 12px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }

  table td {
    text-align: right;
    padding: 10px 12px;
    position: relative;
    font-size: 0.95rem;
  }

  table td::before {
    content: attr(data-label);
    position: absolute;
    left: 12px;
    font-weight: bold;
    text-align: left;
    color: #555;
  }

  button {
    width: 100%;
    font-size: 1rem;
    padding: 12px;
    margin-top: 10px;
  }

  footer {
    font-size: 0.85rem;
    padding: 15px 10px;
    text-align: center;
  }

  .suggestions {
    padding: 10px;
    font-size: 0.95rem;
  }

  .suggestions h2 {
    font-size: 1rem;
    margin-bottom: 10px;
    text-align: center;
  }

  .map-wrapper iframe {
    height: 250px;
  }

  form h3 {
    font-size: 1rem;
    margin-top: 15px;
  }

  input[type="text"],
  input[type="password"] {
    font-size: 0.95rem;
  }

  .location-list li {
    padding: 12px;
    font-size: 0.95rem;
  }

  .contact h1 {
    font-size: 1.4rem;
    text-align: center;
  }

  .contact ul {
    padding-left: 0;
  }

  .contact li {
    margin-bottom: 20px;
  }

  .chart-wrapper {
    padding: 10px;
  }

 .chart-wrapper canvas {
   aspect-ratio: 1 / 1; /* širina duplo veća od visine */
   width: 100% !important;
   max-width: 100%;
   display: block;
   margin: 20px auto;
   max-height: 400px;
  }

  .intro-text {
    font-size: 0.95rem;
    padding: 0 10px;
  }

}
    

