/* ÜRETİLDİ (arac/sahne_esitle.py) — elle düzenlemeyin. */

    html,
    body,
    #cesiumContainer {
      width: 100%;
      height: 100%;
      margin: 0;
      padding: 0;
      overflow: hidden;
      background: #000;
    }

    /* Custom DOM InfoBox Styling - Light/Native Theme */
    #rau-custom-infobox {
      position: absolute;
      top: 15px;
      /* Haritanın içine çok az girsin */
      right: 15px;
      /* Sağ köşeye yapışsın */
      width: 320px;
      background: rgba(245, 245, 245, 0.95);
      /* PyQt menüsü gibi açık gri taban */
      border: 1px solid #ccc;
      border-radius: 4px;
      color: #333;
      /* Siyah yazılar */
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      font-size: 13px;
      z-index: 9999;
      display: none;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
      /* Daha hafif gölge */
      backdrop-filter: blur(4px);
    }

    #rau-custom-infobox-header {
      background: #e0e0e0;
      /* Hafif koyu gri header */
      padding: 8px 12px;
      border-bottom: 1px solid #ccc;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-weight: bold;
      border-radius: 4px 4px 0 0;
      color: #333;
      /* Header yazısı rengi */
    }

    #rau-custom-infobox-title {
      flex: 1 1 auto;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    /* Canlılık göstergesi (RAU.Hook yazar; rengi JS'ten gelir) */
    #rau-infobox-canli {
      flex: 0 0 auto;
      margin: 0 8px;
      font-weight: normal;
      font-size: 11px;
      white-space: nowrap;
    }

    #rau-custom-infobox-close {
      cursor: pointer;
      font-weight: bold;
      color: #777;
      /* Çarpı butonu rengi */
      font-size: 16px;
    }

    #rau-custom-infobox-close:hover {
      color: #d32f2f;
      /* Hover'da kırmızı kapatma */
    }

    #rau-custom-infobox-content {
      padding: 12px;
      max-height: 440px;
      overflow-y: auto;
    }

    /* Teşhis çubuğu (js/ui/teshis_paneli.js yazar). İçerik kutusunun
       DIŞINDA durur: canlı tazeleme (RAU.Hook) yalnız içeriğe yazdığı için
       ASTERIX/AIS/FR24 kutuları tazelenirken seçim listesi kopmaz. */
    #rau-infobox-teshis {
      padding: 6px 12px;
      border-bottom: 1px solid #ccc;
      border-left: 5px solid #d0d0d0;
      background: #fafafa;
    }

    .rau-teshis-satir {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .rau-teshis-sembol {
      flex: 0 0 auto;
      width: 34px;
      height: 26px;
      object-fit: contain;
    }

    .rau-teshis-satir label {
      flex: 0 0 auto;
      font-weight: 600;
    }

    #rau-teshis-secim {
      flex: 1 1 auto;
      min-width: 0;
      padding: 3px 4px;
      font-size: 13px;
      border: 1px solid #bbb;
      border-radius: 3px;
      background: #fff;
      color: #222;
    }

    .rau-teshis-not {
      margin-top: 4px;
      font-size: 11px;
      color: #666;
    }

    .rau-teshis-not button {
      margin-left: 4px;
      padding: 1px 8px;
      font-size: 11px;
      border: 1px solid #1976D2;
      border-radius: 3px;
      background: #fff;
      color: #1976D2;
      cursor: pointer;
    }

    /* Tablo stillerini PyQt Data Formlarına benzetecek şekilde daraltıp renklendiriyoruz */
    .cesium-infoBox-customTable {
      width: 100%;
      border-collapse: collapse;
      margin-bottom: 5px;
    }

    .cesium-infoBox-customTable th,
    .cesium-infoBox-customTable td {
      border: 1px solid #ccc;
      padding: 6px;
      text-align: left;
    }

    .cesium-infoBox-customTable th {
      background: #e8e8e8;
      /* Tablo başlığı açık gri */
      width: 45%;
      font-weight: 600;
    }

    .banner {
      display: none !important;
      font-size: 4px;
      visibility: hidden;
    }

    .banner.context-warning {
      display: block !important;
      visibility: visible;
      font-size: 10px;
    }

    #infoPanel {
      position: absolute;
      right: 0;
      top: 0;
      z-index: 12;
      min-width: 280px;
      max-width: 340px;
      color: #f0f0f0;
      background: rgba(15, 15, 20, 0.85);
      /* Dark semi-transparent */
      backdrop-filter: blur(12px);
      /* Glassmorphism */
      -webkit-backdrop-filter: blur(12px);
      border-left: 1px solid rgba(255, 255, 255, 0.1);
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      border-bottom-left-radius: 12px;
      font-family: 'Segoe UI', 'Inter', system-ui, sans-serif;
      font-size: 13px;
      line-height: 1.4;
      box-shadow: -4px 4px 24px rgba(0, 0, 0, 0.45);
      display: none;
    }

    #infoPanel header {
      font-weight: 600;
      font-size: 14px;
      padding: 12px 14px;
      background: rgba(255, 255, 255, 0.03);
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      letter-spacing: 0.5px;
      text-transform: uppercase;
      color: #4facfe;
      /* Light Blue Accent */
    }

    #infoPanel .content {
      padding: 12px 14px;
    }

    #infoPanel .row {
      display: flex;
      gap: 10px;
      margin: 4px 0;
      align-items: baseline;
    }

    #infoPanel .k {
      width: 90px;
      color: #aaaaaa;
      font-weight: 500;
      text-align: right;
    }

    #infoPanel .v {
      flex: 1;
      color: #ffffff;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
    }

    /* Cesium Credits Gizle */
    .cesium-widget-credits {
      display: none !important;
    }

    /* Özel Logo */
    #customCredit {
      position: absolute;
      bottom: 2px;
      left: 5px;
      z-index: 99;
      pointer-events: none;
      /* Tıklamayı engelle */
    }

    #customCredit img {
      height: 32px;
      /* Boyut ayarlanabilir */
      opacity: 0.9;
    }

    /* --- INFOBOX AÇIK TEMA VE KONUM (Light Theme) --- */
    .cesium-infoBox {
      top: 0 !important;
      margin-top: 0 !important;
      right: 0 !important;
      border-radius: 0 0 0 10px !important;
      background-color: #f9f9f9 !important;
      border: 1px solid #d0d0d0 !important;
      box-shadow: -2px 4px 12px rgba(0, 0, 0, 0.15) !important;
      color: #333 !important;
      transform: none !important;
      /* Animasyon kaymasını engelle */
      transition: opacity 0.2s !important;
    }

    .cesium-infoBox-title {
      background-color: #e6e6e6 !important;
      color: #222 !important;
      font-family: 'Segoe UI', sans-serif !important;
      font-weight: 600 !important;
      padding: 8px 10px !important;
      border-bottom: 1px solid #ccc !important;
    }

    .cesium-infoBox-close {
      color: #444 !important;
      background: none !important;
    }

    .cesium-infoBox-close:hover {
      color: #c00 !important;
      background: #ddd !important;
    }

    /* Iframe body (geçici, asıl yükleme JS ile olacak ama container rengi önemli) */
    .cesium-infoBox-body {
      background-color: #ffffff !important;
    }
  
    /* ── Seçim göstergesi (yeşil köşeli parantezler) ──
       Cesium varsayılanı 160x160 piksel: radar hedefi için devasa ve
       hedefin ÜSTÜNDEKİ etiketin üzerine biniyor, rakamları gizliyordu
       ("10668" -> "0668" gibi okunuyordu). Gösterge hedefi çerçeveleyecek
       kadar küçültüldü. Cesium konumlandırmayı clientWidth'e göre yaptığı
       için CSS ile küçültmek kaymaya yol açmaz. */
    .cesium-selection-wrapper {
      width: 48px !important;
      height: 48px !important;
    }

    .cesium-selection-wrapper > svg {
      width: 100% !important;
      height: 100% !important;
    }
