/* TEBESSUMFM CUSTOM CSS - V10.0 */

/* Dış çerçevenin tamamen siyah olmasını sağlıyoruz */
body, 
#page_full_content, 
#page_wrapper,
#page_full_in,
#chat_left, 
#chat_right, 
.bhead, 
.back_panel, 
.sysmenu {
    background-color: #111111 !important;
    background-image: none !important;
}

/* Sol ve sağ menülerin şeffaflığını kaldırıp tam siyah yapıyoruz */
#chat_left, #chat_right, #chat_head, #chat_left_data, #chat_right_data, .chat_head, #wrap_footer {
    background-color: #111111 !important;
    background-image: none !important;
    opacity: 1 !important;
}

/* Orta sohbet alanına (chat_center) arkaplan resmini oturtuyoruz */
#chat_center {
    background-color: #111111 !important;
    background-size: 100% calc(100% - 55px) !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
}

@media (max-width: 768px) {
    #chat_center {
        background-size: 100% calc(100% - 55px) !important;
        background-position: center top !important;
        background-repeat: no-repeat !important;
    }
}

/* Orta bölümdeki mesaj alanının şeffaf olup arkaplanı göstermesini sağlıyoruz */
#warp_show_chat, #show_chat, #chat_logs_container, .chatheight, #wrap_chat, #container_chat {
    background: transparent !important;
    background-color: transparent !important;
}

/* Alt yazı yazma (input) alanını ve ikonlarını görünür yapıyoruz */
#top_chat_container, .back_input {
    background-color: rgba(17, 17, 17, 0.85) !important;
    border-top: 1px solid #333 !important;
}

#main_input_box input, #message_content {
    background-color: transparent !important;
    color: #ffffff !important;
}

.main_item i, .input_icon {
    color: #ffffff !important;
}

/* Sınır çizgilerini (border) siyah temaya uygun hale getiriyoruz */
.lborder, .rborder {
    border-color: #222 !important;
}

/* YAYINDAKI DJ STYLES */
.dj-live-header {
    background: linear-gradient(135deg, #ff0055 0%, #7000ff 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 2px;
    padding: 12px 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(255, 0, 85, 0.4);
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.1);
}
.dj-live-header .live-dot {
    width: 10px;
    height: 10px;
    background-color: #ff3333;
    border-radius: 50%;
    margin-right: 12px;
    animation: pulse-live 1.2s infinite ease-in-out;
    box-shadow: 0 0 10px #ff3333, 0 0 20px #ff3333;
}
@keyframes pulse-live {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.5; }
}
.dj-live-container {
    position: relative;
    border-radius: 14px;
    background: transparent !important;
    margin-bottom: 25px;
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.15);
}
.dj-live-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 2px;
    background: linear-gradient(90deg, #ff0055, #ffcc00, #00f2fe, #ff0055);
    background-size: 400%;
    animation: neon-border 6s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}
@keyframes neon-border {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}
.dj-live-container .user_item,
.dj-live-container .list_element {
    background: transparent !important;
    background-color: transparent !important;
    border-radius: 12px;
    border: none !important;
    margin: 0 !important;
    padding: 10px 10px !important;
    position: relative;
    z-index: 2;
}
.dj-live-container .user_item:hover,
.dj-live-container .list_element:hover {
    background: rgba(255, 255, 255, 0.04) !important;
}
.dj-live-container .user_item_data,
.dj-live-container .user_item_avatar,
.dj-live-container .username,
.dj-live-container [class*="cnick_u"] {
    background-color: transparent !important;
}
.dj-live-container .list_name,
.dj-live-container .username {
    text-shadow: 0 0 5px rgba(255,255,255,0.5);
    font-weight: bold !important;
    font-size: 14px;
}

/* Rütbe İkonları (Taç, Madalya vb.) Sabit Küçük Boyut */
img.chat_rank, 
.chat_rank, 
.user_rank, 
.room_rank, 
.list_rank, 
.rank_icon, 
.sys_rank, 
.menuranking, 
.pro_ranking {
    height: 14px !important;
    max-height: 14px !important;
    width: auto !important;
    max-width: 25px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin-right: 4px !important;
}

