/* style.css */
body {
  font-family: 'Segoe UI', sans-serif;
  background: #f0f4f8;
  margin: 0;
  padding: 0;
}

.dashboard-header {
  background: linear-gradient(to right, #5f2eea, #a18cd1);
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
}

.dashboard-header h2 {
  font-size: 22px;
}

.header-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.header-actions input {
  padding: 10px;
  border-radius: 8px;
  border: none;
  width: 200px;
}

.clients-grid {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.client-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: 0.3s;
}

.client-card.inactive {
  opacity: 0.6;
  background-color: #f3f4f6;
}

.client-card h4 {
  color: #5f2eea;
}

.client-card small {
  color: #666;
  font-size: 13px;
}

.client-card button {
  background: #ef4444;
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  margin-top: 5px;
  border: none;
  cursor: pointer;
}

.client-card button:hover {
  background: #dc2626;
}

.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  padding: 25px;
  width: 600px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.5s ease-in-out;
}

.modal-content input, .modal-content select {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 15px;
}

.summary-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  align-items: center;
  background: #f9fafb;
  border-bottom: 1px solid #ddd;
}

.summary-box {
  background: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.filter-group {
  display: flex;
  align-items: center;
  /* justify-content: center; */
  flex-direction: row;
  padding: 6px;
  border: 1px solid black;
  border-radius: 10px;

}

.filter-group select {
  padding: 6px 10px;
  border-radius: 6px;
  width: 80px;
  border: 1px transparent;
}

.clear-btn {
  padding: 10px 16px;
  background: #ccc;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  font-weight: bold;
  transition: background 0.3s;
  cursor: pointer;
}

.clear-btn:hover {
  background: #bbb;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.product-section {
  margin-top: 10px;
  background: #f4f4f4;
  padding: 10px;
  border-radius: 6px;
}

.product-section input {
  width: 60%;
  padding: 6px;
  margin-top: 5px;
  margin-right: 5px;
}

.product-list {
  list-style: none;
  padding: 0;
  margin: 5px 0;
}

.product-list li {
  background: #fff;
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-list li button {
  background: red;
  color: #fff;
  border: none;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
}
