/* ===== Hero sekcija na početnoj stranici ===== */

.hero-section {
  font-size: 1.15em;
  line-height: 1.7;
  color: #4a4a4a;
  margin-bottom: 1.5em;
  padding: 1em 0;
}

/* ===== Kartice za cjeline na početnoj stranici ===== */

.cjelina-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1em;
  margin: 1em 0 1.5em 0;
}

.cjelina-card {
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 1.25em;
  background-color: #f8f9fa;
  transition: box-shadow 0.2s ease;
}

.cjelina-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cjelina-card h3 {
  margin-top: 0;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6c757d;
}

.cjelina-card p:last-child {
  margin-bottom: 0;
  font-size: 0.9em;
  color: #555;
}

/* ===== Statusne oznake za raspored ===== */

.badge-completed {
  background-color: #28a745;
  color: white;
  padding: 0.25em 0.6em;
  border-radius: 0.25rem;
  font-size: 0.85em;
  font-weight: 600;
}

.badge-upcoming {
  background-color: #6c757d;
  color: white;
  padding: 0.25em 0.6em;
  border-radius: 0.25rem;
  font-size: 0.85em;
  font-weight: 600;
}

.badge-current {
  background-color: #007bff;
  color: white;
  padding: 0.25em 0.6em;
  border-radius: 0.25rem;
  font-size: 0.85em;
  font-weight: 600;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* ===== Material linkovi na silabusu ===== */

.material-links {
  margin: 0.75em 0 1.5em 0;
  padding: 0.5em 0.75em;
  background-color: #f0f4f8;
  border-radius: 0.375rem;
  font-size: 0.9em;
  border-left: 3px solid #007bff;
}

.material-links a {
  font-weight: 500;
}

/* ===== Cjelina header stil ===== */

.cjelina-header {
  border-bottom: 2px solid #007bff;
  padding-bottom: 0.25em;
}

/* ===== Stilovi za stranice predavanja ===== */

.learning-objectives {
  border-left: 4px solid #007bff;
  padding-left: 1em;
  margin: 1.5em 0;
}

.key-takeaways {
  border-left: 4px solid #28a745;
  padding-left: 1em;
  margin: 1.5em 0;
}

.next-week-preview {
  border-left: 4px solid #ffc107;
  padding-left: 1em;
  margin: 1.5em 0;
}

/* ===== Gumbi za preuzimanje ===== */

.btn-primary {
  background-color: #007bff;
  color: white !important;
  padding: 0.4em 1em;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9em;
  border: 1px solid #007bff;
  display: inline-block;
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
  text-decoration: none;
}

.btn-outline-primary {
  background-color: transparent;
  color: #007bff !important;
  padding: 0.4em 1em;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9em;
  border: 1px solid #007bff;
  display: inline-block;
}

.btn-outline-primary:hover {
  background-color: #007bff;
  color: white !important;
  text-decoration: none;
}

.btn-sm {
  padding: 0.3em 0.8em;
  font-size: 0.85em;
}

/* ===== Općenite prilagodbe ===== */

.content {
  max-width: 960px;
}

/* Ljepše tablice */
table {
  width: 100%;
  margin: 1em 0;
}

table th {
  background-color: #f8f9fa;
  font-weight: 600;
}

table td, table th {
  padding: 0.5em 0.75em;
}

/* Navigacija */
.navbar {
  font-weight: 500;
}

/* Callout blokovi */
.callout {
  margin: 1.5em 0;
}

/* Obavijesti na početnoj stranici */
.announcement-box {
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 1em 1.5em;
  margin: 0.5em 0;
  background-color: #f8f9fa;
}

/* ===== Dark mode prilagodbe ===== */

[data-bs-theme="dark"] .hero-section {
  color: #b0b0b0;
}

[data-bs-theme="dark"] .cjelina-card {
  background-color: #2a2a3e;
  border-color: #3d3d5c;
}

[data-bs-theme="dark"] .cjelina-card h3 {
  color: #9a9ab0;
}

[data-bs-theme="dark"] .cjelina-card p:last-child {
  color: #b0b0b0;
}

[data-bs-theme="dark"] .material-links {
  background-color: #1e1e2e;
  border-left-color: #5c9aff;
}

[data-bs-theme="dark"] .announcement-box {
  background-color: #2a2a3e;
  border-color: #3d3d5c;
}

[data-bs-theme="dark"] table th {
  background-color: #2a2a3e;
}

[data-bs-theme="dark"] .btn-primary {
  background-color: #5c9aff;
  border-color: #5c9aff;
}

[data-bs-theme="dark"] .btn-primary:hover {
  background-color: #3d7bff;
  border-color: #3d7bff;
}

[data-bs-theme="dark"] .btn-outline-primary {
  color: #5c9aff !important;
  border-color: #5c9aff;
}

[data-bs-theme="dark"] .btn-outline-primary:hover {
  background-color: #5c9aff;
  color: white !important;
}