/* Sohbet içi GIF ve Görsellerin Boyutlandırılması (Emo kutusu harici) */
.chat_image, 
.post_image img, 
.message_content img,
.mbubble img:not(.emo_select):not(.chat_rank):not(.user_avatar):not(.avt),
.log_content img:not(.emo_select):not(.chat_rank):not(.user_rank):not(.room_rank):not(.user_avatar):not(.avt),
#show_chat .chat_message img:not(.emo_select):not(.chat_rank):not(.user_rank):not(.room_rank):not(.user_avatar):not(.avt),
img[src*=".gif"]:not(.emo_select):not(.chat_rank):not(.user_avatar):not(.avt):not(#main_emoticon img):not(#private_emoticon img):not(.custom_emo img):not(.emo_content img),
.emocc {
    max-height: 75px !important;
    max-width: 220px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 4px 0 !important;
    border-radius: 8px !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* Modal Select / Yazı Büyüklüğü & Stili Dropdown Styling */
.setting_element select, 
#fontsizeit, 
#boldit, 
#fontit {
    appearance: auto !important;
    -webkit-appearance: auto !important;
    background-color: #222533 !important;
    color: #ffffff !important;
    border: 1px solid #3b3f54 !important;
    border-radius: 6px !important;
    padding: 6px 10px !important;
    font-size: 13px !important;
    width: 100% !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    height: 36px !important;
}

.setting_element select option, 
#fontsizeit option, 
#boldit option, 
#fontit option {
    background-color: #1a1d29 !important;
    color: #ffffff !important;
    padding: 8px !important;
}


/* ==========================================================================
   GIF & EMOJI PICKER POPUP STYLING (FIXED DISPLAY TOGGLE & CLICK HANDLERS)
   ========================================================================== */

#main_emoticon, #private_emoticon {
    width: 500px;
    max-width: calc(100vw - 16px);
    height: 250px;
    max-height: 55vh;
    background: #12151e;
    border: 1px solid #282f42;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.75);
    overflow: hidden;
    z-index: 99999;
}

/* Header Container */
.emo_head {
    width: 100% !important;
    height: 54px !important;
    min-height: 54px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    background: #0b0d14 !important;
    border-bottom: 1px solid #222736 !important;
    padding: 0 54px 0 10px !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    gap: 8px !important;
    position: relative !important;
    scrollbar-width: thin !important;
}
.emo_head::-webkit-scrollbar {
    height: 3px !important;
}
.emo_head::-webkit-scrollbar-thumb {
    background: #3b82f6 !important;
    border-radius: 3px !important;
}

/* Larger & Clearer Tab Number Pills (1, 2, 3... 10) */
.emo_menu {
    min-width: 36px !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #1e2638 !important;
    color: #60a5fa !important;
    font-weight: 800 !important;
    font-size: 1.05rem !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    flex-shrink: 0 !important;
    border: 1px solid #2b3650 !important;
    margin: 0 !important;
    float: none !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3) !important;
}
.emo_menu:hover {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
    transform: scale(1.1) !important;
}
.emo_menu.bselected {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #60a5fa !important;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.6) !important;
}
.emo_menu img.emo_select {
    width: 24px !important;
    height: 24px !important;
    object-fit: contain !important;
    display: block !important;
}

.empty_emo {
    display: none !important;
}

/* Pinned Close Button (X) */
.emo_head .emo_menu:last-child,
.emo_head [onclick*="hideEmoticon"],
.emo_head [onclick*="hidePrivEmoticon"] {
    position: absolute !important;
    right: 10px !important;
    top: 9px !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 50% !important;
    background: #1c2230 !important;
    border: 1px solid #334155 !important;
    color: #f87171 !important;
    font-size: 1.1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 1000 !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4) !important;
}

.emo_head .emo_menu:last-child:hover,
.emo_head [onclick*="hideEmoticon"]:hover,
.emo_head [onclick*="hidePrivEmoticon"]:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
    transform: scale(1.1) !important;
}

/* Content Grid Area */
.emo_content, .emo_content_priv {
    width: 100% !important;
    height: calc(100% - 54px) !important;
    max-height: 196px !important;
    overflow-y: auto !important;
    padding: 10px !important;
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)) !important;
    gap: 6px !important;
    align-items: center !important;
    justify-items: center !important;
    background: #12151e !important;
}

/* Individual GIF & Emoji Tile */
.custom_emo, .emoticon, .sticker {
    width: 46px !important;
    height: 46px !important;
    max-width: 46px !important;
    max-height: 46px !important;
    margin: 0 !important;
    float: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #1a1e2c !important;
    border: 1px solid #282f42 !important;
    border-radius: 8px !important;
    padding: 3px !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    overflow: hidden !important;
}
.custom_emo:hover, .emoticon:hover, .sticker:hover {
    transform: scale(1.12) !important;
    border-color: #3b82f6 !important;
    background: #232a3e !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4) !important;
    z-index: 10 !important;
}

