.aiomatic-admin-shell
{
   padding-right: 20px;
}
.aiomatic-admin-shell {
   margin: 24px 0 32px;
   color: #f9fafb;
   font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.aiomatic-admin-hero {
   position: relative;
   padding: 24px 28px;
   border-radius: 12px;
   background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
   border: 1px solid rgba(148, 163, 184, 0.1);
   overflow: hidden;
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 20px;
}
.aiomatic-white
{
   color: white;
}
.cr_darkred
{
   color: darkred;
}
.cr_aqua
{
   color:aquamarine;
}
.aiomatic-white a:hover{
   text-decoration: none;
}
.aiomatic-admin-hero::before {
   content: "";
   position: absolute;
   inset: 0;
   background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
   opacity: 1;
   pointer-events: none;
}
.aiomatic-admin-identity,
.aiomatic-admin-meta {
   position: relative;
   z-index: 1;
}
.aiomatic-admin-identity {
   display: flex;
   align-items: center;
   gap: 18px;
}
.aiomatic-admin-logo {
   position: relative;
   width: 56px;
   height: 56px;
   border-radius: 10px;
   padding: 10px;
   background: rgba(30, 41, 59, 0.6);
   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(148, 163, 184, 0.15);
   display: flex;
   align-items: center;
   justify-content: center;
   overflow: hidden;
}
.aiomatic-admin-logo img {
   width: 38px;
   height: 38px;
   object-fit: contain;
   filter: brightness(1.1);
   transition: transform 200ms ease-out;
}
.aiomatic-admin-shell:hover .aiomatic-admin-logo img {
   transform: scale(1.02);
}
.aiomatic-admin-title {
   display: flex;
   flex-direction: column;
   gap: 6px;
}
.aiomatic-admin-title-main {
   font-size: 22px;
   line-height: 1.3;
   font-weight: 600;
   letter-spacing: -0.01em;
   color: #f1f5f9;
}
.aiomatic-admin-title-sub {
   font-size: 11px;
   text-transform: uppercase;
   letter-spacing: 0.1em;
   color: rgba(203, 213, 225, 0.8);
   font-weight: 500;
}
.aiomatic-version-pill {
   position: relative;
   top: -5px;
   display: inline-flex;
   align-items: center;
   gap: 6px;
   padding: 4px 10px;
   margin-left: 8px;
   border-radius: 6px;
   background: rgba(30, 41, 59, 0.7);
   border: 1px solid rgba(148, 163, 184, 0.2);
   font-size: 11px;
   font-weight: 500;
   color: #cbd5e1;
   letter-spacing: 0.02em;
}
.aiomatic-version-pill-dot {
   width: 6px;
   height: 6px;
   border-radius: 50%;
   background: #10b981;
   box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}
.aiomatic-status-pill--connected {
   background: rgba(16, 185, 129, 0.12);
   border-color: rgba(16, 185, 129, 0.35);
   color: #34d399;
}
.aimogen-dep-notice-actions {
   margin-top: 4px;
   font-size: 12px;
}
.aimogen-dep-notice-actions span {
   color: #8a8f98;
}
.aiomatic-admin-meta {
   display: flex;
   flex-direction: column;
   align-items: flex-end;
   gap: 6px;
   min-width: 180px;
}
.aiomatic-admin-meta-row {
   display: flex;
   align-items: center;
   gap: 10px;
   font-size: 11px;
   text-transform: uppercase;
   letter-spacing: 0.08em;
   color: rgba(203, 213, 225, 0.7);
   font-weight: 500;
}
.aiomatic-admin-badge {
   padding: 5px 12px;
   border-radius: 6px;
   background: rgba(30, 41, 59, 0.6);
   border: 1px solid rgba(148, 163, 184, 0.2);
   color: #e2e8f0;
   font-size: 11px;
   font-weight: 500;
   display: inline-flex;
   align-items: center;
   gap: 6px;
   letter-spacing: 0.02em;
}
.aiomatic-admin-badge-dot {
   width: 6px;
   height: 6px;
   border-radius: 50%;
   background: #3b82f6;
}
.aiomatic-admin-layout {
   margin-top: 16px;
   display: grid;
   grid-template-columns: minmax(0, 230px) minmax(0, 1fr);
   gap: 14px;
   align-items: flex-start;
}
.aiomatic-admin-sidebar {
   background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
   border-radius: 12px;
   padding: 16px 12px;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
   border: 1px solid rgba(148, 163, 184, 0.1);
   position: relative;
   overflow: hidden;
}
.aiomatic-admin-sidebar::before {
   content: "";
   position: absolute;
   inset: 0;
   background: linear-gradient(135deg, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
   opacity: 1;
   pointer-events: none;
}
.aiomatic-admin-sidebar-inner {
   position: relative;
   z-index: 1;
   color: #e5e7eb;
}
.aiomatic-sidebar-heading {
   font-size: 11px;
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 0.1em;
   color: #cbd5e1;
   margin: 0 0 12px 0;
   text-align: center;
   align-items: center;
   gap: 8px;
}
.aiomatic-sidebar-heading span {
   display: none;
}
.aiomatic-sidebar-nav {
   margin-top: 4px;
   display: flex;
   flex-direction: column;
   gap: 6px;
}
.nav-tab-wrapper {
   margin-top: 4px;
   display: flex;
   flex-direction: column;
   gap: 6px;
}
.aiomatic-sidebar-nav .aiomatic-nav-tab {
   display: flex;
   align-items: center;
   gap: 10px;
   padding: 10px 12px;
   border-radius: 8px;
   font-size: 13px;
   font-weight: 500;
   color: #cbd5e1;
   text-decoration: none;
   position: relative;
   overflow: hidden;
   border: 1px solid transparent;
   background: rgba(30, 41, 59, 0.4);
   transition:
      background 150ms ease-out,
      border-color 150ms ease-out,
      color 150ms ease-out;
}
.aiomatic-sidebar-nav .aiomatic-nav-tab::before {
   display: none;
}
.aiomatic-sidebar-nav .aiomatic-nav-tab:hover {
   background: rgba(30, 41, 59, 0.7);
   border-color: rgba(59, 130, 246, 0.3);
   color: #e2e8f0;
}
.aiomatic-sidebar-nav .aiomatic-nav-tab:hover::before {
   display: none;
}
.aiomatic-sidebar-nav .aiomatic-nav-tab.aiomatic-nav-tab-active,
.aiomatic-sidebar-nav .aiomatic-nav-tab.nav-tab-active {
   background: rgba(59, 130, 246, 0.15)!important;
   border-color: rgba(59, 130, 246, 0.4)!important;
   color: #e2e8f0!important;
   font-weight: 600;
}
.aiomatic-sidebar-icon {
   width: 18px;
   height: 18px;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   color: #94a3b8;
   font-size: 14px;
   flex-shrink: 0;
   opacity: 0.7;
}
.aiomatic-sidebar-nav .aiomatic-nav-tab.aiomatic-nav-tab-active .aiomatic-sidebar-icon,
.aiomatic-sidebar-nav .aiomatic-nav-tab.nav-tab-active .aiomatic-sidebar-icon {
   color: #60a5fa!important;
   opacity: 1;
}
.aiomatic-sidebar-label {
   position: relative;
   z-index: 1;
   white-space: nowrap;
}
.aiomatic-sidebar-footer {
   margin-top: 16px;
   padding: 12px;
   border-radius: 8px;
   background: rgba(30, 41, 59, 0.5);
   border: 1px solid rgba(148, 163, 184, 0.15);
   display: flex;
   flex-direction: column;
   gap: 6px;
   font-size: 11px;
   color: #94a3b8;
   line-height: 1.5;
}
.aiomatic-sidebar-footer strong {
   color: #e5e7eb;
   font-weight: 550;
}
.aiomatic-sidebar-footer a {
   color: #60a5fa;
   text-decoration: none;
   font-weight: 500;
}
.aiomatic-sidebar-footer a:hover {
   color: #93c5fd;
   text-decoration: underline;
}
.aiomatic-admin-main {
   background: #ffffff;
   border-radius: 12px;
   padding: 24px;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
   border: 1px solid #e2e8f0;
   overflow: hidden;
}
.aiomatic-admin-main .aiomatic-inner-wrapper.settings-dashboard {
   background: transparent;
   border-radius: 0;
   padding: 0;
   box-shadow: none;
}
.aiomatic-admin-main h3 {
   font-size: 18px;
   color: #1e293b;
   letter-spacing: -0.01em;
   font-weight: 600;
   margin-top: 0;
}
.aiomatic-admin-main p {
   color: #475569;
   font-size: 14px;
   line-height: 1.6;
}
.aiomatic-admin-main ul,
.aiomatic-admin-main ol {
   color: #475569;
   font-size: 14px;
   line-height: 1.6;
}
.aiomatic-admin-main li {
   color: #475569;
}
.aiomatic-admin-main a {
   color: #2563eb;
}
.aiomatic-admin-main a:hover {
   color: #1d4ed8;
}
.aiomatic-admin-main .aiomatic-settings-desc {
   color: #64748b;
   font-size: 14px;
}
.aiomatic-admin-main table.widefat {
   background: #ffffff;
   border-radius: 8px;
   overflow: hidden;
   border: 1px solid #e2e8f0;
   box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
   border-collapse: separate;
   border-spacing: 0;
   margin: 20px 0;
}
.aiomatic-admin-main table.widefat tr td,
.aiomatic-admin-main table.widefat tr th {
   background: transparent;
}
.aiomatic-admin-main table.widefat th {
   color: #1e293b;
   padding: 16px 18px;
   font-size: 13px;
   font-weight: 600;
   vertical-align: top;
}
.aiomatic-admin-main table.widefat td {
   color: #475569;
   padding: 16px 18px;
}
.aiomatic-admin-main table.widefat .aiomatic-title-holder td {
   padding: 12px 18px;
   border-bottom: 1px solid #e2e8f0;
   background: #f8fafc;
}
.aiomatic-admin-main .button.button-non-primary {
   padding: 8px 20px;
}
.aiomatic-admin-main .button.button-primary {
   border-radius: 6px;
   padding: 8px 20px;
   font-weight: 600;
   letter-spacing: 0;
   text-transform: none;
   box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}
.aiomatic-admin-main .button.button-secondary,
.aiomatic-admin-main .button-secondary {
   border-radius: 6px;
   font-weight: 500;
}
.aiomatic-admin-main .aiomatic-upgrade-cta {
   margin-top: 12px;
   display: inline-flex;
   align-items: center;
   gap: 10px;
   padding: 12px 24px;
   border-radius: 8px;
   background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
   border: 1px solid #1e40af;
   box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
   color: #ffffff;
   font-size: 13px;
   font-weight: 600;
   letter-spacing: 0.01em;
   text-decoration: none;
   position: relative;
   transition: all 200ms ease-out;
}
.aiomatic-admin-main .aiomatic-upgrade-cta::before {
   display: none;
}
.aiomatic-admin-main .aiomatic-upgrade-cta:hover {
   color: #ffffff;
   background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
   box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
   transform: translateY(-1px);
}
.aiomatic-admin-main .aiomatic-upgrade-cta-icon {
   width: 18px;
   height: 18px;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   font-size: 14px;
   opacity: 0.9;
}
.aiomatic-admin-main .aiomatic-upgrade-cta-label {
   display: flex;
   flex-direction: column;
   align-items: flex-start;
   line-height: 1.15;
}
.aiomatic-admin-main .aiomatic-upgrade-cta-label span:first-child {
   font-size: 11px;
   text-transform: uppercase;
   opacity: 0.9;
}
.aiomatic-admin-main .aiomatic-upgrade-cta-label span:last-child {
   font-size: 13px;
   font-weight: 700;
}
.aiomatic-admin-main .aiomatic-title-holder .aiomatic-inner-title {
   font-size: 15px;
   letter-spacing: -0.01em;
   text-transform: none;
   color: #1e293b;
   font-weight: 600;
}
.aiomatic-admin-main .aiomatic-switch .aiomatic-slider {
   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.aiomatic-switch input:disabled + .aiomatic-slider {
    cursor: not-allowed;
    background: linear-gradient(180deg, #2a3446, #1f2736);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.04),
        inset 0 2px 6px rgba(0,0,0,.35);
    opacity: .6;
}

.aiomatic-switch input:disabled + .aiomatic-slider::before {
    background: linear-gradient(180deg, #cbd5e1, #94a3b8);
    box-shadow:
        0 1px 3px rgba(0,0,0,.2),
        inset 0 0 0 1px rgba(0,0,0,.12);
}

.aiomatic-switch input:disabled:checked + .aiomatic-slider {
    background: linear-gradient(180deg, #475569, #334155);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.05);
}

.aiomatic-switch input:disabled:focus + .aiomatic-slider {
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.05);
}
.aiomatic-switch input:disabled {
    opacity: 0;
}
.aiomatic-admin-main textarea {
   border-radius: 6px;
}
.aiomatic-admin-main input:focus,
.aiomatic-admin-main textarea:focus,
.aiomatic-admin-main select:focus {
   border-color: #3b82f6;
   box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
   outline: none;
}
.aiomatic-admin-main .aiomatic-float-option.dashboard {
   background: #f8fafc;
}
.aiomatic-admin-main .crsubmit input[type="submit"] {
   box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}
.aiomatic-admin-shell .aiomatic-tab-content {
   margin-top: 4px;
}
@media (max-width: 1120px) {
   .aiomatic-admin-layout {
      grid-template-columns: minmax(0, 1fr);
   }
   .aiomatic-admin-sidebar {
      order: 1;
   }
   .aiomatic-admin-main {
      order: 2;
   }
}
@media (max-width: 782px) {
   .aiomatic-admin-hero {
      flex-direction: column;
      align-items: flex-start;
   }
   .aiomatic-admin-meta {
      align-items: flex-start;
   }
   .aiomatic-sidebar-nav .aiomatic-nav-tab {
      border-radius: 12px;
   }
   .aiomatic-admin-main {
      padding: 14px 12px 16px;
   }
}
.ui-sortable-handle
{
   color: white;
}
.postbox-header .hndle
{
   display: block;
   text-align: center;
}
.aiomatic-switch {
   position: relative;
   display: inline-block;
   width: 46px;
   height: 24px;
}
.aiomatic-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.aiomatic-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: linear-gradient(180deg, #1f2f4a, #162238);
    border-radius: 24px;
    transition: all .25s ease;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.aiomatic-slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background: linear-gradient(180deg, #ffffff, #e6ebf2);
    border-radius: 50%;
    transition: all .25s ease;
    box-shadow:
        0 2px 6px rgba(0,0,0,.25),
        inset 0 0 0 1px rgba(0,0,0,.08);
}
.aiomatic-switch input:checked + .aiomatic-slider {
    background: linear-gradient(180deg, #2563eb, #1e40af);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.12),
        0 0 0 2px rgba(37,99,235,.15);
}
.aiomatic-switch input:checked + .aiomatic-slider::before {
    transform: translateX(22px);
    background: linear-gradient(180deg, #ffffff, #f1f5f9);
}
.aiomatic-switch input:focus + .aiomatic-slider {
    outline: none;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.15),
        0 0 0 3px rgba(37,99,235,.25);
}
.codemainfzr {
    position: relative;
    display: inline-block;
}
.codemainfzr select.actions {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    min-width: 190px;
    padding: 8px 40px 8px 14px;

    font-size: 13px;
    line-height: 1.4;
    color: #0f172a;

    background:
        linear-gradient(180deg, #ffffff, #f6f8fc);
    border: 1px solid #c7d2fe;
    border-radius: 8px;

    box-shadow:
        0 1px 2px rgba(0,0,0,.06),
        inset 0 0 0 1px rgba(255,255,255,.4);

    cursor: pointer;
    transition: all .2s ease;
}
.codemainfzr select.actions:hover {
    border-color: #93c5fd;
}
.codemainfzr select.actions:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow:
        0 0 0 3px rgba(37,99,235,.25),
        inset 0 0 0 1px rgba(255,255,255,.5);
}
.codemainfzr::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 14px;
    width: 0;
    height: 0;
    pointer-events: none;
    transform: translateY(-50%);

    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #1e3a8a;
}
.codemainfzr select.actions:disabled {
    opacity: .6;
    cursor: not-allowed;
}
.codemainfzr select.actions option {
    padding: 8px;
}
.aimogen_max_200
{
   max-width: 200px;
}
.aimogen_right
{
   text-align: right;
}
.wp-core-ui select.disabled, .wp-core-ui select:disabled {
   background-image: none;
}
.cr_server_stat
{
   color: black;
}
.aiomatic-full-width
{
   width: 100%;
}
.cr_main_table_nowr
{
   color:black;
}
.aiomatic-admin-main
{
   color:black;
}
.aiomatic-admin-layout
{
   color:black;
}
.codemainfzr
{min-width: 150px;}
/* Container */
.codemainfzr {
  position: relative;
  display: inline-block;
}

/* Select base */
.codemainfzr select.actions {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  min-width: 190px;
  height: 38px;

  padding: 8px 38px 8px 14px;

  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;

  color: #1f2a36;
  background-color: #f2f6fa;

  border: 1px solid #3f6f8f;
  border-radius: 8px;

  box-shadow: 0 1px 2px rgba(0,0,0,.06);
  cursor: pointer;

  transition:
    background-color .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

/* Hover */
.codemainfzr select.actions:hover {
  background-color: #eaf1f7;
  border-color: #355e7c;
}

/* Focus */
.codemainfzr select.actions:focus {
  outline: none;
  background-color: #ffffff;
  border-color: #2f5874;
  box-shadow: 0 0 0 2px rgba(63,111,143,.15);
}

/* Disabled */
.codemainfzr select.actions:disabled {
  background-color: #eef2f6;
  color: #8a97a6;
  border-color: #cfd8e3;
  cursor: not-allowed;
  box-shadow: none;
}

/* Custom arrow */
.codemainfzr::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  pointer-events: none;

  width: 0;
  height: 0;

  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #3f6f8f;
}

/* Arrow hover sync */
.codemainfzr:hover::after {
  border-top-color: #355e7c;
}

/* Arrow focus sync */
.codemainfzr select.actions:focus + .codemainfzr::after {
  border-top-color: #2f5874;
}
.aimogen-border
{
   border: 1px solid darkgray;
}

/* "Test API key" buttons next to provider key fields */
.aimogen-key-test-wrap {
   display: flex;
   align-items: center;
   flex-wrap: wrap;
   gap: 10px;
   margin-top: 8px;
}
.aimogen-key-test-btn.button {
   display: inline-flex;
   align-items: center;
   gap: 6px;
}
.aimogen-key-test-btn.button::before {
   content: "\1F50C"; /* electric plug */
   font-size: 13px;
   line-height: 1;
}
.aimogen-key-test-result {
   font-size: 13px;
   font-weight: 600;
   line-height: 1.4;
   word-break: break-word;
}
.aimogen-key-test-result.is-testing {
   color: #646970;
   font-weight: 500;
}
.aimogen-key-test-result.is-ok {
   color: #007a4d;
}
.aimogen-key-test-result.is-error {
   color: #b32d2e;
}