/* ===========================
   Edit Modal Styling (Recurring Design Clone)
=========================== */

:root {
  --bg-dark: #1a1b2f;
  --bg-card: #2c2a4d;
  --accent: #fbbf24;
  --text-light: #f3f4f6;
  --border-light: #444267;
}

/* Modal Overlay */
.edit-modal {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  overflow-y: auto;
}

.edit-modal.show {
  display: flex;
  animation: editModalFadeIn 0.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes editModalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Modal Content */
.edit-modal-content {
  background-color: var(--bg-card);
  border-radius: 1rem;
  padding: 35px 25px;
  width: 90%;
  max-width: 700px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  color: #fff;
}

.edit-modal-glow {
  content: "";
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle at center, rgba(251, 191, 36, 0.08), transparent 70%);
  border-radius: 1rem;
  z-index: 0;
  animation: glowRotate 8s linear infinite;
}

@keyframes glowRotate {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(45deg); }
  100% { transform: rotate(0deg); }
}

.edit-modal-content * {
  position: relative;
  z-index: 2;
}

/* Close Button */
.edit-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--border-light);
  color: var(--text-light);
  font-size: 1.3rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1020;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.edit-close-btn:hover {
  background-color: var(--accent);
  color: var(--bg-dark);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
}

/* Form Styling */
.edit-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.edit-input-group {
  display: flex;
  align-items: center;
  background-color: var(--bg-dark);
  border: 2px solid var(--border-light);
  border-radius: 12px;
  padding-left: 45px;
  position: relative;
}

.edit-input-group:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

.edit-input-icon {
  position: absolute;
  left: 12px;
  font-size: 1.3rem;
  color: var(--accent);
}

.edit-input-group input,
.edit-input-group select {
  flex: 1;
  height: 50px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1rem;
  outline: none;
  padding-right: 90px;
}

/* Buttons */
.edit-btn-primary,
.edit-btn-secondary {
  width: 100%;
  height: 56px;
  border-radius: 50px;
  border: none;
  font-size: 1.15rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.edit-btn-primary {
  color: var(--bg-dark);
  background-color: var(--accent);
}

.edit-btn-primary:hover {
  background-color: #ffc107;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(251, 191, 36, 0.5);
}

.edit-btn-secondary {
  color: var(--text-light);
  background-color: var(--border-light);
}

.edit-btn-secondary:hover {
  background-color: #55537a;
  transform: translateY(-2px);
}

/* ===========================
   Placeholder Styling
=========================== */
.edit-input-group input::placeholder,
.edit-input-group select::placeholder {
  color: rgba(251, 191, 36, 0.7);  /* gold-transparent */
  font-weight: 500;
  letter-spacing: 0.5px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.edit-input-group:focus-within input::placeholder,
.edit-input-group:focus-within select::placeholder {
  color: rgba(251, 191, 36, 0.9);
  text-shadow: 0 0 2px rgba(251,191,36,0.5);
}

/* ===========================
   Select Options Styling
=========================== */
.edit-input-group select {
  color: #fff;
  background-color: var(--bg-dark);
}

.edit-input-group select option {
  background-color: var(--bg-dark); /* gleiche dunkle Karte */
  color: #fff;                       /* weiße Schrift */
  padding: 8px 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Optional: Hover/Focus Effekt für Optionen */
.edit-input-group select option:hover,
.edit-input-group select option:focus {
  background-color: rgba(251,191,36,0.15); /* leichter Glow beim Hovern */
  color: var(--accent);
}


/* Responsive */
@media (max-width: 600px) {
  .edit-modal-content {
    padding: 1.5rem 1rem;
  }
  .edit-close-btn {
    font-size: 1.2rem;
    top: 10px;
    right: 15px;
  }
}
