/* Osnovni stil */
body {
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: #f5f5f5;
  margin: 0;
  padding: 0;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Glavni kontejner */
.container {
  width: 90%;
  max-width: 700px;
  margin-top: 40px;
}

/* Naslovi */
h2 {
  color: #333;
  margin-bottom: 15px;
  text-align: left;
}

/* Kartica (forma ili tabela) */
.card {
  background-color: #fff;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

/* Forma */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

label {
  font-weight: 600;
  margin-bottom: 3px;
}

input[type="text"],
input[type="number"],
select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
  border-color: #28a745;
  outline: none;
  box-shadow: 0 0 3px rgba(40,167,69,0.3);
}

/* Dugmad */
input[type="submit"],
a {
  display: inline-block;
  background-color: #28a745;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

input[type="submit"]:hover,
a:hover {
  background-color: #218838;
}

/* Tabela */
table {
  border-collapse: collapse;
  width: 100%;
  background-color: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

th, td {
  padding: 10px 12px;
  text-align: left;
}

th {
  background-color: #28a745;
  color: white;
}

tr:nth-child(even) {
  background-color: #f9f9f9;
}

td {
  border-bottom: 1px solid #ddd;
}

/* Status */
td:last-child {
  font-weight: bold;
}

td:last-child:contains("Redovni student") {
  color: #28a745;
}

td:last-child:contains("STARIJI STUDENT") {
  color: #dc3545;
}

/* Link ispod tabele */
a {
  margin-top: 10px;
}

/* Responsivnost */
@media (max-width: 600px) {
  .container {
    width: 95%;
    margin-top: 20px;
  }
  th, td {
    font-size: 14px;
    padding: 8px 10px;
  }
}
