.autoblogger-admin {
  max-width: 100%;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.autoblogger-container {
  margin-top: 20px;
}

.autoblogger-admin .card {
  padding: 20px;
  background: #fff;
  border: 1px solid #ccd0d4;
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.autoblogger-admin .card h2 {
  margin-top: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e5e5;
}

.autoblogger-admin .card h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  padding: 10px;
  background: #f5f5f5;
  border-left: 4px solid #007cba;
  font-size: 14px;
}

.autoblogger-admin .card h3:first-of-type {
  margin-top: 20px;
}

#connection-status,
#generation-status,
#interview-status,
#script-review-status,
#wp-draft-status {
  padding: 10px;
  border-radius: 4px;
  display: none;
}

#connection-status.success,
#generation-status.success,
#interview-status.success,
#script-review-status.success,
#wp-draft-status.success {
  display: block;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

#connection-status.error,
#generation-status.error,
#interview-status.error,
#script-review-status.error,
#wp-draft-status.error {
  display: block;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

#connection-status.info,
#generation-status.info,
#interview-status.info,
#script-review-status.info,
#wp-draft-status.info {
  display: block;
  background: #d1ecf1;
  border: 1px solid #bee5eb;
  color: #0c5460;
}

#connection-status.warning,
#generation-status.warning,
#interview-status.warning,
#script-review-status.warning,
#wp-draft-status.warning {
  display: block;
  background: #fff3cd;
  border: 1px solid #ffeeba;
  color: #856404;
}

.autoblogger-admin .form-table th {
  width: 200px;
}

.autoblogger-admin .regular-text {
  width: 100%;
  max-width: 100%;
}

