/* Główny kontener sekcji */
.cursor-form-section {
  margin-bottom: 24px;
}

/* Tytuł sekcji z tooltipem */
.cursor-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.cursor-section-title {
  display: flex;
  align-items: center;
}

.cursor-section-title-text {
  font-size: 16px;
  font-weight: 500;
  color: #262626;
}

.cursor-section-tooltip {
  margin-left: 8px;
  color: #8c8c8c;
  cursor: help;
}

/* Karta z zawartością */
.cursor-form-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb; /* gray-200 */
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
}

/* Układ karty z kontrolką po prawej */
.cursor-card-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.cursor-card-left {
  flex: 1;
  margin-right: 16px;
}

.cursor-card-right {
  display: flex;
  align-items: center;
  margin-top: 8px;
}

/* Układ karty z kontrolką w jednej linii */
.cursor-card-content-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cursor-card-right-inline {
  width: 200px;
}

/* Tytuł karty */
.cursor-card-title {
  font-size: 14px;
  font-weight: 500;
  color: #262626;
  margin-bottom: 4px;
}

/* Opis karty */
.cursor-card-description {
  font-size: 12px;
  color: #8c8c8c;
  margin-bottom: 12px;
}

/* Kontrolki w kartach */
.cursor-card-control {
  width: 100%;
}

/* Komunikaty informacyjne */
.cursor-info-message {
  background-color: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
  color: #0369a1;
}

.cursor-info-message-secondary {
  font-size: 14px;
  color: #0ea5e9;
  margin-top: 4px;
}

/* Komunikaty wyłączonych opcji */
.cursor-disabled-message {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
  color: #64748b;
}

.cursor-disabled-message-secondary {
  font-size: 14px;
  color: #94a3b8;
  margin-top: 4px;
}

/* Tooltip content */
.cursor-tooltip-content {
  max-width: 280px;
}

.cursor-tooltip-description {
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.8;
}

.cursor-tooltip-link {
  margin-top: 8px;
}

.cursor-tooltip-link a {
  color: #1890ff;
  text-decoration: none;
}

.cursor-tooltip-link a:hover {
  text-decoration: underline;
}

/* Responsywność */
@media (max-width: 768px) {
  .cursor-card-content {
    flex-direction: column;
  }

  .cursor-card-left {
    margin-right: 0;
    margin-bottom: 12px;
  }

  .cursor-card-right {
    margin-top: 0;
    align-self: flex-end;
  }

  .cursor-card-content-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .cursor-card-right-inline {
    width: 100%;
    margin-top: 12px;
  }
}

/* Animacje */
/* Animacje dla przejść między zakładkami */
.AddPackageModal .ant-modal-body {
  transition: all 0.3s ease-in-out;
}

.AddPackageModal .ant-row {
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* Animacja dla przełączania między krokami */
.AddPackageModal .ant-steps-item {
  transition: all 0.2s ease-in-out;
}

.AddPackageModal .ant-steps-item:hover {
  transform: translateY(-1px);
}

/* Animacja dla zawartości kroków */
.AddPackageModal .ant-col {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animacja dla kart formularza */
.cursor-form-card {
  transition: all 0.2s ease;
  animation: slideIn 0.3s ease-out;
}

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

/* Animacja dla sekcji formularza */
.cursor-form-section {
  transition: all 0.3s ease-in-out;
}

/* Animacja dla przycisków */
.cursor-section-header .ant-btn {
  transition: all 0.2s ease-in-out;
}

.cursor-section-header .ant-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Animacja dla tooltipów */
.cursor-section-tooltip {
  transition: color 0.2s ease-in-out;
}

.cursor-section-tooltip:hover {
  color: #1890ff;
}

/* Animacja dla kontrolków */
.cursor-card-control {
  transition: all 0.2s ease-in-out;
}

.cursor-card-control:focus {
  transform: scale(1.02);
}

/* Animacja dla checkboxów */
.cursor-card-right .ant-checkbox-wrapper {
  transition: all 0.2s ease-in-out;
}

.cursor-card-right .ant-checkbox-wrapper:hover {
  transform: scale(1.05);
}

/* Animacja dla selektorów */
.cursor-card-control .ant-select-selector {
  transition: all 0.2s ease-in-out;
}

/* Animacja dla inputów */
.cursor-card-control .ant-input {
  transition: all 0.2s ease-in-out;
}

/* Animacja dla radio group */
.cursor-card-control .ant-radio-group {
  transition: all 0.2s ease-in-out;
}

/* Animacja dla skeleton loading */
.cursor-form-card.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 0.6;
  }
}

/* Animacja dla komunikatów */
.cursor-info-message,
.cursor-disabled-message {
  animation: slideInUp 0.3s ease-out;
}

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

/* Animacja dla tooltip content */
.cursor-tooltip-content {
  animation: fadeInScale 0.2s ease-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animacja dla hover efektów */
.cursor-form-card:hover {
  border-color: #d9d9d9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

/* Animacja dla focus states */
.cursor-form-card:focus-within {
  border-color: #1890ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
  transform: translateY(-1px);
}

/* Animacja dla error states */
.cursor-form-card.error {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* Animacja dla success states */
.cursor-form-card.success {
  animation: successPulse 0.5s ease-in-out;
}

@keyframes successPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}