/* =========================================================================
   WHITOO KOMPAKT LISTELER (2026-10-01)
   Sunucu ekraninda: sagdaki UYE LISTESI ve soldaki KANAL LISTESI.
   Kullanici istegi: "biraz incelt, kompakt yap, profesyonel".

   - Bu dosya chat_room.html'de EN SON yuklenir; seciciler mevcut en guclu
     kurallarla (html body.incallx ...) ayni ya da daha guclu, !important ile.
   - Ayarlar > Arayuz yogunlugu = "Genis" (body.whitoo-user-spacious) secen
     kullaniciya UYGULANMAZ; tercihi bozulmaz.
   - Yan aksan cubugu YOK (tasarim kurali): secili/okunmamis durumu zemin
     ve yazi agirligiyla gosterilir.
   ========================================================================= */

/* ------------------------------------------------------------ SAG PANEL */

/* Panel genisligi: 320 -> 260 px (kucuk ekranlarda eski sinir korunur) */
html body.incallx:not(.whitoo-user-spacious) #rightbar-wrapper.rightbar-wrapper {
    width: min(260px, calc(100vw - 72px)) !important;
    /* whitoo-paket.css 'min-width:320px !important' koyuyor; width tek basina
       ise yaramiyordu. min-width'i de ayni degere cekiyoruz; flex sutunda
       sikismasin diye (aksi halde 216 px'e iniyordu) daralma kapali.
       (Canli olcumle bulundu, 2026-10-01.) */
    min-width: min(260px, calc(100vw - 72px)) !important;
    max-width: 260px !important;
    flex: 0 0 auto !important;
}

/* Profil karti (ust: avatar + ad, rozetler, uc kisayol dugmesi) */
html body.incallx:not(.whitoo-user-spacious) #rightbar-wrapper .woo-right-profile-card {
    padding: 10px !important;
    margin: 8px !important;
    border-radius: 12px !important;
}
html body.incallx:not(.whitoo-user-spacious) #rightbar-wrapper .woo-right-profile-top {
    gap: 9px !important;
    align-items: center !important;
    min-height: 0 !important;
}
html body.incallx:not(.whitoo-user-spacious) #rightbar-wrapper .woo-right-profile-top > img {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    border-radius: 50% !important;
}
html body.incallx:not(.whitoo-user-spacious) #rightbar-wrapper .woo-right-profile-top strong {
    font-size: 15px !important;
    line-height: 1.2 !important;
}
html body.incallx:not(.whitoo-user-spacious) #rightbar-wrapper .woo-right-profile-top span {
    font-size: 12px !important;
    line-height: 1.2 !important;
}
html body.incallx:not(.whitoo-user-spacious) #rightbar-wrapper .woo-right-crown {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    border-radius: 9px !important;
}
html body.incallx:not(.whitoo-user-spacious) #rightbar-wrapper .woo-right-crown i,
html body.incallx:not(.whitoo-user-spacious) #rightbar-wrapper .woo-right-crown img {
    font-size: 18px !important;
    max-width: 20px !important;
    max-height: 20px !important;
}
html body.incallx:not(.whitoo-user-spacious) #rightbar-wrapper .profile-auto-badges-self {
    gap: 4px !important;
    margin-top: 8px !important;
    min-height: 0 !important;
}
html body.incallx:not(.whitoo-user-spacious) #rightbar-wrapper .profile-auto-badges-self .profile-auto-badge {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    border-radius: 7px !important;
}
html body.incallx:not(.whitoo-user-spacious) #rightbar-wrapper .profile-auto-badges-self .profile-auto-badge img,
html body.incallx:not(.whitoo-user-spacious) #rightbar-wrapper .profile-auto-badges-self .profile-auto-badge i {
    max-width: 15px !important;
    max-height: 15px !important;
    font-size: 14.5px !important;
}
html body.incallx:not(.whitoo-user-spacious) #rightbar-wrapper .woo-right-tools {
    gap: 5px !important;
    margin-top: 8px !important;
    padding-top: 8px !important;
}
html body.incallx:not(.whitoo-user-spacious) #rightbar-wrapper .woo-right-tool {
    min-height: 28px !important;
    height: 28px !important;
    border-radius: 8px !important;
}
html body.incallx:not(.whitoo-user-spacious) #rightbar-wrapper .woo-right-tool i {
    font-size: 15.5px !important;
}
html body.incallx:not(.whitoo-user-spacious) #rightbar-wrapper .woo-right-tool img {
    max-width: 18px !important;
    max-height: 18px !important;
}

