/* Modal Container */
.ttrs-modal-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  /* Hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* Modal Container when visible */
.ttrs-modal-container.show {
  display: flex;
}

/* Prevent body scroll when modal is open */
body.ttrs-modal-open {
  overflow: hidden;
}

/* Modal Overlay */
.ttrs-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

/* Modal */
.ttrs-modal {
  position: relative;
  width: 90%;
  max-width: 500px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.3s ease;
}

/* Modal Header */
.ttrs-modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ttrs-modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: #333;
}

.ttrs-modal-close {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 10;
  line-height: 1;
}

.ttrs-modal-close:hover {
  color: #333;
}

/* Modal Content */
.ttrs-modal-content {
  padding: 20px;
  max-height: none;
  overflow-y: visible;
}

/* Modal Footer */
.ttrs-modal-footer {
  padding: 15px 20px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.ttrs-modal-confirm,
.ttrs-modal-cancel {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.ttrs-modal-confirm {
  background-color: #2196f3;
  color: white;
}

.ttrs-modal-confirm:hover {
  background-color: #1976d2;
}

.ttrs-modal-cancel {
  background-color: #f5f5f5;
  color: #333;
}

.ttrs-modal-cancel:hover {
  background-color: #e0e0e0;
}

/* Toast Notifications */
.ttrs-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 14px;
  color: white;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.3s ease;
  z-index: 1000;
}

.ttrs-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.ttrs-toast-success {
  background-color: #4caf50;
}

.ttrs-toast-error {
  background-color: #f44336;
}

.ttrs-toast-info {
  background-color: #2196f3;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}



/* Responsive Design */
@media (max-width: 768px) {
  .ttrs-modal {
    width: 95%;
    margin: 10px;
  }

  .ttrs-modal-content {
    max-height: 60vh;
  }

  .ttrs-toast {
    left: 20px;
    right: 20px;
    text-align: center;
  }
}
