* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: white;
  padding: 20px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px;
  border: 2px solid black;
  background-color: #f8f9fa;
}

.page-title {
  font-size: 24px;
  font-weight: bold;
}

.alerts-container {
  margin-bottom: 20px;
}

.alert {
  padding: 10px 15px;
  margin-bottom: 10px;
  border: 2px solid;
  border-radius: 4px;
}

.alert-warning {
  background-color: #fff3cd;
  border-color: #ffc107;
  color: #856404;
}

.alert-danger {
  background-color: #f8d7da;
  border-color: #dc3545;
  color: #721c24;
}

.schrank-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.schrank {
  border: 2px solid black;
  background-color: white;
}

.schrank-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 2px solid black;
  background-color: #f8f9fa;
}

.schrank-title {
  font-size: 18px;
  font-weight: bold;
}

.add-btn {
  padding: 8px 12px;
  border: 2px solid black;
  background-color: white;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
}

.add-btn:hover {
  background-color: #e9ecef;
}

.schrank-content {
  padding: 15px;
  min-height: 400px;
}

.item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  background-color: #f9f9f9;
  border-radius: 4px;
}

.item.expired {
  background-color: #f8d7da;
  border-color: #dc3545;
}

.item.expiring {
  background-color: #fff3cd;
  border-color: #ffc107;
}

.item-info {
  flex: 1;
}

.item-name {
  font-weight: bold;
  font-size: 16px;
}

.item-details {
  font-size: 14px;
  color: #666;
  margin-top: 4px;
}

.item-actions {
  display: flex;
  gap: 5px;
}

.action-btn {
  padding: 4px 8px;
  border: 1px solid #ccc;
  background-color: white;
  cursor: pointer;
  font-size: 12px;
  border-radius: 3px;
}

.action-btn:hover {
  background-color: #e9ecef;
}

.action-btn.edit {
  border-color: #007bff;
  color: #007bff;
}

.action-btn.use {
  border-color: #28a745;
  color: #28a745;
}

.action-btn.delete {
  border-color: #dc3545;
  color: #dc3545;
}

.empty-schrank {
  text-align: center;
  color: #999;
  font-style: italic;
  padding: 40px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 20px;
  border: 2px solid black;
  width: 90%;
  max-width: 500px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

.modal-title {
  font-size: 18px;
  font-weight: bold;
}

.close {
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #666;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.form-group textarea {
  resize: vertical;
  min-height: 60px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.btn {
  padding: 10px 20px;
  border: 2px solid black;
  background-color: white;
  cursor: pointer;
  font-weight: bold;
}

.btn:hover {
  background-color: #e9ecef;
}

.btn-primary {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

.btn-primary:hover {
  background-color: #0056b3;
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .schrank-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .page-header {
    flex-direction: column;
    gap: 10px;
  }

  .item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .item-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
