/* mob6.css - Optimized CSS */
* {
  margin: 0; 
  padding: 0; 
  box-sizing: border-box;
}
body {
  font-family: sans-serif;
  background-color: #eeefff;
  color: #2c3e50;
  padding: 1rem;
}
h1 {
  text-align: center;
  margin-bottom: 1.5rem;
}
.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.3rem;
}
.form-group input, 
.form-group textarea, 
.form-group select {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #1a73e8;
  background-color: #eaf1fb;
}
.submit-button {
  width: 100%;
  padding: 0.8rem;
  background-color: green;
  color: white;
  border: none;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
}
.submit-button:hover {
  background-color: darkgreen;
}
.note {
  font-style: italic;
  font-size: 0.85rem;
  margin-top: 1rem;
  color: #555;
}
.form-container.success {
  border: 2px solid green;
  background-color: #e9fbe9;
  box-shadow: 0 0 10px rgba(0, 128, 0, 0.3);
  transition: all 0.5s ease;
}
.btn-komp {
  display: inline-block;
  margin: 0.5rem 0;
  padding: 0.75rem;
  font-size: 1rem;
  text-align: left;
  background-color: #cccccc;
  color: #000;
  border: none;
  border-radius: 5px;
}
.btn-komp:hover {
  background-color: #bbbbbb;
}
.btn-komp1 {
  display: inline-block;
  margin: 0.5rem 0;
  padding: 0.75rem;
  font-size: 0.75rem;
  text-align: left;
  background-color: #eeeeee;
  color: #000;
  border: none;
  border-radius: 5px;
}
.btn-komp1:hover {
  background-color: #bbbbbb;
}
.input-group {
  display: flex;
  align-items: left;
  text-align: left;
  width: 100%;
  max-width: 50%;
  gap: 0.5rem;
  margin: 1rem 0;
}
.input-group input[type="text"] {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}
.input-group .submit-button {
  flex: 1;
  padding: 0.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}
