/* Leader Overlay - Style cohérent avec l'application */

.wb-leader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: "Geist", sans-serif;
}

.wb-leader-overlay-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.wb-leader-overlay-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
}

.wb-leader-overlay-card {
  background: var(--color-lightest);
  border: 1px solid var(--color-light);
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.wb-leader-overlay-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-darkest);
  margin: 0 0 12px;
  line-height: 1.3;
}

.wb-leader-overlay-description {
  font-size: 14px;
  color: var(--color-gray);
  margin: 0 0 24px;
  line-height: 1.5;
}

.wb-leader-overlay-info {
  background: var(--color-lighter);
  border: 1px solid var(--color-light);
  border-radius: 4px;
  padding: 16px;
  margin: 24px 0;
  text-align: left;
}

.wb-leader-overlay-info p {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--color-dark);
}

.wb-leader-overlay-info p:last-child {
  margin-bottom: 0;
}

.wb-leader-overlay-actions {
  margin: 24px 0 16px;
}

.wb-leader-overlay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 160px;
  font-family: "Geist", sans-serif;
}

.wb-leader-overlay-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.wb-leader-overlay-btn-primary {
  background: #ff7704;
  color: white;
}

.wb-leader-overlay-btn-primary:hover:not(:disabled) {
  background: #e56803;
  transform: translateY(-1px);
}

.wb-leader-overlay-btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.wb-leader-overlay-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: wb-spinner-rotate 1s linear infinite;
}

@keyframes wb-spinner-rotate {
  to {
    transform: rotate(360deg);
  }
}

.wb-leader-overlay-note {
  margin-top: 16px;
}

.wb-leader-overlay-note small {
  color: var(--color-gray);
  font-size: 12px;
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 640px) {
  .wb-leader-overlay {
    padding: 16px;
  }

  .wb-leader-overlay-card {
    padding: 24px 20px;
  }

  .wb-leader-overlay-title {
    font-size: 1.25rem;
  }

  .wb-leader-overlay-btn {
    padding: 10px 20px;
    min-width: 140px;
  }
}

/* Mode sombre si nécessaire */
@media (prefers-color-scheme: dark) {
  .wb-leader-overlay-card {
    background: var(--color-darker);
    border: 1px solid var(--color-dark);
  }

  .wb-leader-overlay-title {
    color: var(--color-lightest);
  }

  .wb-leader-overlay-description {
    color: var(--color-gray-light);
  }

  .wb-leader-overlay-info {
    background: var(--color-dark);
    border: 1px solid var(--color-gray);
  }

  .wb-leader-overlay-info p {
    color: var(--color-light);
  }

  .wb-leader-overlay-note small {
    color: var(--color-gray-light);
  }
}
