.dashboard-container {
  display: flex;
  height: 100vh;
}

.admin-main {
  flex: 1;
  background-color: #f4f6f8;
  padding: 20px;
  overflow-y: auto;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.add-kategorie-btn {
  background-color: #1f2a40;
  color: white;
  font-size: 16px;
  font-weight: bold;
  width: 200px;
  height: 50px;
  padding: 10px;
  border: 1px solid #1f2a40;
  border-radius: 10px;
  cursor: pointer;
}

.add-kategorie-btn:hover{
    box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24),0 17px 50px 0 rgba(0,0,0,0.19);
}

.admin-section {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.dashboard-box-1 {
  background: rgba(163, 163, 163, 0.356);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  flex: 1 1 320px;
  max-width: 100%;
  text-align: center;
  margin-bottom: 20px;
}

.admin-section form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 400px;
}

.form-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.admin-section input[type="text"],
.admin-section input[type="file"] {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.admin-section button {
  background-color: #8a1238;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

.admin-section button:hover {
  transform: scale(1.03);
}

.admin-kategorien {
  text-align: center;
}

.admin-kategorien h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.kategorie-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.categorie-form{
    gap: 40px;
}

.kategorie-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 200px;
}

.kategorie-item {
    position: relative;
}

.kategorie-button {
    width: 200px;
    height: 200px;
    border: none;
    color: white;
    font-size: 28px;
    font-weight: bold;
    background-size: cover;
    background-position: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    cursor: pointer;
    border-radius: 20px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.kategorie-button:hover {
    opacity: 0.8;
    transform: scale(1.05); 
}

.delete-button {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    color: rgb(255, 0, 0);
    border: none;
    cursor: pointer;
    font-size: 25px;
    font-weight: bold;
    padding: 5px;
}

.delete-button:hover {
    color: rgb(0, 0, 0); 
}

.popup {
  display: none;
  position: fixed;
  justify-content: center;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 0);
  width: 650px;
  max-height: 630px;
  background: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 20px;
  transition: transform 0.3s ease-out;
  z-index: 1000;
  overflow: auto;
}

.popup.popup-visible {
  display: flex;  
  transform: translate(-50%, -30%);
  top: 30%;
}

.popup-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.popup-headline {
  font-size: 26px;
  margin-left: 10px;
}

.popup form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.popup input[type="text"],
.popup input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  text-align: center;
}

.back-btn {
  height: 40px;
  cursor: pointer;
  transition: transform 0.3s ease-out;
}

.back-btn:hover {
  transform: scale(1.1);
}

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

.button-popup-container{
    display: flex;
    justify-content: center;
}

.center-btn {
  background-color: #1f2a40;
  color: white;
  font-size: 16px;
  font-weight: bold;
  width: 200px;
  height: 50px;
  padding: 10px;
  border: 1px solid #1f2a40;
  border-radius: 10px;
  cursor: pointer;
}

.center-btn:hover{
    box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24),0 17px 50px 0 rgba(0,0,0,0.19);
}