/* Sekme cubugu (uyeler, gorseller, videolar ...) */
html body.incallx:not(.whitoo-user-spacious) #rightbar-wrapper #rpanel-tab {
    margin: 0 8px !important;
    padding: 2px !important;
    min-height: 0 !important;
    border-radius: 10px !important;
}
html body.incallx:not(.whitoo-user-spacious) #rightbar-wrapper #rpanel-tab .nav-link {
    height: 32px !important;
    min-height: 0 !important;
    padding: 0 6px !important;
}
html body.incallx:not(.whitoo-user-spacious) #rightbar-wrapper #rpanel-tab .nav-link i {
    font-size: 18px !important;
}
html body.incallx:not(.whitoo-user-spacious) #rightbar-wrapper #rpanel-tab .nav-link.active::after {
    width: 18px !important;
}

/* Arama kutusu */
html body.incallx:not(.whitoo-user-spacious) #rightbar-wrapper .room-user-search {
    height: 30px !important;
    /* genel form kurali her girise min-height:40px veriyor */
    min-height: 30px !important;
    font-size: 13.5px !important;
    border-radius: 8px !important;
}
html body.incallx:not(.whitoo-user-spacious) #rightbar-wrapper .room-users-row > .m-1 {
    margin: 6px 8px 2px !important;
}

/* Rol/grup basligi: "UYELER  2" */
html body.incallx:not(.whitoo-user-spacious) #rightbar-wrapper .lt-role-user-heading {
    padding: 10px 10px 4px !important;
    margin: 0 !important;
    min-height: 0 !important;
    font-size: 11.5px !important;
    letter-spacing: .08em !important;
    line-height: 1.2 !important;
}
html body.incallx:not(.whitoo-user-spacious) #rightbar-wrapper .lt-role-user-heading i.ti {
    font-size: 13.5px !important;
}
html body.incallx:not(.whitoo-user-spacious) #rightbar-wrapper .lt-role-user-section {
    margin: 0 0 4px !important;
}

/* Uye satiri: 32 px yukseklik, 24 px avatar */
html body.incallx:not(.whitoo-user-spacious) #rightbar-wrapper .room-users .user-row {
    min-height: 32px !important;
    padding: 3px 8px !important;
    margin: 1px 4px !important;
    border-radius: 8px !important;
    gap: 0 !important;
}
html body.incallx:not(.whitoo-user-spacious) #rightbar-wrapper .room-users .user-row > .d-flex {
    align-items: center !important;
    min-width: 0 !important;
}
html body.incallx:not(.whitoo-user-spacious) #rightbar-wrapper .room-users .channel-user-image {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    margin-right: 9px !important;
    position: relative !important;
}
html body.incallx:not(.whitoo-user-spacious) #rightbar-wrapper .room-users .channel-user-image img,
html body.incallx:not(.whitoo-user-spacious) #rightbar-wrapper .room-users .channel-user-image .img-profile {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
}
/* Durum noktasi: avatarin SAG ALTINDA, avatara orantili kucuk nokta.
   (Onceki hali avatarin disina, sol alta kayiyordu.) */
