/* ====================================================================== */
/* General Translation Input                                               */
/* ====================================================================== */

#awxct_translate_language {
  width: auto;
  max-width: 100%;
  min-width: 120px;
  display: block;
}

.awxct-remove-translation {
  margin-top: 8px;
  display: inline-block;
}

/* ====================================================================== */
/* Admin Menu Icon                                                         */
/* ====================================================================== */

#toplevel_page_anywarex-clone-translate .wp-menu-image img {
  display: none !important;
}

#toplevel_page_anywarex-clone-translate .wp-menu-image {
  background: url("../images/logo/awxct-icon-20x20-gray.png") center/20px no-repeat;
}

#toplevel_page_anywarex-clone-translate:hover .wp-menu-image,
#toplevel_page_anywarex-clone-translate.wp-has-current-submenu .wp-menu-image {
  background-image: url("../images/logo/awxct-icon-20x20-blue.png");
}

/* ====================================================================== */
/* Welcome / Overview page                                                 */
/* ====================================================================== */

.awxct-welcome-page .awxct-tab-content {
  margin-top: 20px;
}

.awxct-welcome-page pre {
  background: #f5f5f5;
  padding: 10px 12px;
  border-radius: 4px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.4;
}

.awxct-welcome-page h2 {
  margin-top: 25px;
}

/* ====================================================================== */
/* Comparison Table (Improved)                                            */
/* ====================================================================== */

.awxct-compare-table {
  margin-top: 15px;
  max-width: 1000px;
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e2e4e7;
  border-radius: 6px;
  overflow: hidden; /* Rounded corners */
  background: #fff;
  font-size: 13px;
}

/* Header */
.awxct-compare-table thead th {
  background: #f5f7fa;
  font-weight: 600;
  padding: 10px 12px;
  border-bottom: 1px solid #dde1e6;
}

.awxct-compare-table thead th:first-child {
  text-align: left;
}

/* Cells */
.awxct-compare-table tbody th,
.awxct-compare-table tbody td {
  padding: 8px 12px;
  border-bottom: 1px solid #f0f0f0;
  text-align: center;
  vertical-align: middle;
}

/* Left column (Feature names) */
.awxct-compare-table tbody th:first-child,
.awxct-compare-table tbody td:first-child {
  text-align: left;
  width: 38%;
  font-weight: 500;
}

/* Zebra stripes */
.awxct-compare-table tbody tr:nth-child(odd) {
  background: #fcfcfd;
}
.awxct-compare-table tbody tr:nth-child(even) {
  background: #f8fafc;
}



/* Wrapper to align info boxes with the table width */
.awxct-compare-table-wrap {
  max-width: 1000px;
  width: 100%;
}

/* "Good to know" box (aligned to the comparison table) */
.awxct-good-to-know {
  margin-top: 12px;
  padding: 12px 14px;
  width: 100%;
  box-sizing: border-box;
  background: #e7f5ea; /* soft green */
  border-left: 4px solid #2e7d32;
  border-radius: 6px;
  color: #1f3d2b;
}

/* Title in green */
.awxct-good-to-know__title {
  color: #2e7d32;
}

/* Icons */
.awxct-compare-table .awxct-yes {
  color: #2e7d32;
  font-weight: 600;
  font-size: 14px;
}

.awxct-compare-table .awxct-no {
  color: #b71c1c;
  font-weight: 600;
  font-size: 14px;
}

/* ====================================================================== */
/* Shared Layout Blocks (Benefits + Quick Start)                           */
/* ====================================================================== */

/* Shared “lead text” on top of sections */
.awxct-welcome-page .awxct-lead {
  max-width: 900px;
  font-size: 14px;
  line-height: 1.6;
  margin: 10px 0 18px;
  color: #444;
}

/* Shared column layout */
.awxct-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1100px;
  margin: 10px 0 15px;
}

