
.admin-panel {
  max-width: 900px;
  margin: 40px auto;
  padding: 30px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.admin-panel h2 {
  text-align: center;
  color: var(--primary-color, #008080);
  margin-bottom: 30px;
  font-size: 2rem;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.admin-form label {
  font-weight: bold;
  color: var(--font-color, #333);
  margin-bottom: 5px;
}

.admin-form input,
.admin-form textarea {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.admin-form input:focus,
.admin-form textarea:focus {
  outline: none;
  border-color: var(--primary-color, #008080);
  box-shadow: 0 0 6px rgba(0, 128, 128, 0.3);
}

.admin-form textarea {
  min-height: 80px;
  resize: vertical;
}

.admin-form .primary-button {
  background: var(--primary-color, #008080);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  font-weight: bold;
}

.admin-form .primary-button:hover {
  background: var(--secondary-color, #006666);
  transform: translateY(-2px);
}

.admin-panel h3 {
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--primary-color, #008080);
  font-size: 1.6rem;
}

#admin-product-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#admin-product-list li {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#admin-product-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#admin-product-list img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--primary-color, #008080);
}

#admin-product-list div {
  flex: 1;
}

#admin-product-list h4 {
  margin: 0;
  color: var(--primary-color, #008080);
  font-size: 1.2rem;
}

#admin-product-list p {
  margin: 4px 0;
  color: var(--font-color, #333);
}

#admin-product-list button {
  background: var(--primary-color, #008080);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
}

#admin-product-list button:hover {
  background: var(--secondary-color, #006666);
  transform: scale(1.1);
}

#admin-product-list button:active {
  transform: scale(0.95);
}

#admin-product-list .delete-btn {
  background: #e74c3c;
}

#admin-product-list .delete-btn:hover {
  background: #c0392b;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  animation: fadeIn 0.3s ease;
}

.modal-content h2,
.modal-content h3 {
  margin-bottom: 15px;
  color: var(--primary-color, #008080);
}

.modal-content label {
  display: block;
  text-align: left;
  margin-top: 10px;
  font-weight: bold;
}

.modal-content input {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.modal-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.save-btn,
.delete-btn,
.cancel-btn {
  padding: 10px 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.save-btn {
  background-color: #4CAF50;
  color: white;
}

.save-btn:hover {
  background-color: #43a047;
}

.delete-btn {
  background-color: #e53935;
  color: white;
}

.delete-btn:hover {
  background-color: #c62828;
}

.cancel-btn {
  background-color: #ccc;
  color: black;
}

.cancel-btn:hover {
  background-color: #bbb;
}

.add-product-btn {
  position: fixed;
  bottom: 80px;
  right: 30px;
  background-color: #4CAF50;
  color: #fff;
  border: none;
  padding: 18px 22px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
  z-index: 10000;
}

.add-product-btn:hover {
  transform: scale(1.1);
  background-color: #43a047;
}

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

@media (max-width: 768px) {
  .admin-panel {
    padding: 20px;
  }

  #admin-product-list li {
    flex-direction: column;
    text-align: center;
  }

  #admin-product-list img {
    width: 100%;
    max-width: 200px;
  }

  .add-product-btn {
    bottom: 100px;
    right: 20px;
    padding: 16px 20px;
    font-size: 20px;
  }

}