body {
  background: linear-gradient(135deg, #f4f4f4 0%, #e9ecef 100%);
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 20px;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
h1 {
  text-align: center;
  color: #667eea;
  margin-bottom: 30px;
}
p {
  text-align: center;
  margin-bottom: 20px;
  color: #666;
  font-size: 16px;
}
form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}
input, select, button, textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
}
button {
  background: #667eea;
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}
button:hover {
  background: #5a67d8;
}
.stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 30px;
}
.stats div {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  min-width: 150px;
}
#categoryChart {
}
#stockChart {
}
.chart-buttons {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-bottom: 20px;
}
.chart-sections {
  display: flex;
  gap: 100px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.chart-section {
  text-align: center;
}
.management-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.inventory-table {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}
th {
  background: #f8f9fa;
  font-weight: bold;
}
.low-stock {
  background: #ffe6e6;
}
.edit-btn {
  background: #ffa500;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  margin-right: 5px;
}
.edit-btn:hover {
  background: #e69500;
}
.delete-btn {
  background: #e53e3e;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
}
.delete-btn:hover {
  background: #c53030;
}
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
}
.modal-content {
  position: fixed;
  top: 10%;
  left: 10%;
  right: 10%;
  background-color: #fefefe;
  padding: 20px;
  border: 1px solid #888;
  border-radius: 8px;
  overflow-y: auto;
  max-height: 80%;
}
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
.close:hover {
  color: #aaa;
}
.message-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
}
.message-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 400px;
  text-align: center;
}
.message-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
.message-close:hover {
  color: black;
}
.back-link {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: #667eea;
  text-decoration: none;
}
.back-link:hover {
  text-decoration: underline;
}
@media (max-width: 768px) {
  .container {
    padding: 20px;
  }
  form {
    grid-template-columns: 1fr;
  }
  .stats {
    flex-direction: column;
  }
  table {
    font-size: 14px;
  }
}