/**
 * FalconX 8 — Metronic demo6 ufak override'lar.
 * Metronic styles.css (purge'lu) EN SON yuklenir; bu dosya onun ardindan gelir.
 *
 * Marka rengi: Metronic'in `--primary` token'i AGRIPLUS GLOBAL'in logo yesili
 * (#2f7d1f — site style.css::--green ile ayni) ile ezilir. Vendor dosyasina
 * dokunulmaz; butonlar, linkler, aktif menu ve focus ring bu degiskeni kullanir.
 */
:root {
    --primary: #2f7d1f;
    --primary-foreground: #ffffff;
}
.dark {
    --primary: #3e8f22;
    --primary-foreground: #ffffff;
}

/* Marka isareti (logo placeholder kare — site_logo ayari bosken gosterilir) */
.aq-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 0.625rem;
    background: var(--color-primary, #2f7d1f);
    color: #fff;
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1;
    flex-shrink: 0;
}
.aq-brand-mark--sm {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
    border-radius: 0.5rem;
}

/* RTL: keenicons ok yonleri ve menu hizalama ufak duzeltme */
[dir="rtl"] .aq-flip-rtl {
    transform: scaleX(-1);
}


/* Ikon secici (Sayfalar -> Dropdown kart ikonu).
   Tailwind'in `sr-only` sinifi panelin DERLENMIS CSS'inde YOK (purge edilmis)
   — bu yuzden radio dugmeleri gorunur kaliyor ve kucuk kare nisanlari
   sisiriyordu. Burada elle gizleniyor: `display:none` yerine 1px/opacity,
   boylece dugme klavye ile hala odaklanabilir ve formla birlikte gonderilir. */
[data-icon-picker] input[type="radio"]{
  position:absolute;
  width:1px;height:1px;
  opacity:0;
  pointer-events:none;
  margin:0;
}

/* FalconX 8 brand (sidebar + login) */
.fx-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fx-brand__logo { height: 26px; width: auto; }
.dark .fx-brand__logo { filter: brightness(0) invert(1); }
.fx-brand__ver { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 6px; background: var(--primary); color: #fff; font-weight: 700; font-size: 13px; line-height: 1; }
.fx-brand__site { font-size: 11px; color: var(--muted-foreground, #78829d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 1px solid var(--border, #e5e7eb); padding-left: 8px; }

/* icon picker (Anasayfa > deger kutulari) */
.fx-icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.fx-icon-wrap { position: relative; }
.fx-icon-opt { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border: 1px solid var(--input, #e5e7eb); border-radius: 10px; cursor: pointer; text-align: center; color: var(--primary); transition: .15s; }
.fx-icon-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.fx-icon-opt svg, .fx-icon-opt img { width: 26px; height: 26px; object-fit: contain; }
.fx-icon-opt span { font-size: 10px; color: var(--secondary-foreground, #6b7280); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-icon-opt:hover { border-color: var(--primary); }
.fx-icon-opt:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 9%, transparent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 25%, transparent); }
.fx-icon-opt:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.fx-icon-del { position: absolute; top: -6px; right: -6px; }
.fx-icon-del button { width: 20px; height: 20px; border-radius: 50%; border: 0; background: #e5484d; color: #fff; font-size: 13px; line-height: 1; cursor: pointer; }
/* sortable rows */
.fx-sortable [draggable="true"] { cursor: grab; }
.fx-sortable .is-dragging { opacity: .5; }
.fx-drag-handle { color: var(--muted-foreground, #9ca3af); cursor: grab; }
.fx-brand__sitelogo { height: 56px; width: auto; max-width: 92px; object-fit: contain; }
.fx-brand__panel { display: flex; align-items: center; gap: 6px; padding-left: 10px; border-left: 1px solid var(--border, #e5e7eb); }
.fx-brand__panel .fx-brand__logo { height: 18px; }
.fx-brand__panel .fx-brand__ver { min-width: 20px; height: 20px; font-size: 11px; }
/* AI image generator */
.fx-ai-image { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.fx-ai-image__preview { flex-basis: 100%; display: flex; flex-direction: column; gap: 4px; }
.fx-ai-image__preview img { max-width: 240px; border-radius: 8px; border: 2px solid var(--primary); }
.fx-ai-image [data-ai-image-btn][disabled] { opacity: .6; cursor: wait; }
