html, body {
    height: 100%;
}

app {
    display: block;
    height: 100%;
}

#blazor-error-ui {
    background: inherit;
    bottom: 0;
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 100001;
}
/* Sofasis logosu: maske YOK (orijinal renkler), oran korunur (135x54 => 2,5:1) */
.header-logo {
    flex-shrink: 0;
    background-color: transparent;
    background-image: url('../images/sofasis-logo.svg');
    background-position: left center;
    background-repeat: no-repeat;
    background-size: contain;
    width: 80px;
    height: 32px;
}

/* Koyu temada beyaz logo */
.dxbl-theme-dark .header-logo,
[data-theme="dark"] .header-logo {
    background-image: url('../images/sofasis-logo-white.svg');
}

/* Giriş sayfası / splash logosu daha büyük */
img[src*="sofasis-logo"] {
    height: 56px;
    width: auto;
}
.salon-matrisi { padding: 8px 0; --matris-hucre-boy: 36px; }
@media (pointer: coarse) { .salon-matrisi { --matris-hucre-boy: 44px; } }
.matris-arac { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.matris-izgara-kutu { overflow-x: auto; max-width: 100%; }
.matris-izgara { display: grid; gap: 2px; margin-top: 8px; }
.matris-perde { margin: 8px 0 4px; padding: 6px 0; text-align: center; letter-spacing: 6px; font-weight: 700; font-size: 12px; color: #fff; background: #37474f; border-radius: 4px; }
.matris-hucre { width: var(--matris-hucre-boy); height: var(--matris-hucre-boy); border: 1px solid #bbb; border-radius: 4px; font-size: 12px; cursor: default; }
.matris-hucre.koltuk.tek { background: #e3f2fd; }
.matris-hucre.koltuk.cift { background: #c8e6c9; }
.matris-hucre.koridor { background: #ffcdd2; }
.matris-hucre.bos { background: #f5f5f5; color: #aaa; }
.matris-hucre:enabled { cursor: pointer; }
.matris-hucre:disabled { opacity: 1; }
.matris-hucre.secili { outline: 2px solid #1565c0; outline-offset: -2px; }
.matris-kose { width: var(--matris-hucre-boy); height: 20px; }
.matris-baslik { width: var(--matris-hucre-boy); height: 20px; padding: 0; border: none; background: transparent; color: #666; font-size: 11px; line-height: 20px; text-align: center; }
button.matris-baslik:enabled { cursor: pointer; color: #1565c0; }
button.matris-baslik:enabled:hover { background: #e3f2fd; }
.matris-sira { color: #444; font-weight: 600; }
button.matris-sira { color: #444; }
button.matris-sira:enabled { cursor: pointer; }
button.matris-sira:enabled:hover { background: #e3f2fd; color: #1565c0; }
.matris-firca { padding: 2px 8px; border: 1px solid #bbb; border-radius: 4px; background: #fff; font-size: 12px; }
.matris-firca:enabled { cursor: pointer; }
.matris-firca.secili { background: #1565c0; border-color: #1565c0; color: #fff; }
.matris-ipucu { color: #666; font-size: 12px; margin: 4px 0; }
.matris-hata { color: #b00020; font-size: 13px; }
.matris-bilgi { color: #2e7d32; font-size: 13px; }
.matris-popup-alt { display: flex; gap: 8px; justify-content: flex-end; }
.matris-eslestirme { margin: 10px 0; padding: 8px; border: 1px solid #e0e0e0; border-radius: 6px; background: #fafafa; }
.matris-serit-baslik { font-size: 12px; font-weight: 600; color: #444; margin-bottom: 6px; }
.matris-cihazlar { list-style: none; margin: 0 0 8px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.matris-cihaz { display: flex; align-items: center; gap: 6px; padding: 3px 8px; border: 1px solid #ccc; border-radius: 12px; background: #fff; font-size: 12px; cursor: pointer; }
.matris-cihaz.secili { border-color: #1565c0; background: #e3f2fd; }
.matris-cihaz.bagli { border-color: #2e7d32; }
.matris-cihaz-tip, .matris-cihaz-durum { color: #666; }
.matris-kaldir { padding: 0 6px; border: 1px solid #bbb; border-radius: 8px; background: #fff; font-size: 11px; cursor: pointer; }
.matris-hucre.eslesmis { box-shadow: inset 0 0 0 2px #2e7d32; }
.matris-hucre.siradaki { outline: 3px solid #f9a825; outline-offset: -3px; }
.matris-hucre.gwli { background: #ede7f6; font-size: 9px; font-weight: 700; color: #4527a0; }
.matris-gateway { border-style: dashed; }
.matris-yuva { display: flex; align-items: center; gap: 8px; margin: 8px 0; padding: 6px 10px; border: 2px dashed #7b1fa2; border-radius: 8px; background: #faf5ff; font-size: 12px; }
.matris-yuva.dolu { border-style: solid; background: #f3e5f5; }
.matris-yuva .matris-kaldir { margin-left: 4px; }
.matris-kumanda { border-color: #f9a825; }
.matris-cihaz.yanip { border-color: #f9a825; background: #fff8e1; }
.matris-hucre.yanip, .matris-cihaz.yanip { animation: matris-yanip 0.8s ease-in-out 3; }
.matris-hayalet { position: fixed; z-index: 3000; pointer-events: none; padding: 2px 8px; border: 1px solid #1565c0; border-radius: 10px; background: #e3f2fd; color: #0d47a1; font-size: 12px; }
.matris-hucre.birak-hedef { outline: 3px dashed #1565c0; outline-offset: -3px; }
.matris-kopru { margin: 10px 0; padding: 8px; border: 1px solid #e0e0e0; border-radius: 6px; background: #fff; }
.matris-ack { font-size: 13px; margin: 4px 0 0 0; }
.matris-ack.kabul { color: #2e7d32; }
.matris-ack.red { color: #b00020; }
.matris-cihaz.cevrimdisi { border-style: dashed; opacity: 0.65; }
.matris-cihaz.cevrimdisi .matris-cihaz-tip { color: #b00020; }
body.matris-surukluyor { cursor: grabbing; user-select: none; }
.matris-cihaz { touch-action: none; }
.matris-hucre[data-surukle] { touch-action: none; }
@keyframes matris-yanip {
    0%, 100% { box-shadow: inset 0 0 0 2px transparent; }
    50% { box-shadow: inset 0 0 0 3px #f9a825; }
}
/* P5 — salon kontrol ekrani (SalonKontrol.razor). Izgara kendi kutusunda yatay kayar; sayfa kaymaz. */
.salon-kontrol { font-size: 14px; }
.salon-kontrol h3 { margin: 0 0 10px 0; }
.kontrol-durum { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 8px; }
.kontrol-durum span { background: #f3f5f8; border: 1px solid #d9dee6; border-radius: 4px; padding: 3px 8px; }
.kontrol-yenile { border: 1px solid #b9c3d0; background: #fff; border-radius: 4px; padding: 3px 10px; }
.kontrol-arac { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.kontrol-arac button {
    min-height: 40px; padding: 6px 14px; border-radius: 6px; border: 1px solid #b9c3d0; background: #fff; cursor: pointer;
}
.kontrol-arac button:disabled { opacity: .5; cursor: not-allowed; }
.kontrol-estop { background: #b3261e !important; color: #fff; border-color: #8c1d18 !important; font-weight: 600; }
.kontrol-uyari { color: #8a5a00; background: #fff6e0; border: 1px solid #f0d79a; padding: 6px 10px; border-radius: 4px; }
.kontrol-hata { color: #b3261e; }
.kontrol-bilgi { color: #1b5e20; }
.kontrol-ozet { color: #445; }
.kontrol-perde {
    background: #2b3a55; color: #fff; text-align: center; letter-spacing: 3px;
    padding: 5px; border-radius: 4px 4px 0 0; font-weight: 600;
}
.kontrol-izgara-kutu { overflow-x: auto; border: 1px solid #c9d2dd; border-radius: 0 0 4px 4px; }
.kontrol-izgara { border-collapse: collapse; }
.kontrol-izgara td { padding: 0; vertical-align: top; }
.kontrol-hucre { border: 1px solid #dde3ea; }
.kontrol-hucre.bos { background: #fafbfc; min-width: 34px; min-height: 34px; }
.kontrol-hucre-ic {
    min-width: 44px; min-height: 44px; padding: 3px 4px; display: flex; flex-direction: column;
    gap: 2px; align-items: center; background: #fff;
}
.kontrol-hucre-ic[data-cevrimdisi="1"] { background: #f0f0f0; color: #888; }
.kontrol-hucre-ic[data-hareket="1"] { background: #fff7d6; }
.kontrol-etiket { font-weight: 700; }
.kontrol-aktor { font-size: 11px; color: #667; }
.kontrol-uc, .kontrol-offline, .kontrol-hareket { font-size: 11px; }
.kontrol-dugme { display: flex; gap: 2px; flex-wrap: wrap; justify-content: center; }
.kontrol-dugme button {
    min-width: 44px; min-height: 44px; border-radius: 4px; border: 1px solid #c2ccd8; background: #f7f9fb; cursor: pointer;
}
.kontrol-dugme button:disabled { opacity: .45; cursor: not-allowed; }
.kontrol-kapat { background: #eef4ff !important; }
.kontrol-stop { background: #ffe8e6 !important; }
.kontrol-gecmis { margin-top: 14px; }
.kontrol-gecmis-baslik { font-weight: 600; margin-bottom: 4px; }
.kontrol-gecmis ul { margin: 0; padding-left: 18px; }
.kontrol-gecmis li { font-size: 12px; color: #33404f; }
.kontrol-ipucu { color: #667; font-size: 12px; }
@media (pointer: coarse) {
    .kontrol-hucre-ic { min-width: 48px; min-height: 48px; }
    .kontrol-dugme button { min-width: 48px; min-height: 48px; }
}

/* Splash (yukleme) ekrani: XAF logoyu mavi dairenin icine koyar; genis logo tasiyor ve koyu gri mavide okunmuyordu
   (25.11). Beyaz logo + dairenin icine sigan boyut. img[src*="sofasis-logo"] kuralindan daha ozgul. */
.loading-image-wrapper img.loading-image { width: 112px; height: 112px; object-fit: contain; }   /* beyaz logo KARE (150x150) */

/* Koltuk hareket animasyonu (25.11, A-Z simulasyonu: "koltuklarin animasyonu yok").
   Hareket eden koltuk: sari cerceve nabiz + kosede yon oku (▲ aciliyor / ▼ kapaniyor) kayar. */
.kontrol-hucre-ic { position: relative; }
.kontrol-hucre-ic[data-hareket="1"] {
    background: #fff7d6;
    animation: koltuk-nabiz 1.1s ease-in-out infinite;
}
.kontrol-hucre-ic[data-hareket="1"]::after {
    position: absolute; top: 2px; right: 4px; font-size: 14px; line-height: 1; color: #b7791f;
    animation: koltuk-ok 0.9s ease-in-out infinite;
}
.kontrol-hucre-ic[data-hareket="1"][data-yon="fwd"]::after { content: "\25B2"; color: #2f855a; }
.kontrol-hucre-ic[data-hareket="1"][data-yon="rev"]::after { content: "\25BC"; color: #c05621; animation-direction: reverse; }
@keyframes koltuk-nabiz {
    0%, 100% { box-shadow: inset 0 0 0 2px #f6c343; }
    50% { box-shadow: inset 0 0 0 2px #f6c343, 0 0 10px 2px rgba(246, 195, 67, .65); }
}
@keyframes koltuk-ok {
    0% { transform: translateY(3px); opacity: .35; }
    50% { opacity: 1; }
    100% { transform: translateY(-3px); opacity: .35; }
}
@media (prefers-reduced-motion: reduce) {
    .kontrol-hucre-ic[data-hareket="1"], .kontrol-hucre-ic[data-hareket="1"]::after { animation: none; }
}
