/* ========== GLOBALNE POSTAVKE ========== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1f64a9;
    margin: 0;
    padding: 0;
  }
  
  /* ========== LOGIN FORMA ========== */
  .login-box {
    background: rgb(255, 255, 255);
    padding: 30px;
    max-width: 600px;
    margin: 40px auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }
  
  .login-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  }



  h2 {
    text-align: center;
    color: #333;
  }
  
  form input,
  form button {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
  }
  
  form button {
    background-color: #0077ff;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  form button:hover {
    background-color: #005bcc;
  }
  
  /* ========== TABELA ČLANOVA ========== */
  table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
  }
  
  th, td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #eee;
  }
  
  th {
    background-color: #0077ff;
    color: white;
  }
  
  tr:hover {
    background-color: #f2f2f2;
  }
  
  /* ========== STATUS ========== */
  .status-aktivan {
    color: green;
    font-weight: bold;
  }
  
  .status-istekla {
    color: red;
    font-weight: bold;
  }
  
  /* ========== SEARCH BAR ========== */
  #searchInput {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
  }
  
  /* ========== DASHBOARD KARTICE ========== */
  .dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .dashboard-card {
    background-color: white;
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    color: #333;
  }
  
  .dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.3);
    background-color: #dde1eba7;
  }
  
  .dashboard-card i {
    font-size: 38px;
    color: #0077ff;
    margin-bottom: 10px;
  }
  
  .dashboard-card h3 {
    margin: 10px 0 5px;
    color: #0077ff;
  }
  
  .dashboard-card p {
    font-size: 14px;
    color: #666;
  }
  

  .dashboard-title {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    color: #f2f4f7;
    margin-top: 30px;
    margin-bottom: 10px;
  }
  



  
  .logout-btn:hover {
    background-color: #e60000;
  }




  .logout-button {
    position: absolute;
    top: 20px;
    right: 30px;
    background-color: crimson;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    z-index: 1000;
    transition: all 0.3s ease;
   
  }
  
  @media (max-width: 768px) {
    .logout-button {
      position: relative;
      top: 0;
      right: 0;
      width: 100%;
      max-width: 300px;
      margin: 20px auto 0 auto;
      display: block;
      text-align: center;
      font-size: 16px;
      padding: 10px;
    }
  }
  

  .back-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 15px;
  }
  
  .back-btn:hover {
    background-color: #0056b3;
  }



  .content-box {
    max-width: 1000px; /* malo šire da ne guši tabelu */
    margin: 50px auto; /* dodali smo više gornjeg razmaka */
    padding: 30px 40px; /* malo više paddinga da diše sadržaj */
    background: #ffffff; /* čista bijela pozadina */
    border-radius: 16px; /* malo jače zaobljenje */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); /* mekši, moderniji shadow */
    transition: all 0.3s ease; /* glatki efekat pri hoveru ako dodamo kasnije */
  }
  


  .content-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  }

  @media (max-width: 768px) {
    .content-box {
      margin: 20px 15px; /* manji margin sa strana na mobitelu */
      padding: 20px; /* manje paddinga da ne bude preširoko */
    }
  }


  /* Responsive tabele za mobilne uređaje */
@media (max-width: 768px) {
    table, thead, tbody, th, td, tr {
      display: block;
    }
  
    thead {
      display: none; /* Sakrij originalne naslove kolona */
    }
  
    tr {
      background: #fff;
      margin-bottom: 15px;
      padding: 10px;
      border-radius: 10px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }
  
    td {
      position: relative;
      padding-left: 50%;
      text-align: right;
      font-size: 15px;
      border: none;
      border-bottom: 1px solid #eee;
    }
  
    td::before {
      content: attr(data-label);
      position: absolute;
      left: 10px;
      top: 10px;
      font-weight: bold;
      text-align: left;
      color: #333;
    }
  }
  

  .login-box {
    padding-bottom: 40px; /* ispod svega */
  }

  .content-box {
    padding: 25px;
    margin-bottom: 30px;
  }





  


  /* Stil za oba dugmeta */
.logout-button {
  background-color: #dc2626;
  color: white;
  padding: 10px 24px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

/* Hover efekat */
.logout-button:hover {
  background-color: #b91c1c;
}

/* Prikaži desktop dugme samo kad je širina veća od 768px */
.logout-desktop {
  display: none;
}
@media (min-width: 768px) {
  .logout-desktop {
    display: block;
  }
  .logout-mobile {
    display: none;
  }
}







.kartice-wrapper {
  max-width: 1400px; /* proširi da stane više u jednom redu */
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.kartice-wrapper .login-box {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  padding: 20px;
  text-align: center;
}







.stats-item {
  font-size: 20px;
  margin: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f9f9f9;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.stats-item:hover {
  background: #eef5ff;
}

.stats-item span {
  font-weight: bold;
  font-size: 22px;
}

.stats-item .label {
  font-weight: 500;
  color: #333;
}
















