.firme-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* fiksno 3 kartice */
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

.dashboard-card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 60px;
  text-align: center;
  border-top: 5px solid #056ad6;
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dashboard-card:hover {
  transform: translateY(-4px);
}

/* === NASLOV FIRME === */
.firma-naziv {
  color: #056ad6;
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 600;
}

/* === UPLOAD FORMA === */
.upload-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 12px 0;
}

.upload-form input[type="file"] {
  font-size: 12px;
  max-width: 70%;
}

.upload-form button {
  background-color: #056ad6;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

.upload-form button:hover {
  background-color: #034a9b;
}

/* === LISTA DOKUMENATA === */
.fajlovi-lista {
  list-style-type: none;
  padding: 0;
  margin-top: 10px;
}

.fajlovi-lista li {
  font-size: 13px;
  margin-bottom: 6px;
}

.download-link {
  margin-left: 5px;
  color: #056ad6;
  font-weight: bold;
  text-decoration: none;
}

.download-link:hover {
  text-decoration: underline;
}

.icon-delete {
  background: none;
  border: none;
  color: red;
  cursor: pointer;
  font-size: 16px;
  margin-left: 5px;
}

/* === AKCIJE === */
.card-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.btn {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 5px;
  font-weight: bold;
  border: none;
  cursor: pointer;
}

.btn.blue {
  background-color: #034a9b;
  color: white;
}

.btn.red {
  background-color: #e74c3c;
  color: white;
}

.nema-fajlova {
  font-style: italic;
  color: #777;
  margin-top: 10px;
}

/* === NASLOV STRANICE === */
.naslov {
  font-size: 24px;
  font-weight: 600;
  color: #056ad6;
  text-align: center;
  margin-bottom: 30px;
}

/* === PAGINACIJA === */
.pagination {
  text-align: center;
  margin-top: 30px;
    margin-bottom: 60px; /* 👈 ovo podiže paginaciju od footera */
}

.pagination a {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 4px;
  background-color: #056ad6;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

.pagination a.active {
  background-color: #034a9b;
}

.pagination a:hover {
  background-color: #034a9b;
}









.top-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.search-form {
  display: flex;
  gap: 10px;
}

.search-form input {
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  min-width: 240px;
}

.search-form button {
  padding: 6px 14px;
  background-color: #056ad6;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.search-form button:hover {
  background-color: #034a9b;
}

.btn-dashboard {
  padding: 6px 14px;
  background-color: #555;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
}

.btn-dashboard:hover {
  background-color: #333;
}








.top-controls-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 15px;
}

.search-form {
  display: flex;
  gap: 10px;
}

.search-form input {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 250px;
}

.search-form button {
  padding: 8px 16px;
  background-color: #056ad6;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}

.search-form button:hover {
  background-color: #034a9b;
}

.btn-dashboard {
  background-color: #333;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.btn-dashboard:hover {
  background-color: #222;
}







.dashboard-card .ikonica {
    font-size: 32px;
    color: #004aad;
    margin-bottom: 10px;
}

.dashboard-card .tekst {
    font-weight: 600;
    font-size: 14px;
}








.btn-dashboard-top-right {
  display: inline-block;
  background-color: #1e40af;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-left: auto;
  margin-right: 870px; /* Ovo kontroliše koliko udesno */
  display: block;
  width: fit-content;
}







/* === STIL ZA LINKOVE KARTICA === */
.firma-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all 0.3s ease;
}

.firma-link:hover {
  text-decoration: none;
}

/* === DODATNA HOVER ANIMACIJA ZA KARTICU === */
.dashboard-card {
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.dashboard-card:hover {
  background-color: #f5f5f5; /* blagi sivi hover */
  transform: translateY(-4px);
}

/* === IKONICA IZNAD NAZIVA FIRME === */
.firma-ikonica {
  font-size: 36px;
  color: #056ad6;
  margin-bottom: 10px;
}






/* ✅ Responsive prilagodba za manje ekrane */
@media (max-width: 768px) {
  .btn-dashboard-top-right {
    margin: 20px auto 10px 0px; /* ⬅️ pomjera lijevo i dolje */
    margin-bottom: 15px;
    text-align: center;
    display: block;
  }
}


@media (max-width: 992px) {
  .firme-dashboard-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 kartice na tabletima */
  }
}

@media (max-width: 600px) {
  .firme-dashboard-grid {
    grid-template-columns: 1fr; /* 1 kartica na mobilnim uređajima */
  }
}





@media (max-width: 768px) {
  .top-controls-container {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-dashboard {
    width: 57%;
    text-align: center;
    margin-bottom: 10px; /* ⬅️ ovo dodaje razmak ispod dugmeta */
  }

  .search-form {
    width: 100%;
  }
}