/* cart.css */
body {
  font-family: Arial, sans-serif;
  background: #f7f7f7;
  margin: 0;
  padding: 0;
}

/* Header */
header {
  background: #333;
  color: white;
  padding: 15px;
  text-align: center;
}

h1 {
  margin: 0;
}

/* Container */
.container {
  max-width: 800px;
  margin: 20px auto;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 2px 8px rgba(0,0,0,0.1);
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th, td {
  padding: 12px;
  border: 1px solid #ddd;
  text-align: center;
}

th {
  background: #f0f0f0;
}

td:nth-child(2) {
  text-align: left;
}

tr:hover {
  background: #f9f9f9;
}

/* Buttons */
button {
  background: #ff4d4d;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #cc0000;
}

/* Actions Section */
.actions {
  text-align: center;
  margin-top: 20px;
}

.actions button {
  margin: 5px;
}

.actions button:nth-child(2) {
  background: #007bff;
}
.actions button:nth-child(2):hover {
  background: #0056b3;
}
.actions button:last-child {
  background: #28a745;
}
.actions button:last-child:hover {
  background: #218838;
}

/* Popup Form */
.popup {
  display: none;
  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: 999;
}

.popup-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 350px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.popup-content h2 {
  text-align: center;
  margin-bottom: 15px;
}

.popup-content input,
.popup-content select,
.popup-content textarea {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  transition: border-color 0.3s, box-shadow 0.3s;
  font-family: Arial, sans-serif;
}

.popup-content input:focus,
.popup-content select:focus,
.popup-content textarea:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0,123,255,0.5);
  outline: none;
}

.popup-content textarea {
  resize: vertical; /* biar alamat bisa diperbesar ke bawah */
  min-height: 70px;
}

.popup-content button {
  width: 100%;
  margin-top: 10px;
}

.popup-content .close-btn {
  background: #dc3545;
}
.popup-content .close-btn:hover {
  background: #a71d2a;
}
