/* css/components/modal.css */

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 60px;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-overlay.show {
  display: flex;
}

.modal-content {
  background-color: var(--color-box);
	  padding: 2.5rem 2rem 2rem;
	  border-radius: var(--border-radius);
		max-width: 400px;
		width: 90%;
		color: var(--color-text);
		  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
		  position: relative;
		}
		
		.modal-content h2 {
		  margin-bottom: 1.5rem;
		  font-size: var(--font-xl);
			}
			
			.modal-content input {
			  width: 100%;
			  margin-bottom: 1rem;
			  padding: 0.75rem;
			  background-color: #3a2b60;
			  border-radius: var(--border-radius);
				  color: var(--color-text);
				  }
				  
				  .modal-close {
					position: absolute;
					top: 0.75rem;
					right: 0.75rem;
					font-size: 1.25rem;
					background: none;
					border: none;
					color: var(--color-text);
						cursor: pointer;
						z-index: 10;
					  }
					  .modal-option {
						margin-bottom: 0.5rem;
					  }
					  .modal-content h3 {
						margin-bottom: 1.5rem; /* z. B. 1.5rem für deutlich sichtbaren Abstand */
					  }
					  #modal-logout-success.show {
						display: flex !important;
						align-items: center;
						justify-content: center;
					  }
					  
					  #modal-logout-success .modal-content {
						max-width: 90%;
						width: 320px;
						padding: 1rem 1.5rem;
						border-radius: 12px;
						background-color: #2d1845; /* dunkler Ton passend zu deinem Stil */
						box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
						color: #fff;
						animation: fadeIn 0.3s ease;
					  }
					  
					  @keyframes fadeIn {
						from { opacity: 0; transform: scale(0.9); }
						to { opacity: 1; transform: scale(1); }
					  }
					  
					  .modal-overlay.modal-noblock {
						pointer-events: none; /* macht Modal „durchlässig“ */
					  }
					  
					  .modal-overlay.modal-noblock .modal-content {
						pointer-events: auto; /* ABER Modal-Inhalt selbst bleibt interaktiv */
					  }
					  
					  
					  /* Für gläserne Container */
					  .glass {
						background: rgba(255, 255, 255, 0.05);
						backdrop-filter: blur(10px);
						-webkit-backdrop-filter: blur(10px);
						border-radius: var(--border-radius);
							box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
						  }
.modal-content textarea {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.75rem;
  border-radius: var(--border-radius);
  border: 1px solid #555;
  background-color: #3a2b60;
  color: var(--color-text, #fff);
  font-size: 1rem;
  resize: vertical;
}

.modal-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  margin-top: 1rem;
  border: none;
  border-radius: var(--border-radius);
  background-color: var(--color-primary, #7c3aed); 
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease;
}

.modal-option:hover {
  background-color: var(--color-primary-dark, #5b21b6);
}


/* ===========================
   🔄 Toggle Switch für Settings
=========================== */

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 0.6rem;
  border-radius: var(--border-radius);
  background-color: rgba(255, 255, 255, 0.05);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--color-text);
}

/* Toggle Switch Optik */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch .slider {
  position: absolute;
  inset: 0;
  background-color: #555;
  border-radius: 13px;
  cursor: pointer;
  transition: background-color 0.4s;
}

.toggle-switch .slider:before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.4s ease;
}

.toggle-switch input:checked + .slider {
  background-color: var(--color-primary, #7c3aed);
}

.toggle-switch input:checked + .slider:before {
  transform: translateX(16px);
}