.input-group .gray-button {
  background-color: #ccc;
  color: #333;
}
.input-group .gray-button:hover {
  background-color: #bbb;
}
.alert-delete, 
.alert-success, 
.alert-porukes8, 
.alert-porukes, 
.alert-info, 
.alert-duplo {
  padding: 15px;
  margin: 20px 0;
  border-radius: 5px;
  font-weight: bold;
}
.alert-delete {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
.alert-success, 
.alert-porukes8 {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.alert-porukes, 
.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
  font-family: 'Segoe UI', sans-serif;
}
.alert-porukes {
  border: 5px solid #bee5eb;
  border-radius: 15px;
  width: 500px;
  font-weight: normal;
}
.alert-duplo {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}
hr {
  border: none;
  height: 1px;
  background-color: #ccc;
  margin: 10px 0;
  opacity: 0.3;
}
.top-nav {
  display: flex;
  justify-content: space-between;
  background-color: #f0f0f0;
  padding: 1px;
  font-size: 1.1em;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.top-nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}
.top-nav a:hover {
  color: #007bff;
}
.container, 
.container_evenly, 
.container_end, 
.container_start {
  display: flex;
  align-items: baseline;
}
.container {
  justify-content: space-between;
}
.container_evenly {
  justify-content: space-evenly;
}
.container_end {
  justify-content: flex-end;
}
.container_start {
  justify-content: flex-start;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  margin: 5px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  color: white;
  transition: background 0.3s ease;
}
.btn-green {
  background-color: #28a745;
}
.btn-green:hover {
  background-color: #218838;
}
.btn-blue {
  background-color: #007bff;
}
.btn-blue:hover {
  background-color: #0069d9;
}
.btn-red {
  background-color: #dc3545;
}
.btn-red:hover {
  background-color: #c82333;
}
select {
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #ccc;
  background: linear-gradient(to bottom, #f9f9f9, #e0e0e0);
  font-size: 16px;
}
.input-clearable {
  position: relative;
  width: 100%;
  margin-top: 1rem;
}
.input-clearable label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}
.input-clearable input {
  width: 100%;
  padding: 0.5rem 2.2rem 0.5rem 0.5rem;
  font-size: 1rem;
  box-sizing: border-box;
}
.clear-btn {
  position: absolute;
  top: 50%;
  right: 0.7rem;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  font-size: 1.2rem;
  color: #888;
  cursor: pointer;
  display: none;
  padding: 0;
  line-height: 1;
}
.clear-btn:hover {
  color: red;
}
table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 20px;
}
th, td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
}
th {
  background-color: #eee;
}
img.thumbnail {
  max-width: 100px;
  max-height: 100px;
  display: block;
}
.nowrap {
  white-space: nowrap;
}
.dugmad-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  margin: 1rem 0;
}
.levo-dugme,
.desna-dugmad {
  display: flex;
  gap: 10px;
}
.dugme_zagl {
  font-size: 1.2rem;
  padding: 0.6rem 1rem;
  border-radius: 15px;
  border: 1px solid #ccc;
  max-width: 100px;
  background-color: #f2f2f2;
  cursor: pointer;
}
.dugme_zagl:hover {
  background-color: #e0e0e0;
}
.labela {
  font-weight: bold;
  font-size: 1rem;
  display: block;
  margin-bottom: 0.3rem;
}
#godina_skolska {
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  max-width: 200px;
  width: 100%;
  border-radius: 8px;
  border: 1px solid #ccc;
}
.unos-kataloski {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 5px;
}
.unos-kataloski input[type="text"] {
  font-size: 1.2rem;
  padding: 0.5rem;
  width: 12ch;
  border-radius: 8px;
  border: 1px solid #ccc;
  flex-shrink: 0;
}
.dugme-informacija {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.5rem;
}
.dugme-pogledaj {
  font-size: 1.1rem;
  white-space: nowrap;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  background-color: #e8e8e8;
  cursor: pointer;
}
.dugme-pogledaj:hover {
  background-color: #dcdcdc;
}
.styled-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
  margin-top: 10px;
}
.styled-table th, .styled-table td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
}
.styled-table caption {
  color: #000000;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 6px;
  border: 0px solid #aac;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
  text-align: center;
}
.thumbnail {
  max-width: 80px;
  max-height: 80px;
  margin-top: 5px;
}
.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 10px;
}
.menu-item-header .left,
.menu-item-header .center,
.menu-item-header .right {
  flex: 1;
  text-align: center;
}
.menu-item-header .left {
  text-align: left;
}
.menu-item-header .right {
  text-align: right;
}
.info-icon {
  cursor: pointer;
  color: blue;
  font-size: 1.1rem;
  margin-right: 10px;
}
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-box {
  background: white;
  padding: 10px;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.modal-box h3 {
  margin-top: 0;
}
.modal-box button {
  margin-top: 10px;
  padding: 4px 8px;
  background: #007bff;
  color: black;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.modal-box button:hover {
  background: #0056b3;
}
.container0 {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.pod_naslov {
  color: #1ABC9C;
  font-weight: bold;
  font-size: 1.2rem;
  text-align: center;
  display: block;
  margin-top: 0.5em;
}

 <style>
    table {
      border-collapse: collapse;
      width: 100%;
      margin-top: 20px;
    }
    th, td {
      border: 1px solid #ccc;
      padding: 8px;
      text-align: left;
    }
    th {
      background-color: #eee;
    }
    img.thumbnail {
      max-width: 100px;
      max-height: 100px;
      display: block;
    }
    .nowrap {
      white-space: nowrap;
    }
    @media (max-width: 600px) {
      table, thead, tbody, th, td, tr {
        display: block;
      }
      th {
        background: #f0f0f0;
      }
      td {
        border: none;
        border-bottom: 1px solid #ddd;
      }
    }
	/* --- CSS (crveni tooltip balon) --- */


.tooltip-error {
    position: absolute;
    background: #d60000;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 999;
    transform: translateY(-50%);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.tooltip-error::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 100%;
    margin-top: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: transparent #d60000 transparent transparent;
}
  </style>