/* Modal overlay */
#fmrseo-bulk-rename-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 100000;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Inter', sans-serif;
}

/* Modal container */
.fmrseo-modal-content {
  background: #191816;
  color: #ffffff;
  border-radius: 12px;
  padding: 0;
  width: 90%;
  max-width: 700px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: fadeIn 0.2s ease-out;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Header */
.fmrseo-modal-header {
  background-color: #0b0a08;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #2c2b29;
}

.fmrseo-modal-header h2 {
  font-size: 16px;
  margin: 0;
  color: #ffffff;
}

.fmrseo-close {
  font-size: 20px;
  font-weight: bold;
  color: #a1a1aa;
  cursor: pointer;
  transition: color 0.2s ease;
}

.fmrseo-close:hover {
  color: #ffffff;
}

/* Body */
.fmrseo-modal-body {
  padding: 20px;
}

.fmrseo-form-group {
  margin-bottom: 20px;
}

.fmrseo-form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.fmrseo-form-group label, .fmrseo-form-group p  {
  color: #a1a1aa;
}

.fmrseo-form-group input[type='text'] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #333;
  background-color: #0b0a08;
  color: #ffffff;
  border-radius: 6px;
  font-size: 14px;
}

.fmrseo-form-group input[type='text']:focus {
  outline: none;
  border-color: #1dbded;
}

/* Progress bar */
.fmrseo-progress-bar {
  background-color: #2c2b29;
  border-radius: 10px;
  overflow: hidden;
  height: 12px;
}

.fmrseo-progress-fill {
  background: linear-gradient(90deg, #1dbded 0%, #ea8b46 100%);
  height: 100%;
  width: 0%;
  transition: width 0.4s ease;
}

.fmrseo-progress-text {
  text-align: center;
  color: #1dbded;
  font-weight: 600;
  font-size: 12px;
  margin-top: 6px;
}

/* Results */
.fmrseo-results {
  margin-top: 20px;
  background-color: #0b0a08;
  border: 1px solid #2c2b29;
  border-radius: 6px;
  padding: 16px;
  max-height: 300px;
  overflow-y: auto;
  font-size: 14px;
}

.fmrseo-results ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.fmrseo-results li {
  padding: 8px 0;
  border-bottom: 1px solid #333;
}

.fmrseo-results li:last-child {
  border-bottom: none;
}

.fmrseo-result-success {
  color: #1dbded;
}

.fmrseo-result-error {
  color: #ea8b46;
}

.fmrseo-status-icon {
  margin-right: 6px;
  font-weight: bold;
}

/* Error Box */
.fmrseo-error {
  background-color: #2c0f0f;
  color: #ffb3b3;
  border: 1px solid #ea8b46;
  border-radius: 4px;
  padding: 10px;
  font-weight: 600;
}

/* Footer */
.fmrseo-modal-footer {
  padding: 16px 20px;
  border-top: 1px solid #2c2b29;
  background-color: #0b0a08;
  display: flex;
  flex: wrap;
  justify-content: flex-end;
  gap: 12px;
}
.fmrseo-modal-footer button{
  max-height: 35px;
}

/* PRIMARY BUTTON (Solid Orange) */
.fmrseo-modal-footer .button-primary {
  background-color: #ea8b46;
  color: #0b0a08;
  padding: 0px 10px;
  border-radius: 6px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.fmrseo-modal-footer .button-primary:hover {
  background-color: #d1783c;
}

.fmrseo-modal-footer .fmrseo-ai-bulk-button {
  background-image: linear-gradient(to right, #61DAFB , #1fc0f1 , #03a3d7);
  color: black;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fmrseo-modal-footer .fmrseo-ai-bulk-button:hover,
.fmrseo-modal-footer .fmrseo-ai-bulk-button:focus {
  background-image: linear-gradient(to left, #61DAFB , #1fc0f1 , #03a3d7);
}

.fmrseo-modal-footer .fmrseo-ai-bulk-button[disabled],
.fmrseo-modal-footer .fmrseo-ai-bulk-button:disabled {
  background-color: #7c3aed;
  border-color: #7c3aed;
  color: #ffffff;
  opacity: 0.6;
  cursor: not-allowed;
}

.fmrseo-modal-footer .fmrseo-manual-bulk-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fmrseo-modal-footer .fmrseo-manual-bulk-button .dashicons,
.fmrseo-modal-footer .fmrseo-ai-bulk-button .dashicons {
  width: 16px;
  height: 16px;
  font-size: 16px;
  line-height: 16px;
}

/* SECONDARY BUTTON (Orange Outline) */
.fmrseo-modal-footer .button-secondary {
  background-color: transparent;
  color: #ea8b46;
  padding: 0px 10px;
  border-radius: 6px;
  font-weight: 600;
  border: 2px solid #ea8b46;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fmrseo-modal-footer .button-secondary:hover {
  background-color: rgba(234, 139, 70, 0.1);
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .fmrseo-modal-content {
    width: 95%;
  }
}