html body.incallx:not(.whitoo-user-spacious) #rightbar-wrapper .room-users .channel-user-image .online-status {
    position: absolute !important;
    left: auto !important;
    top: auto !important;
    right: -2px !important;
    bottom: -2px !important;
    width: 10px !important;
    height: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1;
}
html body.incallx:not(.whitoo-user-spacious) #rightbar-wrapper .room-users .channel-user-image .online-status i {
    font-size: 10px !important;
    line-height: 9px !important;
}
/* Isim ve altindaki etkinlik satiri */
html body.incallx:not(.whitoo-user-spacious) #rightbar-wrapper .room-users .channel-user-name {
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
}
html body.incallx:not(.whitoo-user-spacious) #rightbar-wrapper .room-users .user-status {
    font-size: 12px !important;
    line-height: 1.25 !important;
    margin-top: 0 !important;
}
/* "Daha fazla yukle" */
html body.incallx:not(.whitoo-user-spacious) #rightbar-wrapper .load-more-users {
    min-height: 0 !important;
    height: 28px !important;
    padding: 0 12px !important;
    font-size: 13.5px !important;
    border-radius: 8px !important;
}

/* ------------------------------------------------------------ SOL PANEL
   Modern kanal listesi (2026-10-01). Hiyerarsi: siradan kanal sakin gri,
   okunmamis beyaz, secili yumusak kirmizi zemin. Yan cubuk YOK.
   Seciciler #sidebar-wrapper kimligiyle basliyor: eski sinif kurallarinin
   hepsini (renk/agirlik dahil) guvenle gecer. Canli olcumle dogrulandi.
   ------------------------------------------------------------------------ */

/* Ust cubuk: sunucu adi */
html body.incallx:not(.whitoo-user-spacious) #sidebar-wrapper .topbar {
    min-height: 48px !important;
    height: 48px !important;
    padding: 0 12px !important;
}
html body.incallx:not(.whitoo-user-spacious) #sidebar-wrapper .topbar .room-title {
    font-size: 16.5px !important;
    font-weight: 700 !important;
    letter-spacing: -.01em !important;
}

/* Sunucu karti: kapak 112 px + ad kapagin ALT kismina oturur (afis gibi),
   sayilar kucuk haplar. Ust cubukla kart arasindaki 32 px bosluk kalkti. */
html body.incallx:not(.whitoo-user-spacious) #sidebar-wrapper .topbar {
    margin-bottom: 0 !important;
}
html body.incallx:not(.whitoo-user-spacious) #sidebar-wrapper .channel-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
html body.incallx:not(.whitoo-user-spacious) #sidebar-wrapper .woo-room-hero-card {
    margin: 8px 10px 4px !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, .07) !important;
    background: #111119 !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .35) !important;
}
html body.incallx:not(.whitoo-user-spacious) #sidebar-wrapper .woo-room-hero-cover {
    position: relative !important;
    height: 112px !important;
    min-height: 112px !important;
    border-radius: 0 !important;
}
/* Kapagin alt kismi kart zeminine koyulassin: ad bu gecisin ustunde okunur */
html body.incallx:not(.whitoo-user-spacious) #sidebar-wrapper .woo-room-hero-cover::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(180deg, rgba(17, 17, 25, 0) 35%, rgba(17, 17, 25, .72) 72%, #111119 100%) !important;
    pointer-events: none !important;
}
html body.incallx:not(.whitoo-user-spacious) #sidebar-wrapper .woo-room-hero-glow {
    height: 100% !important;
    min-height: 0 !important;
}
html body.incallx:not(.whitoo-user-spacious) #sidebar-wrapper .woo-room-hero-body {
    position: relative !important;
    z-index: 2 !important;
    margin-top: -38px !important;
    padding: 0 12px 11px !important;
    min-height: 0 !important;
    background: transparent !important;
    gap: 7px !important;
}
html body.incallx:not(.whitoo-user-spacious) #sidebar-wrapper .woo-room-hero-title {
    font-size: 18px !important;
    font-weight: 750 !important;
    letter-spacing: -.01em !important;
    line-height: 1.2 !important;
    min-height: 0 !important;
    margin: 0 !important;
    color: #fff !important;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .55) !important;
}
html body.incallx:not(.whitoo-user-spacious) #sidebar-wrapper .woo-room-hero-title span {
    letter-spacing: 0 !important;    /* eski kural 2px aciyordu: "t e s t" */
    font-size: 18px !important;
    font-weight: 750 !important;
}
html body.incallx:not(.whitoo-user-spacious) #sidebar-wrapper .woo-room-hero-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin: 0 !important;
    font-size: 13px !important;
}
html body.incallx:not(.whitoo-user-spacious) #sidebar-wrapper .woo-room-hero-meta > span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    height: 22px !important;
    padding: 0 8px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .06) !important;
    border: 1px solid rgba(255, 255, 255, .06) !important;
    /* Etiket metni ("1 aktif") gizli kalir; sayi ::after'dan gelir (eski
       tasarimin mantigi). Metin gorunurse "1 aktif 1" diye cift yaziyordu. */
    font-size: 0 !important;
    font-weight: 600 !important;
    color: rgba(225, 230, 240, .88) !important;
    line-height: 1 !important;
}
html body.incallx:not(.whitoo-user-spacious) #sidebar-wrapper .woo-room-hero-meta > span::after {
    font-size: 13px !important;
    font-weight: 650 !important;
    line-height: 1 !important;
}
html body.incallx:not(.whitoo-user-spacious) #sidebar-wrapper .woo-room-hero-meta > span i {
    font-size: 12px !important;
}

