/* =========================================
   RESET & BASE
========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Segoe UI, sans-serif;
  background-color: #eeefff;
  color: #2c3e50;
  padding: 1rem;
}

h1, h3 {
  text-align: center;
}

/* =========================================
   ALERTS
========================================= */
.alert-porukes,
.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
  padding: 15px;
  border-radius: 6px;
  margin: 20px 0;
}

.alert-delete {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 15px;
  border-radius: 6px;
  margin: 20px 0;
  font-weight: bold;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  padding: 15px;
  border-radius: 6px;
  margin: 20px 0;
}

.alert-duplo {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
  padding: 15px;
  border-radius: 6px;
  margin: 20px 0;
}

/* =========================================
   FORMS & INPUTS
========================================= */
.form-container {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.form-container.success {
  border: 1px solid #c3e6cb;
  background-color: #e9fbe9;
}

.form-group {
  margin-bottom: 1rem;
}

.labela,
.form-group label {
  font-weight: bold;
  margin-bottom: 0.3rem;
  display: block;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #1a73e8;
  background-color: #eaf1fb;
  outline: none;
}

.input-clearable {
  position: relative;
  margin-top: 1rem;
}

.input-clearable input {
  padding-right: 2.2rem;
}

.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;
}

.clear-btn:hover {
  color: red;
}

/* =========================================
   BUTTONS
========================================= */
.btn-komp {
  background-color: #d3e3fc;
  color: #003366;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #aac;
  cursor: pointer;
  margin-top: 10px;
}


.btn-komp:hover {
  background-color: #c6d9f7;
}

.btn-submit {
  background-color: green;
  color: #003366;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #aac;
  cursor: pointer;
  margin-top: 10px;
}


.btn-submit:hover {
  background-color: #ccccc;
}
.btn-komp1 {
  background-color: #e7e7e7;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 0.9rem;
  border: 1px solid #bbb;
}

.btn-red {
  background-color: #f8d7da;
  color: red;
  border-radius: 5px;
  border: none;
  padding: 6px;
}

.btn-komp5 {
  background: none;
  border: none;
  color: #000;
  cursor: pointer;
}

.btn-komp5:hover {
  color: #0056b3;
}

/* =========================================
   TABLES
========================================= */
table, .styled-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.styled-table th,
.styled-table td,
table th,
table td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
}

.styled-table th {
  background-color: #f5f5f5;
}

.styled-table tr:nth-child(odd) {
  background-color: #ffffff;
}

.styled-table tr:nth-child(even) {
  background-color: #f2f2f2;
}

.thumbnail {
  max-width: 80px;
  max-height: 80px;
}

/* =========================================
   MODAL
========================================= */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: 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);
}

/* =========================================
   LAYOUT HELPERS
========================================= */
.container0 {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.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;
  background-color: #f2f2f2;
  cursor: pointer;
}

.dugme_zagl:hover {
  background-color: #e0e0e0;
}

/* =========================================
   MOBILE 
========================================= */
@media (max-width: 600px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }
  
  td {
    border: none;
    border-bottom: 1px solid #ddd;
  }

  h3 {
    font-size: 1rem;
  }
}
