/* Stili i përgjithshëm */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #6d6d6d; /* gri e lehtë */
  color: #2c2c2c;
  margin: 0;
  padding: 20px;
}

/* Titujt */
h1, h2, h3 {
  color: #fd8f00; /* portokalli */
  text-align: center;
  font-weight: bold;
}

/* Header & Footer */
header {
  background: #575757;
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer {
  background: #9b9b9b;
  color: white;
  padding: 10px;
  text-align: center;
  margin-top: 20px;
}

/* Forma */
form {
  background: #9b9b9b; /* e bardhë */
  border: 2px solid #1a3d7c; /* blu e errët */
  border-radius: 15px;
  padding: 20px;
  max-width: 500px;
  margin: 20px auto;
  box-shadow: 3px 3px 15px rgba(0,0,0,0.1);
}

label {
  font-weight: bold;
  color: #1a3d7c;
}

input, select, button {
  width: 95%;
  padding: 10px;
  margin: 8px 0;
  border-radius: 10px;
  border: 1px solid #696969;
  font-size: 14px;
}
.document-box {
  margin-bottom: 20px;
  padding: 14px 16px;
  background: #9b9b9b; /* blu shumë e lehtë */
  border-radius: 10px;
  border: 1px solid #d1d5db;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.document-box label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1a1a1a;
}

.document-box input,
.document-box select {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background-color: #fff;
  font-size: 14px;
  transition: border-color 0.2s ease-in-out;
}

.document-box input:focus,
.document-box select:focus {
  border-color: #3b82f6; /* blu e qetë kur fokusohet */
  outline: none;
}

/* Butoni */
.butonat {
  margin-top: 10px;
}

.butonat button {
  margin-right: 10px;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.butonat button:first-child {
  background: #1a73e8; /* blu */
  color: white;
}

.butonat button:last-child {
  background: #d93025; /* kuqe */
  color: white;
}

.butonat button:hover {
  opacity: 0.8;
}

button {
  background: #fd8f00;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #e67e00;
}

/* Search bar */
#searchBar {
  width: 95%;
  padding: 10px;
  margin: 15px auto;
  border-radius: 5px;
  border: 1px solid #ccc;
  display: block;
}

/* Karta e mjeteve */
.mjet {
  background: #999999;
  border: 2px solid #838383;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 2px 2px 12px rgba(0,0,0,0.15);
}

.mjet h2 {
  color: #1a3d7c;
  margin-bottom: 10px;
}

.mjet ul {
  list-style: none;
  padding: 0;
}

.mjet li {
  margin: 6px 0;
  font-size: 15px;
}

/* Statuset */
.gri { color: gray; font-weight: bold; }
.kuqe { color: red; font-weight: bold; }
.portokalli { color: #fd8f00; font-weight: bold; }
.jeshile { color: green; font-weight: bold; }

.butonat {
  margin-top: 10px;
}
.butonat button {
  margin-right: 10px;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}
.butonat button:first-child {
  background: #1a73e8;
  color: white;
}
.butonat button:last-child {
  background: #d93025;
  color: white;
}
.butonat button:hover {
  opacity: 0.8;
}
.modal {
  display: flex;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  max-height: 90vh;
  overflow-y: auto;
  width: 90%;
  max-width: 600px;
}
.modal-content label {
  display: block;
  font-weight: bold;
  margin-top: 10px;
}
.modal-content input, .modal-content select {
  width: 95%;
  padding: 6px;
  margin-bottom: 10px;
  border-radius: 6px;
  border: 1px solid #999;
}
.modal-content button {
  padding: 10px 20px;
  margin-top: 10px;
  cursor: pointer;
}
.modal-content button[type="submit"] {
  background: #fd8f00;
  color: white;
  border: none;
  font-weight: bold;
}
.modal-content button#closeModalBtn {
  background: #999;
  color: white;
  border: none;
  font-weight: bold;
  margin-left: 10px;
}
.alerts-box {
  background: #fff; /* e bardhë për kontrast */
  border: 2px solid #ff4d4d;
  border-radius: 10px;
  padding: 15px;
  margin: 15px auto;
  max-width: 800px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.alert-item.expired {
  color: #fff;
  background: #cc0000;
}

.alert-item.soon {
  color: #000;
  background: #ffcc00;
}
/* =====================
   RESPONSIVE
   ===================== */

/* 📱 Telefona */
@media (max-width: 600px) {
  body {
    padding: 10px;
  }

  header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  form {
    width: 100%;
    padding: 15px;
  }

  .document-box {
    flex-direction: column;
    align-items: stretch;
  }

  input, select, button {
    width: 100%;
    font-size: 15px;
  }

  .mjet {
    padding: 12px;
  }

  .butonat {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
}

/* 📱 Tablet */
@media (max-width: 900px) {
  main {
    padding: 10px;
  }

  form {
    max-width: 100%;
  }

  .alerts-box {
    width: 100%;
  }
}
