.nextlist-modal-new-application {
  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: 10000;
  padding: 20px;
  opacity: 1 !important;
  animation: fade-in 0.2s ease-out;
}


/* Modal Container */
.nextlist-modal-new-application .modal-container {
  background-color: var(--card-bg, #ffffff);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: slide-up 0.3s ease-out;
}

.nextlist-modal-new-application  .modal-container.modal-lg {
  max-width: 800px;
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal Header */
.nextlist-modal-new-application  .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border, #e5e7eb);
}

.nextlist-modal-new-application  .modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary, #1f2937);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nextlist-modal-new-application  .modal-title i {
  color: var(--primary-color);
  font-size: 1.125rem;
}

.nextlist-modal-new-application  .modal-close {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text-secondary, #6b7280);
  border-radius: 6px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nextlist-modal-new-application  .modal-close:hover {
  background-color: var(--surface-hover, #f3f4f6);
  color: var(--text-primary, #1f2937);
}

.nextlist-modal-new-application  .modal-close i {
  font-size: 1.25rem;
}

/* Modal Body */
.nextlist-modal-new-application  .modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

/* Step Indicator */
.nextlist-modal-new-application  .step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  gap: 0.5rem;
}

.nextlist-modal-new-application  .step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  max-width: 150px;
}

.nextlist-modal-new-application  .step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--border, #e5e7eb);
  color: var(--text-secondary, #6b7280);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s;
}

.nextlist-modal-new-application  .step.active .step-number {
  background-color: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.nextlist-modal-new-application  .step.completed .step-number {
  background-color: #10b981;
  color: white;
}

.nextlist-modal-new-application  .step.completed .step-number::before {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
}

.nextlist-modal-new-application  .step.completed .step-number {
  font-size: 0;
}

.nextlist-modal-new-application  .step-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary, #6b7280);
  text-align: center;
}

.nextlist-modal-new-application  .step.active .step-label {
  color: var(--primary-color);
  font-weight: 600;
}

.nextlist-modal-new-application  .step.completed .step-label {
  color: #10b981;
}

.nextlist-modal-new-application  .step-line {
  height: 2px;
  background-color: var(--border, #e5e7eb);
  flex: 1;
  margin: 0 0.5rem;
  align-self: flex-start;
  margin-top: 20px;
  transition: all 0.3s;
}

.nextlist-modal-new-application  .step.completed + .step-line {
  background-color: #10b981;
}

.nextlist-modal-new-application  .step-content {
  display: none;
}

.nextlist-modal-new-application  .step-content.active {
  display: block;
  animation: fade-in-content 0.3s ease-out;
}

@keyframes fade-in-content {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.nextlist-modal-new-application  .step-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary, #1f2937);
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border, #e5e7eb);
}

.nextlist-modal-new-application  .form-group {
  margin-bottom: 1.5rem;
}

.nextlist-modal-new-application  .search-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.nextlist-modal-new-application  .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary, #9ca3af);
  font-size: 0.875rem;
}

.nextlist-modal-new-application  .search-input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 6px;
  font-size: 14px;
  background-color: var(--input-bg, #ffffff);
  color: var(--text-primary, #1f2937);
  transition: all 0.2s;
}

.nextlist-modal-new-application  .search-input:focus {
  outline: none;
  border: 2px solid var(--primary-color);
  padding: 9px 11px 9px 35px;
}

.nextlist-modal-new-application  .checklist-selection-list,
.nextlist-modal-new-application  .user-selection-list {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  padding: 0.5rem;
}

.nextlist-modal-new-application  .selection-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--surface-hover, #f9fafb);
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 0.5rem;
}

.nextlist-modal-new-application  .selection-item:last-child {
  margin-bottom: 0;
}
.nextlist-modal-new-application .selection-item:hover {
  background-color: var(--border, #e5e7eb);
  border-color: var(--primary-color);
}

.nextlist-modal-new-application .selection-item.selected {
  background-color: rgba(59, 130, 246, 0.1);
  border-color: var(--primary-color);
}

.nextlist-modal-new-application .selection-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.nextlist-modal-new-application .selection-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color) 0%, rgba(59, 130, 246, 0.7) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.nextlist-modal-new-application .selection-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.nextlist-modal-new-application .selection-code {
  font-size: 0.75rem;
  color: var(--text-secondary, #9ca3af);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nextlist-modal-new-application .selection-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary, #1f2937);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nextlist-modal-new-application .selection-username {
  font-size: 0.8125rem;
  color: var(--text-secondary, #9ca3af);
}

.nextlist-modal-new-application .selection-email {
  font-size: 0.8125rem;
  color: var(--text-secondary, #9ca3af);
}

.nextlist-modal-new-application .selection-description {
  font-size: 0.8125rem;
  color: var(--text-secondary, #6b7280);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nextlist-modal-new-application .selection-check {
  color: var(--primary-color);
  font-size: 1.5rem;
  opacity: 0;
  transition: all 0.2s;
  flex-shrink: 0;
}

.nextlist-modal-new-application .selection-item.selected .selection-check {
  opacity: 1;
}

.nextlist-modal-new-application .selection-loading,
.nextlist-modal-new-application .selection-error,
.nextlist-modal-new-application .selection-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-secondary, #6b7280);
  gap: 0.75rem;
}

.nextlist-modal-new-application .selection-loading i {
  font-size: 2rem;
  animation: spin 1s linear infinite;
}

.nextlist-modal-new-application .selection-error i,
.nextlist-modal-new-application .selection-empty i {
  font-size: 2.5rem;
  opacity: 0.5;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.nextlist-modal-new-application .selected-summary {
  background-color: var(--surface-hover, #f9fafb);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.nextlist-modal-new-application .summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.nextlist-modal-new-application .summary-row:not(:last-child) {
  border-bottom: 1px solid var(--border, #e5e7eb);
}

.nextlist-modal-new-application .summary-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary, #6b7280);
}

.nextlist-modal-new-application .summary-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary, #1f2937);
  text-align: right;
}

.nextlist-modal-new-application .form-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.nextlist-modal-new-application .form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary, #1f2937);
  margin-bottom: 0.5rem;
}

.nextlist-modal-new-application .form-input,
.nextlist-modal-new-application .form-select,
.nextlist-modal-new-application .form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 6px;
  font-size: 14px;
  background-color: var(--input-bg, #ffffff);
  color: var(--text-primary, #1f2937);
  transition: all 0.2s;
  font-family: inherit;
}

.nextlist-modal-new-application .form-input:focus,
.nextlist-modal-new-application .form-select:focus,
.nextlist-modal-new-application .form-textarea:focus {
  outline: none;
  border: 2px solid var(--primary-color);
  padding: 9px 11px;
}

.nextlist-modal-new-application .form-textarea {
  resize: vertical;
  min-height: 100px;
}

.nextlist-modal-new-application .form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.nextlist-modal-new-application .form-hint {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-secondary, #6b7280);
  margin-top: 0.375rem;
  line-height: 1.4;
}

.nextlist-modal-new-application .form-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nextlist-modal-new-application .checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-primary, #1f2937);
}

.nextlist-modal-new-application .form-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.nextlist-modal-new-application .modal-footer {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border, #e5e7eb);
  background-color: var(--surface-hover, #f9fafb);
  border-radius: 0 0 12px 12px;
}

.nextlist-modal-new-application .modal-footer .btn {
  padding: 10px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
}

 .nextlist-modal-new-application.modal-footer .btn-primary {
  background-color: var(--primary-color);
  color: var(--btn-secundary-text-color);
  border: var(--border-type);
}

.nextlist-modal-new-application .modal-footer .btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.nextlist-modal-new-application .modal-footer .btn-secondary {
  background-color: var(--btn-secundary-color);
  color: var(--btn-secundary-text-color);
  border: var(--border-type);
}

.nextlist-modal-new-application .modal-footer .btn-secondary:hover {
  opacity: 0.9;
}

html.dark-theme .nextlist-modal-new-application .modal-container {
  background-color: #2c2c2c;
}

html.dark-theme .nextlist-modal-new-application .modal-title,
html.dark-theme .nextlist-modal-new-application .step-title,
html.dark-theme .nextlist-modal-new-application .summary-value,
html.dark-theme .nextlist-modal-new-application .selection-name,
html.dark-theme .nextlist-modal-new-application .form-label {
  color: #f0f0f0;
}

html.dark-theme .nextlist-modal-new-application .summary-label,
html.dark-theme .nextlist-modal-new-application .selection-code,
html.dark-theme .nextlist-modal-new-application .selection-username,
html.dark-theme .nextlist-modal-new-application .selection-email,
html.dark-theme .nextlist-modal-new-application .selection-description,
html.dark-theme .nextlist-modal-new-application .form-hint {
  color: #b0b0b0;
}

html.dark-theme .nextlist-modal-new-application .modal-header,
html.dark-theme  .nextlist-modal-new-application .modal-footer,
html.dark-theme .nextlist-modal-new-application .step-title {
  border-color: #555555;
}

html.dark-theme .nextlist-modal-new-application .search-input,
html.dark-theme .nextlist-modal-new-application .form-input,
html.dark-theme .nextlist-modal-new-application .form-select,
html.dark-theme .nextlist-modal-new-application .form-textarea {
  background-color: #1e1e1e;
  color: #f0f0f0;
  border-color: #555555;
}

html.dark-theme .nextlist-modal-new-application .checklist-selection-list,
html.dark-theme .nextlist-modal-new-application .user-selection-list,
html.dark-theme .nextlist-modal-new-application .selected-summary {
  background-color: #1e1e1e;
  border-color: #555555;
}

html.dark-theme .nextlist-modal-new-application .selection-item {
  background-color: #2c2c2c;
}

html.dark-theme .nextlist-modal-new-application .selection-item:hover {
  background-color: #3a3a3a;
}

html.dark-theme .nextlist-modal-new-application .modal-footer {
  background-color: #1e1e1e;
}

html.dark-theme .nextlist-modal-new-application .modal-close:hover {
  background-color: #3a3a3a;
}

html.dark-theme .nextlist-modal-new-application .step-number {
  background-color: #3a3a3a;
}

html.dark-theme .nextlist-modal-new-application .step-line {
  background-color: #555555;
}

/* Responsive */
@media (max-width: 768px) {
  .nextlist-modal-new-application .modal-overlay {
    padding: 10px;
  }

  .nextlist-modal-new-application .modal-container {
    max-height: 95vh;
  }

  .nextlist-modal-new-application .modal-header {
    padding: 1.25rem 1.5rem;
  }

  .nextlist-modal-new-application .modal-body {
    padding: 1.5rem;
  }

  .nextlist-modal-new-application .modal-footer {
    padding: 1.25rem 1.5rem;
    flex-direction: column-reverse;
  }

  .nextlist-modal-new-application .modal-footer .btn {
    width: 100%;
    justify-content: center;
  }

 .nextlist-modal-new-application  .modal-title {
    font-size: 1.125rem;
  }

  .nextlist-modal-new-application .step-indicator {
    flex-wrap: wrap;
  }

  .nextlist-modal-new-application .step {
    max-width: 100px;
  }

  .nextlist-modal-new-application .step-label {
    font-size: 0.75rem;
  }

  .nextlist-modal-new-application .step-number {
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
  }

  .nextlist-modal-new-application .checklist-selection-list,
  .nextlist-modal-new-application .user-selection-list {
    max-height: 300px;
  }
}