.autoblogger-admin .large-text {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.autoblogger-admin textarea.large-text {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.autoblogger-admin input[type="text"].large-text,
.autoblogger-admin input[type="url"].large-text {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Script content textarea styling */
#script-content {
  font-family: "Monaco", "Consolas", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.5;
  background: #f9f9f9;
  border: 1px solid #ddd;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Post preview styling */
#post-content-preview {
  max-height: 600px;
  overflow-y: auto;
  overflow-x: hidden;
  font-size: 14px;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

#post-content-preview h1 {
  font-size: 28px;
  margin-bottom: 20px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

#post-content-preview h2 {
  font-size: 24px;
  margin-top: 30px;
  margin-bottom: 15px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

#post-content-preview h3 {
  font-size: 20px;
  margin-top: 25px;
  margin-bottom: 12px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

#post-content-preview h4 {
  font-size: 18px;
  margin-top: 20px;
  margin-bottom: 10px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

#post-content-preview p {
  margin-bottom: 15px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Loading spinner */
.autoblogger-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: #007cba;
  animation: spin 1s ease-in-out infinite;
  margin-left: 10px;
}

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

/* Two-column layout for view script page */
.autoblogger-two-column-layout {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.autoblogger-left-column {
  flex: 0 0 50%;
  min-width: 0;
}

.autoblogger-right-column {
  flex: 0 0 50%;
  min-width: 0;
  position: sticky;
  top: 20px;
  align-self: flex-start;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

/* JSON display styling */
.autoblogger-json-display {
  background: #f5f5f5;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  max-height: 500px;
  overflow: auto;
  overflow-x: auto;
  font-family: "Monaco", "Consolas", "Courier New", monospace;
  font-size: 12px;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Markdown display styling */
.autoblogger-markdown-display {
  background: #ffffff;
  padding: 30px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.autoblogger-markdown-display h1 {
  font-size: 2.5em;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.5em;
  padding-bottom: 0.3em;
  border-bottom: 2px solid #eaecef;
  color: #24292e;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.autoblogger-markdown-display h2 {
  font-size: 2em;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid #eaecef;
  color: #24292e;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.autoblogger-markdown-display h3 {
  font-size: 1.5em;
  font-weight: 600;
  margin-top: 1.2em;
  margin-bottom: 0.5em;
  color: #24292e;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.autoblogger-markdown-display h4 {
  font-size: 1.25em;
  font-weight: 600;
  margin-top: 1em;
  margin-bottom: 0.5em;
  color: #24292e;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.autoblogger-markdown-display p {
  margin-bottom: 1em;
  line-height: 1.8;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.autoblogger-markdown-display img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1em 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.autoblogger-markdown-display figure {
  margin: 20px 0;
  text-align: center;
}

.autoblogger-markdown-display figure img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

.autoblogger-markdown-display figure figcaption {
  margin-top: 10px;
  font-size: 0.9em;
  color: #666;
  font-style: italic;
  text-align: center;
}

.autoblogger-markdown-display .faq-section {
  margin: 30px 0;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.autoblogger-markdown-display .faq-section h2 {
  margin-top: 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #007cba;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.autoblogger-markdown-display .faq-section h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  color: #007cba;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.autoblogger-markdown-display .faq-section p {
  margin-bottom: 15px;
  line-height: 1.8;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.autoblogger-markdown-display ul,
.autoblogger-markdown-display ol {
  margin-bottom: 1em;
  padding-left: 2em;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.autoblogger-markdown-display li {
  margin-bottom: 0.5em;
  line-height: 1.8;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.autoblogger-markdown-display code {
  background-color: #f6f8fa;
  border-radius: 3px;
  padding: 0.2em 0.4em;
  font-size: 0.9em;
  font-family: "Monaco", "Consolas", "Courier New", monospace;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.autoblogger-markdown-display pre {
  background-color: #f6f8fa;
  border-radius: 6px;
  padding: 16px;
  overflow: auto;
  overflow-x: auto;
  font-size: 0.9em;
  line-height: 1.45;
  margin-bottom: 1em;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.autoblogger-markdown-display pre code {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
}

.autoblogger-markdown-display blockquote {
  padding: 0 1em;
  color: #6a737d;
  border-left: 0.25em solid #dfe2e5;
  margin: 0 0 1em 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.autoblogger-markdown-display table {
  border-collapse: collapse;
  margin: 1em 0;
  width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.autoblogger-markdown-display table th,
.autoblogger-markdown-display table td {
  border: 1px solid #dfe2e5;
  padding: 0.6em 1em;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.autoblogger-markdown-display table th {
  background-color: #f6f8fa;
  font-weight: 600;
}

.autoblogger-markdown-display a {
  color: #0366d6;
  text-decoration: none;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.autoblogger-markdown-display a:hover {
  text-decoration: underline;
}

/* Full width layout improvements */
.autoblogger-admin .form-table {
  width: 100%;
  max-width: 100%;
}

.autoblogger-admin .form-table td {
  padding-right: 20px;
}

.autoblogger-admin .form-table th {
  width: 200px;
  min-width: 200px;
}

.autoblogger-admin .card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.autoblogger-admin .wp-list-table {
  width: 100%;
  max-width: 100%;
}

.autoblogger-admin .autoblogger-container {
  width: 100%;
  max-width: 100%;
}

.autoblogger-admin .autoblogger-tab-content {
  width: 100%;
  max-width: 100%;
}

/* Markdown Editor */
.autoblogger-markdown-editor {
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  margin-bottom: 20px;
}

.autoblogger-editor-tabs {
  display: flex;
  border-bottom: 1px solid #ddd;
  background: #f5f5f5;
}

.autoblogger-editor-tabs .editor-tab {
  padding: 10px 20px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  transition: all 0.2s;
}

.autoblogger-editor-tabs .editor-tab:hover {
  background: #fff;
  color: #007cba;
}

.autoblogger-editor-tabs .editor-tab.active {
  background: #fff;
  color: #007cba;
  border-bottom-color: #007cba;
  font-weight: 600;
}

.autoblogger-editor-content {
  position: relative;
  min-height: 400px;
}

.autoblogger-textarea {
  width: 100%;
  min-height: 400px;
  padding: 15px;
  border: none;
  border-radius: 0;
  font-family: "Monaco", "Consolas", "Courier New", monospace;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.autoblogger-textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px #007cba;
}

#script-text-preview {
  padding: 15px;
  min-height: 400px;
  max-height: 600px;
  overflow-y: auto;
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Edit mode styling */
#interview-edit-mode {
  background: #fff;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-top: 20px;
}

#interview-edit-mode .form-table {
  margin-top: 0;
}

#interview-edit-mode h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  padding: 10px;
  background: #f5f5f5;
  border-left: 4px solid #007cba;
  font-size: 14px;
}

#interview-edit-mode h3:first-of-type {
  margin-top: 0;
}

/* Progress Stepper */
.autoblogger-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 30px 0;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
}

.stepper-step {
  display: flex;
  align-items: center;
  flex: 1;
  position: relative;
  cursor: default;
}

.stepper-step.completed,
.stepper-step.active {
  cursor: pointer;
}

.stepper-step.completed:hover,
.stepper-step.active:hover {
  opacity: 0.8;
}

.stepper-step.completed:hover .step-number,
.stepper-step.active:hover .step-number {
  transform: scale(1.1);
}

.stepper-step .step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ddd;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  margin-right: 15px;
  transition: all 0.3s;
  flex-shrink: 0;
}

.stepper-step.completed .step-number {
  background: #46b450;
  color: #fff;
}

.stepper-step.active .step-number {
  background: #007cba;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(0, 124, 186, 0.2);
}

.stepper-step .step-content {
  flex: 1;
}

.stepper-step .step-title {
  font-weight: 600;
  font-size: 16px;
  color: #333;
  margin-bottom: 4px;
}

.stepper-step.completed .step-title,
.stepper-step.active .step-title {
  color: #007cba;
}

.stepper-step .step-description {
  font-size: 13px;
  color: #666;
}

.stepper-connector {
  flex: 1;
  height: 2px;
  background: #ddd;
  margin: 0 20px;
  position: relative;
  top: -20px;
}

.stepper-step.completed + .stepper-connector {
  background: #46b450;
}

/* Step Containers */
.step-container {
  margin-top: 30px;
  padding: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.step-header {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.step-header h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
  color: #333;
}

.step-header p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.step-content-form {
  margin-top: 20px;
}

/* Responsive design */
@media (max-width: 1200px) {
  .autoblogger-two-column-layout {
    flex-direction: column;
  }

  .autoblogger-right-column {
    position: static;
    max-height: none;
  }

  .autoblogger-markdown-display {
    max-height: 600px;
  }

  .autoblogger-editor-content {
    min-height: 300px;
  }

  .autoblogger-textarea {
    min-height: 300px;
  }

  #script-text-preview {
    min-height: 300px;
    max-height: 400px;
  }

  .autoblogger-stepper {
    flex-direction: column;
    align-items: flex-start;
  }

  .stepper-connector {
    display: none;
  }

  .stepper-step {
    width: 100%;
    margin-bottom: 15px;
  }

  .stepper-step:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 782px) {
  .autoblogger-admin {
    padding: 0 10px;
  }
}

/* Images Configuration Styles */
.user-image-item {
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #f9f9f9;
  position: relative;
}

.user-image-item .form-table {
  margin: 0;
  background: transparent;
}

.user-image-item .form-table th {
  width: 150px;
  padding: 10px 0;
  font-weight: 600;
}

.user-image-item .form-table td {
  padding: 10px 0;
}

.user-image-item .remove-user-image {
  color: #b32d2e;
  text-decoration: none;
}

.user-image-item .remove-user-image:hover {
  color: #8a2424;
}

.ai-image-description-item {
  margin-bottom: 15px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #f9f9f9;
}

.ai-image-description-item label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  color: #333;
}

.ai-image-description-item textarea {
  width: 100%;
  box-sizing: border-box;
}

/* Form Tabs */
.autoblogger-form-tabs {
  display: flex;
  border-bottom: 2px solid #ddd;
  margin: 20px 0 0 0;
  background: #f9f9f9;
  border-radius: 4px 4px 0 0;
}

.form-tab {
  padding: 12px 24px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  transition: all 0.2s;
  margin: 0;
  position: relative;
  top: 2px;
}

.form-tab:hover {
  background: #fff;
  color: #007cba;
}

.form-tab.active {
  background: #fff;
  color: #007cba;
  border-bottom-color: #007cba;
  font-weight: 600;
}

.form-tab-content {
  display: none;
  padding: 20px 0;
}

.form-tab-content.active {
  display: block;
}

/* Settings Accordion */
.settings-accordion {
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}

.settings-accordion.active {
  border-color: #007cba;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #f9f9f9;
  cursor: pointer;
  transition: background 0.2s;
  user-select: none;
}

.accordion-header:hover {
  background: #f0f0f0;
}

.settings-accordion.active .accordion-header {
  background: #e8f4f8;
  border-bottom: 1px solid #ddd;
}

.accordion-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.settings-accordion.active .accordion-header h4 {
  color: #007cba;
}

.accordion-toggle {
  font-size: 12px;
  color: #666;
  transition: transform 0.2s;
  display: inline-block;
}

.accordion-toggle.expanded {
  transform: rotate(180deg);
}

.accordion-content {
  padding: 20px;
  background: #fff;
}

.accordion-content .form-table {
  margin: 0;
}

.accordion-content .form-table th {
  width: 200px;
  padding: 10px 0;
}

.accordion-content .form-table td {
  padding: 10px 0;
}

/* Suggestions Modal */
.autoblogger-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.autoblogger-modal {
  background: #fff;
  border-radius: 8px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.3s ease-out;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

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

.autoblogger-modal-header {
  padding: 24px;
  border-bottom: 1px solid #ddd;
  background: #f9f9f9;
  border-radius: 8px 8px 0 0;
}

.autoblogger-modal-header h2 {
  margin: 0;
  font-size: 24px;
  color: #333;
  padding: 0;
  border: none;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.autoblogger-modal-header p {
  margin: 8px 0 0 0;
  color: #666;
  font-size: 14px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.autoblogger-modal-content {
  padding: 24px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.autoblogger-suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.autoblogger-suggestion {
  padding: 16px;
  border: 2px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.autoblogger-suggestion:hover {
  border-color: #007cba;
  background: #f8fcfe;
  box-shadow: 0 2px 8px rgba(0, 124, 186, 0.1);
}

.autoblogger-suggestion.auto {
  background: #e8f4f8;
  border-color: #007cba;
}

.autoblogger-suggestion.auto:hover {
  background: #d4ecf4;
  box-shadow: 0 2px 8px rgba(0, 124, 186, 0.2);
}

.autoblogger-suggestion.selected {
  border-color: #007cba;
  background: #e8f4f8;
  box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.autoblogger-suggestion-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.autoblogger-suggestion-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  background: #007cba;
  color: #fff;
  border-radius: 4px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.autoblogger-suggestion-description {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.autoblogger-modal-footer {
  padding: 20px 24px;
  border-top: 1px solid #ddd;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.autoblogger-modal-loading {
  text-align: center;
  padding: 40px 24px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.autoblogger-modal-loading .spinner {
  float: none;
  margin: 0 auto 20px auto;
}

.autoblogger-modal-loading p {
  color: #666;
  font-size: 16px;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 768px) {
  .autoblogger-modal {
    max-width: 95%;
    margin: 10px;
  }

  .autoblogger-modal-header {
    padding: 16px;
  }

  .autoblogger-modal-content {
    padding: 16px;
  }

  .autoblogger-modal-footer {
    padding: 16px;
  }

  .autoblogger-suggestion-title {
    font-size: 16px;
  }

  .autoblogger-suggestion-description {
    font-size: 13px;
  }
}

/* Fancy Loader */
.autoblogger-fancy-loader {
  text-align: center;
  padding: 60px 40px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 12px;
  margin: 20px 0;
}

.loader-spinner {
  width: 60px;
  height: 60px;
  margin: 0 auto 30px;
  border: 4px solid #e0e0e0;
  border-top: 4px solid #007cba;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.autoblogger-fancy-loader h3 {
  margin: 0 0 10px 0;
  font-size: 24px;
  color: #333;
  font-weight: 600;
}

.autoblogger-fancy-loader p {
  margin: 0;
  color: #666;
  font-size: 16px;
}

/* Suggestions Grid */
.autoblogger-suggestions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.autoblogger-suggestion-card {
  padding: 24px;
  border: 2px solid #ddd;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #fff;
  position: relative;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.autoblogger-suggestion-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #007cba, #00a0d2);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.autoblogger-suggestion-card:hover::before {
  transform: scaleX(1);
}

.autoblogger-suggestion-card:hover {
  border-color: #007cba;
  box-shadow: 0 8px 24px rgba(0, 124, 186, 0.15);
  transform: translateY(-4px);
}

.autoblogger-suggestion-card.auto {
  background: linear-gradient(135deg, #007cba 0%, #00a0d2 100%);
  color: #fff;
  border-color: #007cba;
}

.autoblogger-suggestion-card.auto .autoblogger-suggestion-title,
.autoblogger-suggestion-card.auto .autoblogger-suggestion-description {
  color: #fff;
}

.autoblogger-suggestion-card.selected {
  border-color: #46b450;
  background: #f0f9f1;
  box-shadow: 0 0 0 3px rgba(70, 180, 80, 0.1);
}

.autoblogger-suggestion-card .autoblogger-suggestion-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.autoblogger-suggestion-card .autoblogger-suggestion-description {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Progress Steps */
.autoblogger-progress-steps {
  margin: 30px 0;
}

.progress-step {
  display: flex;
  gap: 20px;
  padding: 24px;
  margin-bottom: 20px;
  background: #f9f9f9;
  border-left: 4px solid #ddd;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.progress-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #007cba, #00a0d2);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s ease;
}

.progress-step.active {
  background: #e8f4f8;
  border-left-color: #007cba;
  box-shadow: 0 4px 12px rgba(0, 124, 186, 0.1);
}

.progress-step.active::before {
  transform: scaleY(1);
}

.progress-step.completed {
  background: #f0f9f1;
  border-left-color: #46b450;
}

.progress-step.completed::before {
  background: linear-gradient(180deg, #46b450, #5cb85c);
  transform: scaleY(1);
}

.progress-step .step-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  border: 3px solid #ddd;
  transition: all 0.3s ease;
}

.progress-step.active .step-icon {
  border-color: #007cba;
  background: #007cba;
  animation: pulse 2s ease-in-out infinite;
}

.progress-step.active .step-icon .dashicons {
  color: #fff;
}

.progress-step.completed .step-icon {
  border-color: #46b450;
  background: #46b450;
}

.progress-step.completed .step-icon .dashicons {
  color: #fff;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 124, 186, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(0, 124, 186, 0);
  }
}

.progress-step .step-icon .dashicons {
  font-size: 28px;
  width: 28px;
  height: 28px;
  color: #666;
  transition: color 0.3s ease;
}

.progress-step .step-content {
  flex: 1;
}

.progress-step .step-content h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: #333;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.progress-step .step-description {
  margin: 0 0 8px 0;
  color: #666;
  font-size: 14px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.progress-step .step-status {
  font-size: 14px;
  font-weight: 600;
  color: #999;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.progress-step.active .step-status {
  color: #007cba;
}

.progress-step.completed .step-status {
  color: #46b450;
}

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* Hide/Show with Fade */
.fade-out {
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
}

/* Reload Suggestions Button */
#reload-suggestions-button {
  position: relative;
  overflow: hidden;
}

#reload-suggestions-button .dashicons {
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

#reload-suggestions-button:hover .dashicons {
  transform: rotate(180deg);
}

#reload-suggestions-button:active .dashicons {
  transform: rotate(360deg);
}

/* Subscription Usage Display */
#subscription-usage-card {
  position: relative;
}

#subscription-usage-card h2 {
  margin-top: 0;
}

#refresh-usage-btn {
  margin-left: 10px;
}

.subscription-info {
  padding: 0;
}

.usage-section {
  padding: 15px 0;
  border-bottom: 1px solid #ddd;
}

.usage-section:last-child {
  border-bottom: none;
}

.usage-section h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 16px;
  color: #1d2327;
}

.usage-section p {
  margin: 8px 0;
  line-height: 1.6;
}

.usage-section strong {
  color: #1d2327;
  font-weight: 600;
}

/* License Activation Screen */
.autoblogger-activation {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 40px 20px;
}

.activation-card {
  max-width: 600px;
  width: 100%;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 50px 40px;
  text-align: center;
}

.activation-logo {
  margin-bottom: 20px;
}

.activation-title {
  font-size: 36px;
  font-weight: 700;
  color: #2271b1;
  margin: 0 0 10px 0;
  line-height: 1.2;
}

.activation-subtitle {
  font-size: 18px;
  color: #666;
  margin: 0 0 30px 0;
  line-height: 1.5;
}

.activation-divider {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    #ddd 20%,
    #ddd 80%,
    transparent
  );
  margin: 30px 0;
}

.activation-info {
  font-size: 16px;
  color: #444;
  margin: 0 0 15px 0;
}

.activation-get-license {
  font-size: 16px;
  color: #444;
  margin: 0 0 30px 0;
}

.activation-get-license a {
  color: #2271b1;
  text-decoration: none;
  transition: color 0.2s;
}

.activation-get-license a:hover {
  color: #135e96;
  text-decoration: underline;
}

.activation-card .form-group {
  margin: 30px 0;
  text-align: left;
}

.activation-card .form-group label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.activation-card .form-group input {
  width: 100%;
  padding: 12px 15px;
  font-size: 14px;
  border: 2px solid #ddd;
  border-radius: 6px;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.activation-card .form-group input:focus {
  outline: none;
  border-color: #2271b1;
  box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.activation-card .submit {
  margin: 0;
  text-align: center;
}

.activation-card .button-hero {
  padding: 15px 40px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.2s;
}

.activation-card .button-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

#activation-status {
  margin-top: 20px;
}

#activation-status .notice {
  text-align: left;
}

/* Deactivation Button - Simple styling */
#deactivate-license-btn {
  color: #b32d2e;
}

#deactivate-license-btn:hover {
  color: #8a2424;
}

/* Readonly License Field */
#license-key[readonly] {
  background: #f5f5f5;
  color: #666;
  cursor: not-allowed;
}

/* Responsive adjustments for activation screen */
@media (max-width: 768px) {
  .activation-card {
    padding: 40px 30px;
  }

  .activation-title {
    font-size: 28px;
  }

  .activation-subtitle {
    font-size: 16px;
  }

  .activation-card .button-hero {
    padding: 12px 30px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .activation-card {
    padding: 30px 20px;
  }

  .activation-title {
    font-size: 24px;
  }

  .activation-subtitle {
    font-size: 14px;
  }
}

/* New Progress Bar Styles */
.autoblogger-progress-bar-container {
  margin: 30px 0;
}

.autoblogger-progress-bar-wrapper {
  width: 100%;
  height: 30px;
  background: #f0f0f0;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

#progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2271b1 0%, #135e96 100%);
  transition: width 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  position: relative;
  overflow: hidden;
}

#progress-bar-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

#progress-percentage {
  color: white;
  font-weight: bold;
  font-size: 14px;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#progress-status-label {
  margin-top: 15px;
  font-size: 15px;
  color: #555;
  text-align: center;
  min-height: 24px;
  font-weight: 500;
  transition: color 0.3s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

#status-messages-container {
  margin-top: 20px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

#action-buttons-container {
  margin-top: 30px;
  text-align: center;
}

#action-buttons-container .button {
  min-width: 200px;
  padding: 12px 24px;
  font-size: 16px;
}

/* Progress Title States */
#progress-title {
  transition: color 0.3s ease;
}

#generation-progress-container.error #progress-title {
  color: #dc3232;
}

#generation-progress-container.success #progress-title {
  color: #46b450;
}

#generation-progress-container.cancelled #progress-title {
  color: #dba617;
}

/* -------------------------------------------------------------------------- */
/* Croton rebrand: modern SaaS admin experience                               */
/* -------------------------------------------------------------------------- */
.autoblogger-admin {
  --croton-bg: #f7f7fb;
  --croton-card: #ffffff;
  --croton-card-soft: #fffaf5;
  --croton-text: #16131d;
  --croton-muted: #6e667b;
  --croton-border: #ece7f2;
  --croton-primary: #dc2626;
  --croton-primary-dark: #b91c1c;
  --croton-secondary: #fef2ec;
  --croton-success: #16a34a;
  --croton-warning: #d97706;
  --croton-danger: #dc2626;
  --croton-radius: 14px;
  --croton-shadow: 0 16px 40px rgba(18, 10, 36, 0.08);
  --croton-font: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  margin-top: 18px;
  padding: 0 22px;
  font-family: var(--croton-font);
  color: var(--croton-text);
}

.autoblogger-admin .autoblogger-tab-content {
  margin-top: 18px;
}

/* Hide global WordPress notices on this screen to keep hero clean.
   Inline notices generated inside plugin cards remain visible. */
.autoblogger-admin > .notice:not(.inline),
.autoblogger-admin > .updated:not(.inline),
.autoblogger-admin > .error:not(.inline),
.autoblogger-admin > .update-nag {
  display: none !important;
}

.autoblogger-page-hero .notice,
.autoblogger-page-hero .updated,
.autoblogger-page-hero .error,
.autoblogger-page-hero .update-nag {
  display: none !important;
}

.autoblogger-page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  background-color: #1f172c;
  background-image: linear-gradient(
    135deg,
    rgba(20, 12, 30, 0.72) 0%,
    rgba(44, 30, 54, 0.66) 45%,
    rgba(79, 35, 49, 0.6) 100%
  );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: calc(var(--croton-radius) + 2px);
  padding: 26px 28px;
  color: #fff;
  box-shadow: 0 20px 40px rgba(28, 16, 44, 0.28);
}

.autoblogger-page-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff0f0;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.autoblogger-page-hero h1 {
  margin: 10px 0 6px;
  color: #fff;
  font-size: 30px;
  line-height: 1.2;
}

.autoblogger-page-hero h1 strong {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.autoblogger-page-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  max-width: 740px;
}

.autoblogger-page-hero__content {
  max-width: 720px;
  flex: 1 1 280px;
}

.autoblogger-page-hero__banner {
  display: block;
  flex: 1 1 100%;
  width: 100%;
  margin-top: 14px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(16, 8, 28, 0.22);
}

.autoblogger-page-hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: auto;
}

.autoblogger-page-hero__cta.button {
  background: #fff;
  border-color: #fff;
  color: #111;
  box-shadow: none;
}

.autoblogger-page-hero__cta.button:hover,
.autoblogger-page-hero__cta.button:focus {
  background: #f5f5f5;
  border-color: #f5f5f5;
  color: #111;
}

@media (max-width: 782px) {
  .autoblogger-page-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .autoblogger-page-hero__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

.autoblogger-nav-tabs {
  margin: 18px 0 0 !important;
  border: 0;
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 12px;
  background: #f0edf5;
}

.autoblogger-nav-tabs .nav-tab {
  border: 0;
  margin: 0;
  border-radius: 9px;
  background: transparent;
  color: #4f4660;
  font-weight: 600;
  padding: 10px 14px;
}

.autoblogger-nav-tabs .nav-tab.nav-tab-active {
  background: #fff;
  color: #20172f;
  box-shadow: 0 3px 12px rgba(17, 8, 31, 0.09);
}

.autoblogger-admin .card,
.autoblogger-admin .autoblogger-surface-card {
  background: linear-gradient(180deg, var(--croton-card) 0%, #fefeff 100%);
  border: 1px solid var(--croton-border);
  border-radius: var(--croton-radius);
  box-shadow: var(--croton-shadow);
  padding: 24px;
}

.autoblogger-admin .card h2,
.autoblogger-admin .card h3,
.autoblogger-admin .card h4 {
  color: var(--croton-text);
}

.autoblogger-admin .card h2 {
  border-bottom: 1px solid var(--croton-border);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.autoblogger-admin p,
.autoblogger-admin .description {
  color: var(--croton-muted);
}

.autoblogger-admin .button {
  border-radius: 10px;
  padding: 8px 14px;
  min-height: 38px;
  font-weight: 600;
  border-color: #e1d9ec;
}

.autoblogger-admin .button-primary {
  background: linear-gradient(
    135deg,
    var(--croton-primary) 0%,
    var(--croton-primary-dark) 100%
  );
  border-color: var(--croton-primary-dark);
  color: #fff;
  box-shadow: 0 8px 18px rgba(185, 28, 28, 0.22);
}

.autoblogger-admin .button-primary:hover,
.autoblogger-admin .button-primary:focus {
  background: linear-gradient(135deg, #ef4444 0%, var(--croton-primary) 100%);
  border-color: var(--croton-primary);
  color: #fff;
}

.autoblogger-admin .button-secondary {
  background: #fff;
}

.autoblogger-actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.autoblogger-admin input[type="text"],
.autoblogger-admin input[type="url"],
.autoblogger-admin input[type="number"],
.autoblogger-admin select,
.autoblogger-admin textarea {
  border: 1px solid #ddd4ea;
  border-radius: 10px;
  padding: 8px 10px;
  min-height: 38px;
  box-shadow: none;
}

.autoblogger-admin textarea {
  min-height: 90px;
}

.autoblogger-admin input:focus,
.autoblogger-admin select:focus,
.autoblogger-admin textarea:focus {
  border-color: #d946ef;
  box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.12);
}

.autoblogger-form-tabs {
  border: 1px solid var(--croton-border);
  background: #f5f3f9;
  padding: 6px;
  gap: 6px;
  border-radius: 12px;
}

.autoblogger-form-tabs .form-tab {
  top: 0;
  border-radius: 9px;
  border-bottom: 0;
  font-weight: 600;
}

.autoblogger-form-tabs .form-tab.active {
  background: #fff;
  color: #2b1f3f;
  box-shadow: 0 3px 10px rgba(28, 16, 44, 0.08);
}

.autoblogger-wizard-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 6px;
}

.autoblogger-wizard-step {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--croton-border);
  background: #faf8fd;
  border-radius: 10px;
  padding: 10px 12px;
}

.autoblogger-wizard-step .wizard-index {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #e9e3f2;
  color: #4f4660;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.autoblogger-wizard-step.is-active .wizard-index {
  background: linear-gradient(135deg, #f97316 0%, var(--croton-primary) 100%);
  color: #fff;
}

.autoblogger-wizard-step .wizard-label {
  font-size: 13px;
  color: #443857;
  font-weight: 600;
}

.settings-accordion {
  border: 1px solid var(--croton-border);
  border-radius: 12px;
  margin-bottom: 12px;
}

.accordion-header {
  background: #fbfafe;
}

.settings-accordion.active .accordion-header {
  background: var(--croton-secondary);
  border-bottom-color: var(--croton-border);
}

.accordion-header h4 {
  color: #261a35;
}

.autoblogger-suggestions-grid {
  gap: 14px;
}

.autoblogger-suggestion-card {
  border: 1px solid var(--croton-border);
  border-radius: 14px;
  padding: 18px;
}

.autoblogger-suggestion-card:hover {
  border-color: #f97316;
  box-shadow: 0 14px 24px rgba(22, 10, 32, 0.1);
}

.autoblogger-suggestion-card.auto {
  background: linear-gradient(135deg, #1f172c 0%, #4f2331 100%);
  border-color: transparent;
}

.autoblogger-suggestion-badge {
  background: #f97316;
}

#generation-progress-container .card {
  background: linear-gradient(180deg, #ffffff 0%, #fffaf7 100%);
}

.autoblogger-progress-bar-wrapper {
  border: 1px solid #ebdde6;
  background: #f8eef4;
  height: 28px;
}

#progress-status-label {
  font-weight: 600;
  color: #4f4660;
}

.autoblogger-admin .wp-list-table {
  border: 1px solid var(--croton-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(17, 8, 31, 0.06);
}

.autoblogger-admin .wp-list-table thead th {
  background: #faf7fd;
  color: #3f3254;
  border-bottom: 1px solid var(--croton-border);
}

.autoblogger-admin .wp-list-table.striped > tbody > :nth-child(odd) {
  background: #fcfbfe;
}

.autoblogger-activation .activation-card {
  background: linear-gradient(180deg, #ffffff 0%, #fffaf6 100%);
  border: 1px solid var(--croton-border);
  border-radius: 18px;
  box-shadow: 0 24px 46px rgba(19, 10, 32, 0.12);
}

.autoblogger-activation .activation-title {
  color: #2b1d3d;
}

.autoblogger-activation .activation-subtitle {
  color: #665b78;
}

@media (max-width: 960px) {
  .autoblogger-wizard-steps {
    grid-template-columns: 1fr;
  }
}
