.modal {
  display: none; 
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6); 
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px 30px;
  border-radius: 12px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0px 5px 15px rgba(0,0,0,0.3);
  animation: fadeInDown 0.3s ease;
  text-align: left;
  font-family: Arial, sans-serif;
}

.close {
  color: #555;
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.close:hover {
  color: red;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#modal-message {
  margin: 20px 0 0;
  font-size: 16px;
  color: #333;
}

#confirmModal button {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

#confirm-yes {
  background: #28a745;
  color: white;
}

#confirm-no {
  background: #dc3545;
  color: white;
}

/* Edit Modal Styles */
#editModal .modal-content {
  max-width: 500px;
}

#editModal h2, #addModal h2 {
  margin-bottom: 20px;
  color: #333;
}

#editForm div, #addForm div {
  margin-bottom: 15px;
}

#editForm label, #addForm label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #555;
}

#editForm input[type="text"], #addForm input[type="text"],
#editForm input[type="password"], #addForm input[type="password"],
#editForm select, #addForm select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

#editForm button[type="submit"], #addForm button[type="submit"] {
  background: #28a745;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

#editForm button[type="submit"]:hover, #addForm button[type="submit"]:hover {
  background: #218838;
}

/* Notification Modal Styles */
.notification-content {
    text-align: center;
    padding: 30px 20px;
    position: relative;
}

#notificationMessage {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 4px;
}

/* Success notification */
.notification-success #notificationMessage {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

/* Error notification */
.notification-error #notificationMessage {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

#logoutModal button {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

#logoutYes {
  background-color: #28a745;
  color: white;
}

#logoutNo {
  background-color: #dc3545;
  color: white;
}