body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #f5f6fa;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.navbar {
  display: flex;
  justify-content: space-between;
  background-color: #000;
  padding: 1rem 2rem;
  align-items: center;
}

.nav-left a {
  margin-right: 20px;
  text-decoration: none;
  color: #fff;
  font-weight: bold;
}

.nav-right input {
  padding: 0.5rem;
  width: 200px;
  border-radius: 5px;
  border: none;
  background-color: #333;
  color: #fff;
}

main {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.controls {
  text-align: right;
  margin-bottom: 1rem;
}

.controls button {
  background-color: #1d3557;
  color: white;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.suppliers-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: auto;
}

.supplier-card {
  background-color: white;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  width: 300px;
  position: relative;
}

.supplier-card h3 {
  margin-top: 0;
}

.supplier-card p {
  margin: 0.3rem 0;
}

.supplier-card .order {
  background-color: black;
  color: white;
  width: 100%;
  padding: 0.6rem;
  border: none;
  border-radius: 5px;
  margin-top: 1rem;
  cursor: pointer;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fff;
  padding: 2rem;
  border-radius: 10px;
  width: 400px;
  position: relative;
}

.modal-content h3 {
  margin-top: 0;
}

.modal-content input {
  width: 100%;
  padding: 0.7rem;
  margin: 0.5rem 0;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

.form-actions button {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.form-actions button:first-child {
  background-color: #ccc;
}

.form-actions button:last-child {
  background-color: #2a9d8f;
  color: white;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #555;
}

.delete-circle {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: red;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-weight: bold;
  text-align: center;
  line-height: 24px;
  cursor: pointer;
  font-size: 16px;
  transition: 0.2s ease;
}

.delete-circle:hover {
  background-color: darkred;
}

/* Modal shared */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 20px;
  width: 350px;
  border-radius: 10px;
  position: relative;
}

.modal-content h2 {
  margin-top: 0;
}

.modal-content .close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 20px;
  cursor: pointer;
}

.modal-content input {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
}

.modal-buttons {
  display: flex;
  justify-content: space-between;
}

.modal-buttons button {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  background-color: #000;
  color: #fff;
}

.modal-buttons button:hover {
  opacity: 0.9;
}

/* Footer Styling */
.footer {
  background-color: #000;
  color: #fff;
  padding: 2rem 0;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 1.5rem;
}

.social-links a {
  color: white;
  font-size: 1.5rem;
  transition: transform 0.3s, color 0.3s;
}

.social-links a:hover {
  transform: scale(1.2);
  color: #ddd;
}

.footer-nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin-bottom: 1.5rem;
}

.footer-nav a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: #ddd;
  text-decoration: underline;
}

.copyright {
  font-size: 0.9rem;
  color: #aaa;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    padding: 1rem;
  }
  
  .nav-left {
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav-right input {
    margin-right: 0;
    width: 100%;
  }
  
  main {
    padding: 1rem;
  }
  
  .footer-nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .suppliers-container {
    justify-content: center;
  }
  
  .supplier-card {
    width: 100%;
  }
}