/* "KANALLAR  +" basligi */
html body.incallx:not(.whitoo-user-spacious) #sidebar-wrapper .wch-head {
    margin: 14px 12px 6px !important;
    padding: 0 !important;
    min-height: 0 !important;
}
html body.incallx:not(.whitoo-user-spacious) #sidebar-wrapper .wch-head strong {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    letter-spacing: .09em !important;
    color: rgba(160, 170, 188, .7) !important;
}

/* Whitoo Pulse: kart yerine ince tek satir (72 -> 44 px) */
html body.incallx:not(.whitoo-user-spacious) #sidebar-wrapper .whitoo-pulse-card {
    min-height: 44px !important;
    height: 44px !important;
    padding: 6px 10px !important;
    margin: 0 10px 6px !important;
    width: calc(100% - 20px) !important;
    border-radius: 10px !important;
    gap: 10px !important;
}
html body.incallx:not(.whitoo-user-spacious) #sidebar-wrapper .whitoo-pulse-card .whitoo-pulse-icon {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    border-radius: 8px !important;
    font-size: 16.5px !important;
}
html body.incallx:not(.whitoo-user-spacious) #sidebar-wrapper .whitoo-pulse-card .whitoo-pulse-card-copy small {
    display: none !important;      /* "WHITOO PULSE" ust etiketi: ince satirda gereksiz */
}
html body.incallx:not(.whitoo-user-spacious) #sidebar-wrapper .whitoo-pulse-card .whitoo-pulse-card-copy strong {
    font-size: 14.5px !important;
    line-height: 1.2 !important;
}
html body.incallx:not(.whitoo-user-spacious) #sidebar-wrapper .whitoo-pulse-card .whitoo-pulse-card-copy span,
html body.incallx:not(.whitoo-user-spacious) #sidebar-wrapper .whitoo-pulse-card .whitoo-pulse-card-copy em {
    font-size: 12px !important;
    line-height: 1.2 !important;
}

/* Kategori basligi: OYUN, UNCATEGORIZED */
html body.incallx:not(.whitoo-user-spacious) #sidebar-wrapper .channel-list .channel-cat {
    margin: 14px 0 4px !important;
    padding: 0 12px !important;
    min-height: 0 !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    letter-spacing: .08em !important;
    color: rgba(160, 170, 188, .62) !important;
}
html body.incallx:not(.whitoo-user-spacious) #sidebar-wrapper .channel-list .channel-cat .cat-name {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: inherit !important;
}
html body.incallx:not(.whitoo-user-spacious) #sidebar-wrapper .channel-list .channel-cat > i.ti {
    font-size: 12px !important;
    opacity: .7 !important;
}
html body.incallx:not(.whitoo-user-spacious) #sidebar-wrapper .channel-list .channel-cat:hover {
    color: rgba(225, 230, 240, .9) !important;
}