.custom_emo img, .emoticon img, .sticker img, .emo_content img, .emo_content_priv img {
    max-width: 38px !important;
    max-height: 38px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 4px !important;
    display: block !important;
    margin: 0 auto !important;
}


/* Emo / GIF Sayfalama Barı */
.emo_pagination_bar {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 10px 0 5px 0 !important;
    margin-top: 8px !important;
    border-top: 1px solid #232938 !important;
    flex-wrap: wrap !important;
}

.emo_page_num {
    min-width: 28px !important;
    height: 28px !important;
    border-radius: 6px !important;
    background: #1c2230 !important;
    border: 1px solid #2d364d !important;
    color: #94a3b8 !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 8px !important;
}

.emo_page_num:hover {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
}

.emo_page_num.active {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #60a5fa !important;
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.5) !important;
}

/* ==========================================================================
   USER ITEM BADGES (TAÇ, BAYRAK, PC/MOBİL/BOT İKONLARI SAĞA DAYALI - ÜÇÜ YAN YANA)
   ========================================================================== */
.user_item {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    position: relative !important;
    padding: 6px 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.user_item_avatar {
    flex-shrink: 0 !important;
    margin-right: 10px !important;
    position: relative !important;
}

.user_item_data {
    flex-grow: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

.user_item_data .username {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 0 !important;
}

.user_item_data .list_mood {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 0 !important;
}

.user_item_badges {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
    padding-left: 6px !important;
}

.user_item_badges .user_item_icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 20px !important;
    vertical-align: middle !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

.user_item_badges .user_item_icon img,
.user_item_badges .icrank img,
.user_item_badges .icflag img {
    max-height: 16px !important;
    height: 16px !important;
    width: auto !important;
    object-fit: contain !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 !important;
}

.user_item_badges .icdevice {
    font-size: 14px !important;
    line-height: 1 !important;
    width: 18px !important;
    height: 20px !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
}

.user_item_badges .icdevice i {
    font-size: 14px !important;
    line-height: 1 !important;
}

.user_item_badges .icdevice.icpc {
    color: #60a5fa !important;
}

.user_item_badges .icdevice.icmobile {
    color: #34d399 !important;
}

.user_item_badges .icdevice.icbot {
    color: #f87171 !important;
}

/* Bottom-right Messenger Toast Container for External Track Warning */
#ext_track_toast_container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 380px;
    width: calc(100% - 48px);
    pointer-events: none;
}

.ext-messenger-toast {
    pointer-events: auto;
    position: relative;
    background: rgba(22, 25, 32, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-left: 4px solid #ef4444;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(239, 68, 68, 0.2);
    color: #f3f4f6;
    animation: slideInRightToast 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInRightToast {
    from {
        opacity: 0;
        transform: translateX(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.ext-toast-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.ext-toast-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.ext-toast-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding-right: 20px;
}

.ext-toast-icon {
    color: #ef4444;
    font-size: 1.1rem;
}

.ext-toast-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #f87171;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ext-toast-body {
    font-size: 0.92rem;
    line-height: 1.45;
    color: #e5e7eb;
}

.ext-toast-body strong {
    color: #38bdf8;
    font-weight: 700;
}

/* White Color Choice & Mobile Palette Visibility Fix */
.color_switch {
    box-sizing: border-box !important;
    border-radius: 6px !important;
}

/* Chat text in white color */
.bcolor32 {
    color: #ffffff !important;
    background-color: transparent !important;
}

/* Color swatches in color picker menu */
.bcback32, .bubcolor32, .color_switch.bcolor32 {
    background-color: #ffffff !important;
    border: 2px solid #555555 !important;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.4) !important;
}

.bcback32 .bccheck, .bubcolor32 .bccheck, .color_switch.bcolor32 .bccheck {
    color: #000000 !important;
    font-weight: bold !important;
}

@media screen and (max-width: 640px) {
    .color_switch {
        width: 12% !important;
        margin: 0.25% !important;
        min-height: 38px !important;
        line-height: 36px !important;
    }
    .color_choices, .user_edit_color, #color_tab, .reg_zone {
        max-height: 300px !important;
        overflow-y: auto !important;
    }
    .modal_pad {
        padding: 20px 15px 15px 15px !important;
    }
}


