/* ===== MODAL STYLES ===== */

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--medium-gray);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.close-modal {
  background: none;
  border: none;
  line-height: 1;
  cursor: pointer;
  color: var(--text-secondary);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  display: flex;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--medium-gray);
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.modal-overlay.visible .modal-content {
  transform: translateY(0);
}

.modal-overlay .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.modal-overlay .modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
}

.modal-overlay .modal-body {
  margin-bottom: 1.5rem;
}

.modal-overlay .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.modal-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-btn.cancel {
  background-color: var(--light-gray);
  color: var(--text-primary);
}

.modal-btn.cancel:hover {
  background-color: var(--medium-gray);
}

.modal-btn.confirm {
  background-color: var(--color-primary);
  color: var(--white);
}

.modal-btn.confirm:hover {
  background-color: var(--color-primary);
}

.modal-btn.danger {
  background-color: #ef4444;
  color: var(--white);
}

.modal-btn.danger:hover {
  background-color: #dc2626;
}

/* Mobile Modal Styles */
@media (max-width: 768px) {
  .modal-footer {
    flex-direction: column;
    gap: 1rem;
  }
  
  #delete-event-btn {
    width: 100%;
  }
  
  .modal-actions {
    width: 100%;
  }
  
  .modal-actions .btn {
    flex: 1;
  }
}

/* Toast Notifications */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  color: white;
  font-weight: 500;
  z-index: 10000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}

.toast.show {
  transform: translateX(0);
}

.toast.error-toast {
  background-color: #ef4444;
}

.toast.success-toast {
  background-color: #10b981;
}

.toast.warning-toast {
  background-color: #f59e0b;
}

.toast.info-toast {
  background-color: #3b82f6;
}

@media (max-width: 768px) {
  .toast {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
}