// Quick actions UI lives in _overview.scss (WordPress .button). Export modals below.

// Export Campaign Modal Styles
.giftflow-export-campaign {
  &__select-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  &__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
    line-height: 1.4;
  }

  &__select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25rem;
    padding-right: 2.5rem;

    &:hover {
      border-color: #9ca3af;
    }

    &:focus {
      outline: none;
      border-color: #3b82f6;
      box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

    &:disabled {
      background: #f9fafb;
      color: #9ca3af;
      cursor: not-allowed;
    }

    option {
      padding: 0.5rem;
      color: #374151;
      
      &:disabled {
        color: #9ca3af;
        font-style: italic;
      }
    }
  }

  &__error {
    padding: 0.75rem 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #dc2626;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
  }

  &__loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #6b7280;
    font-size: 0.875rem;
    font-style: italic;

    &::before {
      content: '';
      width: 16px;
      height: 16px;
      border: 2px solid #e5e7eb;
      border-top: 2px solid #3b82f6;
      border-radius: 50%;
      animation: giftflow-spin 1s linear infinite;
    }
  }
}

// Export Donor Modal Styles
.giftflow-export-donor {
  &__select-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  &__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
    line-height: 1.4;
  }

  &__select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25rem;
    padding-right: 2.5rem;

    &:hover {
      border-color: #9ca3af;
    }

    &:focus {
      outline: none;
      border-color: #3b82f6;
      box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

    &:disabled {
      background: #f9fafb;
      color: #9ca3af;
      cursor: not-allowed;
    }

    option {
      padding: 0.5rem;
      color: #374151;
      
      &:disabled {
        color: #9ca3af;
        font-style: italic;
      }
    }
  }

  &__error {
    padding: 0.75rem 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #dc2626;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
  }

  &__loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #6b7280;
    font-size: 0.875rem;
    font-style: italic;

    &::before {
      content: '';
      width: 16px;
      height: 16px;
      border: 2px solid #e5e7eb;
      border-top: 2px solid #3b82f6;
      border-radius: 50%;
      animation: giftflow-spin 1s linear infinite;
    }
  }
}

// Loading spinner animation
@keyframes giftflow-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

// Responsive design
@media (max-width: 768px) {
  .giftflow-export-campaign,
  .giftflow-export-donor {
    &__select {
      padding: 0.625rem 0.875rem;
      font-size: 0.8rem;
    }

    &__label {
      font-size: 0.8rem;
    }

    &__error,
    &__loading {
      font-size: 0.8rem;
      padding: 0.625rem 0.875rem;
    }
  }
}