/* Kanal satiri: varsayilan = sakin */
html body.incallx:not(.whitoo-user-spacious) #sidebar-wrapper .channel-list .channel-main {
    margin: 1px 8px !important;
}
html body.incallx:not(.whitoo-user-spacious) #sidebar-wrapper .channel-list .channel-main .channel-item {
    min-height: 30px !important;
    height: 30px !important;
    padding: 0 10px !important;
    gap: 8px !important;
    border-radius: 8px !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    transition: background-color .12s ease, color .12s ease !important;
}
html body.incallx:not(.whitoo-user-spacious) #sidebar-wrapper .channel-list .channel-main .channel-item .channel-name {
    font-size: 15.5px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    color: rgba(203, 210, 224, .7) !important;
}
html body.incallx:not(.whitoo-user-spacious) #sidebar-wrapper .channel-list .channel-main .channel-item .channel-icon i.ti {
    font-size: 16.5px !important;
    color: rgba(160, 170, 190, .55) !important;
    margin-right: 0 !important;
}
/* Uzerine gelince */
html body.incallx:not(.whitoo-user-spacious) #sidebar-wrapper .channel-list .channel-main .channel-item:hover {
    background: rgba(255, 255, 255, .045) !important;
}
html body.incallx:not(.whitoo-user-spacious) #sidebar-wrapper .channel-list .channel-main .channel-item:hover .channel-name {
    color: #fff !important;
}
/* Okunmamis: beyaz + yari kalin */
html body.incallx:not(.whitoo-user-spacious) #sidebar-wrapper .channel-list .channel-main .unread-indicator.active ~ .channel-item .channel-name {
    color: #fff !important;
    font-weight: 600 !important;
}
/* Secili: yumusak kirmizi zemin + ince cevre cizgisi (yan cubuk degil) */
html body.incallx:not(.whitoo-user-spacious) #sidebar-wrapper .channel-list .channel-main .channel-item.active {
    background: rgba(229, 23, 63, .14) !important;
    background-image: none !important;
    box-shadow: inset 0 0 0 1px rgba(229, 23, 63, .24) !important;
}
html body.incallx:not(.whitoo-user-spacious) #sidebar-wrapper .channel-list .channel-main .channel-item.active .channel-name {
    color: #fff !important;
    font-weight: 600 !important;
}
html body.incallx:not(.whitoo-user-spacious) #sidebar-wrapper .channel-list .channel-main .channel-item.active .channel-icon i.ti {
    color: #ff5a72 !important;
}
/* Davet simgesi: yalnizca uzerine gelince / seciliyken */
html body.incallx:not(.whitoo-user-spacious) #sidebar-wrapper .channel-list .channel-main .channel-item .channel-quick {
    opacity: 0 !important;
    transition: opacity .12s ease !important;
}
html body.incallx:not(.whitoo-user-spacious) #sidebar-wrapper .channel-list .channel-main .channel-item:hover .channel-quick,
html body.incallx:not(.whitoo-user-spacious) #sidebar-wrapper .channel-list .channel-main .channel-item.active .channel-quick {
    opacity: .75 !important;
}
/* Ses kanali doluluk sayaci: kucuk hap */
html body.incallx:not(.whitoo-user-spacious) #sidebar-wrapper .channel-list .channel-main .channel-item .wch-count {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: rgba(160, 170, 190, .75) !important;
    background: rgba(255, 255, 255, .05) !important;
    padding: 1px 6px !important;
    border-radius: 6px !important;
}

/* Alttaki hesap cubugu: 61 -> 52 px */
html body.incallx:not(.whitoo-user-spacious) #sidebar-wrapper .channel-list-bottom {
    min-height: 52px !important;
    height: 52px !important;
    padding: 0 10px !important;
}