.awxct-column {
  flex: 1 1 280px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.awxct-column h3 {
  margin: 0 0 8px;
}

.awxct-column ul,
.awxct-column ol {
  margin-top: 6px;
}

.awxct-column li {
  margin-bottom: 6px;
  line-height: 1.5;
}

/* ====================================================================== */
/* Benefits – Marketing Style Blocks                                       */
/* ====================================================================== */

/* Shared info box (also reused by Quick Start) */
.awxct-info-box,
.awxct-qs-info {
  background: #e8f4ff;
  border-left: 4px solid #2f81f7;
  padding: 12px 15px;
  border-radius: 4px;
  max-width: 900px;
}

.awxct-info-box {
  margin-bottom: 22px;
}

.awxct-qs-info {
  margin-bottom: 20px;
}

/* Elementor highlight box */
.awxct-elementor-box {
  background: #fff2f7;
  border: 1px solid #ff8abf;
  padding: 12px 15px;
  border-radius: 6px;
  margin-bottom: 25px;
  max-width: 900px;
}

.awxct-elementor-badge {
  background: #ff4fa6;
  color: #fff;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-right: 8px;
}

/* Column top color accents */
.awxct-column.blue-top {
  border-top: 3px solid #2f81f7;
}
.awxct-column.pink-top {
  border-top: 3px solid #ff4fa6;
}
.awxct-column.green-top {
  border-top: 3px solid #2e7d32;
}

/* Color headings */
.awxct-heading-blue {
  color: #2f6fde;
}
.awxct-heading-pink {
  color: #e91e63;
}
.awxct-heading-green {
  color: #2e7d32;
}

/* Elementor inline icon */
.awxct-inline-icon {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  padding-bottom: 2px;
  opacity: 0.95;
}

/* ====================================================================== */
/* Quick Start – Steps & Optional Blocks                                  */
/* ====================================================================== */

.awxct-qs-step {
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #e0e0e0;
}

.awxct-qs-step-number {
  display: inline-block;
  background: #2f81f7;
  color: #fff;
  width: 22px;
  height: 22px;
  font-size: 12px;
  line-height: 22px;
  border-radius: 50%;
  text-align: center;
  margin-right: 6px;
  font-weight: 600;
}

.awxct-qs-optional {
  border-top: 3px solid #e91e63;
}

.awxct-qs-optional h3 {
  color: #e91e63;
  margin-top: 0;
}

.awxct-qs-optional ul li {
  margin-bottom: 6px;
}

/* Quick Start screenshot image */
.awxct-qs-screenshot {
  margin-top: 10px;
  margin: 12px 0 12px 32px;
  border: 1px solid #ddd;
  border-radius: 4px;
  max-width: 100%;
  height: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* --------------------------------------- */
/* AWX Syntax Highlighting (admin docs)    */
/* --------------------------------------- */

pre.awxct-code {
  background: #1e1e1e; /* VSCode dark */
  color: #dcdcdc;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.55;
  border: 1px solid #333;
  font-family: Consolas, Monaco, "Courier New", monospace;
}

/* Code text */
pre.awxct-code code {
  font-family: inherit;
  color: #dcdcdc;
}

/* Selectors (e.g. .class, #id) */
pre.awxct-code code .selector {
  color: #4ec9b0;
}

/* Properties (e.g. background, color) */
pre.awxct-code code .property {
  color: #9cdcfe;
}

/* Values (e.g. #fff, 10px, rgba...) */
pre.awxct-code code .value {
  color: #ce9178;
}

/* Comments */
pre.awxct-code code .comment {
  color: #6a9955;
  font-style: italic;
}

/* ====================================================================== */
/* Welcome Page – YouTube Video                                           */
/* ====================================================================== */

.awxct-welcome-video {
  width: 460px; /* feste angenehme Breite */
  max-width: 100%; /* falls Bildschirm kleiner ist */
  margin: 0 0 25px 0; /* Abstand unten */
}

.awxct-welcome-video-inner {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.awxct-welcome-video-inner iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Switcher controls + preview layout */
.awxct-plg-ct-switcher-layout {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.awxct-plg-ct-switcher-controls {
  min-width: 260px;
}
.awxct-plg-ct-switcher-layout .awxct-plg-ct-switcher-preview {
  margin-top: 0;
}
.awxct-plg-ct-switcher-controls .awxct-plg-ct-select {
  margin-left: 4px;
}

/* Mobile: stack */
@media (max-width: 782px) {
  .awxct-plg-ct-switcher-layout {
    flex-direction: column;
    gap: 12px;
  }
  .awxct-plg-ct-switcher-controls {
    min-width: 0;
    width: 100%;
  }
}

/* Switcher preview (admin-only) */
.awxct-plg-ct-switcher-preview {
  max-width: 360px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #dcdcde;
  border-radius: 6px;
  background: #fff;
}
.awxct-plg-ct-switcher-preview__title {
  font-weight: 600;
  margin-bottom: 4px;
}
.awxct-plg-ct-switcher-preview__note {
  font-size: 12px;
  opacity: 0.85;
  margin-bottom: 8px;
}
.awxct-plg-ct-switcher-preview__btn {
  display: inline-flex;
  align-items: center;
  gap: 0px;
  border: 1px solid #c3c4c7;
  background: #f6f7f7;
  border-radius: 999px;
  padding: 6px 10px;
  cursor: default;
}
.awxct-plg-ct-switcher-preview__list {
  list-style: none;
  margin: 8px 0 0;
  padding: 6px 0;
  border: 1px solid #c3c4c7;
  border-radius: 10px;
  max-width: 220px;
  background: #fff;
}
.awxct-plg-ct-switcher-preview__item {
  padding: 6px 10px;
  line-height: 1.3;
}
.awxct-plg-ct-switcher-preview__item + .awxct-plg-ct-switcher-preview__item {
  border-top: 1px solid #f0f0f1;
}

.awxct-plg-ct-switcher-preview .fi {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06) inset;
  flex: 0 0 auto;
  margin-right: 6px;
}
.awxct-plg-ct-switcher-preview__txt {
  display: inline-block;
  vertical-align: middle;
}

/* Small helper text under feature names in the comparison table */
.awxct-compare-desc {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: #646970;
}


/* ====================================================================== */
/* Language Switcher – Custom CSS field                                   */
/* ====================================================================== */

.awxct-switcher-css-field {
  max-width: 980px;
}

.awxct-switcher-css-field__hint {
  margin: 0 0 10px;
  padding: 10px 12px;
  background: #eef6ff;
  border-left: 4px solid #2f81f7;
  border-radius: 4px;
  color: #1d2327;
}

.awxct-switcher-css-field__hint a {
  font-weight: 600;
}

.awxct-switcher-css-field__editor {
  max-width: 980px;
}

textarea.awxct-switcher-css-field__textarea {
  width: 100%;
  min-height: 260px;
  resize: vertical;
  background: #1e1e1e;
  color: #eaeaea;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 12px;
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.18);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea.awxct-switcher-css-field__textarea::placeholder {
  color: #9aa0a6;
  opacity: 1;
}

textarea.awxct-switcher-css-field__textarea:focus {
  border-color: #6aa9ff;
  box-shadow: 0 0 0 1px rgba(106,169,255,.3);
  outline: none;
}
