/* 
   Chat Style - Final Organized Version
   Clean, Optimized, and Error-Free
*/

/* --- 1. General & Basic Styles --- */
@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@400;700&family=El+Messiri:wght@400;700&family=IBM+Plex+Sans+Arabic:wght@400;700&display=swap');

body {
    background: #a1bbe0bd;
    color: #000;
    font-family: 'Almarai', sans-serif;
}

a {
    color: orange;
    text-decoration: none;
}

button {
    background: transparent;
    color: #fff;
    border: none;
    cursor: pointer;
}

input, 
textarea, 
.post_input_container {
    background: #f8fbfb;
    border: 1px solid #a1959559 !important;
    color: #000;
}

.setdef {
    color: #333;
}

/* --- 2. Layout & Containers --- */
.backglob, 
.back_chat, 
.back_priv, 
.back_panel, 
.back_menu, 
.back_modal, 
.page_element, 
.back_quote {
    background: #fff;
}

.page_element {
    box-shadow: 0 1px 3px rgb(0 0 0 / .2);
}

.back_box {
    background: linear-gradient(to bottom,#ebebeb 0%,#fdfefe 100%);
    border-bottom: 1px solid #bfc9d2;
}

.back_pmenu {
    background: #fff;
    color: #000;
}

.back_input {
    background: linear-gradient(to bottom,#dae5eb 0%,#fdfefe 100%);
    border-top: 1px solid #bfc9d2;
    border-bottom: 1px solid #bfc9d2;
}



/* headers colors and top box colors */
.bhead { background:linear-gradient(to bottom,#ffffff 0%,#6892ce 50%,#5987c9 52%,#5987c9 100%); color:#fff; }
.modal_top { background:linear-gradient(to bottom,#ffffff 0%,#6892ce 50%,#5987c9 52%,#5987c9 100%); color:#fff; }
.pro_top { background:#5987c9; color:#fff; }
.bfoot { background:linear-gradient(to top,#abcdff 0%,#6892ce 17%,#5987c9 42%,#5987c9 100%); color:#fff; }
.back_ptop { background:linear-gradient(to bottom,#ffffff 0%,#6892ce 50%,#5987c9 52%,#5987c9 100%); color:#fff; }
.foot { background:#5987c9; color:#fff; text-shadow:0 0 2px rgb(0 0 0 / .8); }
@media only screen and (max-width : 480px) {
    .bhead, .bfoot, .float_top, .float_ctop { background:linear-gradient(to bottom,#b1c7e5 0%,#6892ce 50%,#5987c9 52%,#5987c9 100%); }
}

/* button colors */
.theme_btn, .back_theme {
background:linear-gradient(#FF8F00,#FF5722);
color:#fff;
border-radius:6px;
}

.default_btn, .back_default {
background:linear-gradient(#FF8F00,#FF5722);
color:#fff;
border-radius:6px;
}

.defaultd_btn {
background:#333;
color:#fff;
border-radius:6px;
}

.ok_btn {
background:linear-gradient(#FF8F00,#FF5722);
color:#fff;
border-radius:6px;
}

.warn_btn {
background:orange;
color:#fff;
border-radius:6px;
}

.delete_btn {
background:linear-gradient(#F44336,#c11010);
color:#fff;
border-radius:6px;
}

.send_btn {
background:#ff5722;
color:#fff;
border-radius:5px;
}


.back_theme {
    border: 1px solid #ff7102;
}

.default_btn:hover, .theme_btn:hover, .ok_btn:hover {
    background: linear-gradient(#f3b526,#f7842a);
}

.delete_btn:hover {
    background: linear-gradient(#f44336cc,#c11010d4);
}
.small_modal_in {
    border-radius: 3px;
    margin: 0 auto;
    max-width: 900px;
    width: 100%;
    font-weight: 700;
}

.large_button_rounded {
    font-weight: 700;
    padding: 15px 5px;
    border-radius: 5px;
    font-size: 30px;
    width: 260px;
    margin-top: 10px;
    box-shadow: #ccc 0 2px 4px 0;
    font-family: 'Almarai', sans-serif;
}

.loginana {
    padding: 15px 5px;
    border-radius: 5px;
    font-size: 27px;
    width: 260px;
    margin-top: 15px;
    background: transparent linear-gradient(117deg, #fe9150, #fe6446) repeat scroll 0% 0%;
    font-weight: 700;
    box-shadow: #ccc 0 2px 4px 0;
    font-family: 'Almarai', sans-serif;
}

/* private log bubble colors - MODIFIED COLORS */
.target_private {
    color: #36f;
    background: #fffee2 !important;
    border: 1px solid #cccccc7d;
    border-radius: 10px;
}
.hunter_private {
    color: #C06;
    background: #fffee2 !important;
    border: 1px solid #cccccc7d;
    border-radius: 10px;
}
.targ_quote, .hunt_quote {
    color: #000;
    background: #e9e9e9 !important;
    border: 1px solid #cccccc7d;
    border-radius: 10px;
}



.cquote {
    background: rgba(0, 0, 0, 0.05) !important;
    border: solid 1px #5987c9;
    width: 100%;
    line-height: 17px;
    border-left: solid 4px #5987c9;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    padding: 10px 10px 10px 40px;
}

.cquote::before {
    font-family: "Font Awesome 6 Free";
    content: "\f10d";
    font-weight: 900;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #c9d8ee;
    font-size: 20px;
}

.cqname { color: #000; }
.cqmess { color: #666; }

/* --- 6. Special Components --- */
.welecome {
    transition: all .2s ease;
    position: absolute;
    width: 160px;
    height: 60px;
    text-align: center;
    z-index: 10;
    transform: rotate(316deg);
    top: -10px;
    left: -130px;
    line-height: 80px;
    color: #fff;
    background: #4caf50;
    font-family: 'Almarai', sans-serif;
    font-size: 17px;
    margin-left: 70px;
}

.warning-msg {
    color: #6e6e6e;
    border-radius: 10px;
    display: inline-block;
    cursor: pointer;
    border: 3px solid;
    font-size: 15px;
    font-family: 'Almarai', sans-serif;
    padding: 8px;
    text-decoration: none;
    margin-top: 20px;
    box-shadow: rgba(187, 187, 187, 0.55) 0 0 5px 1px;
    border-color: #f44336 #9c27b0 #ff9800 #4caf50;
    text-align: right;
    line-height: 1.75;
}

.test_call {
    border: solid 1px #dfdfdf;
    margin-top: 10px;
    padding: 10px;
    text-align: center;
    font-family: 'Almarai', sans-serif;
    border-radius: 5px;
    color: #415452;
    box-shadow: rgba(247, 247, 247, 0.55) 0 0 5px 1px;
}

.agree2022 {
    overflow: hidden;
    background: #fff8f5;
    color: #6f6f6f;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-size: 12px;
    margin-top: 20px;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    direction: rtl;
    box-shadow: rgba(187, 187, 187, 0.1) 0 0 5px 1px;
}

/* --- 7. Lists & Menus --- */
.fmenu_item {
    display: table;
    width: 100%;
    table-layout: fixed;
    padding: 15px 1px 15px 10px;
    cursor: pointer;
    border-bottom: 1px solid #ededed;
}

.blisting { border-bottom: 1px solid rgb(191 201 210 / 50%) !important; }
.blisting:hover { background: rgba(0, 0, 0, 0.05); border-radius: 10px; }

.blist { border-bottom: 1px solid rgba(0, 0, 0, 0.08); }

.bpmenu:hover { background: #f2f2f2; }
.bsub { background: rgba(0, 0, 0, 0.1); }
.bsub:hover { background: rgba(0, 0, 0, 0.2); }

.bmenu, .submenu { border-bottom: 1px solid rgb(0 0 0 / 18%); }
.bmenu:hover, .submenu:hover { background: rgba(0, 0, 0, 0.05); }

/* --- 8. Status & Helpers --- */
.offline { opacity: 0.5; }
.theme_color { color: #FF5722; }
.error { color: red; }
.success { color: #74b20e; }
.word { color: orange; }

.bback { background: rgba(0, 0, 0, 0.05); }
.bbackb { background: rgba(0, 0, 0, 0.05); border: 1px solid rgba(0, 0, 0, 0.08); }
.bhover:hover, .bhoverr:hover { background: rgba(0, 0, 0, 0.05); }
.bbackhover { background: rgba(0, 0, 0, 0.05); }
.bbackhover:hover { background: rgba(0, 0, 0, 0.025); }
.bbackhoverb { background: rgba(0, 0, 0, 0.05); }
.bbackhoverb:hover { background: rgba(0, 0, 0, 0.025); border: 1px solid rgba(0, 0, 0, 0.08); }

/* --- 9. Borders --- */
.bborder { border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.tborder { border-top: 1px solid rgba(0, 0, 0, 0.08); }
.lborder, .ppanel { border-left: 1px solid rgba(0, 0, 0, 0.08); }
.rborder { border-right: 1px solid rgba(0, 0, 0, 0.08); }
.fborder { border: 1px solid rgba(0, 0, 0, 0.08); }

/* --- 10. User & Messaging Specifics --- */
.user { color: #000; }
.chat_system { color: #000; }
.menui { color: #5987c9; }
.subi { color: #03add8; }
.reply_item { background: #f6f6f6; }
.main_post_item { color: #5987c9; }
.input_item {
    color: #ff5722;
}
.input_item i:not(.record):not(.record-circle):not(.record-circle *):not(.fa-spin) {
    background: transparent;
    color: #ff5722;
    width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 50%;
    display: inline-block;
    text-align: center;
}
.input_item i.record {
    background: transparent;
    color: #ff5722;
    width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 50%;
    display: inline-block;
    text-align: center;
}
.input_item i.record-circle {
    background: transparent;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex !important;
    vertical-align: middle;
}
.input_item i.fa-spin {
    background: transparent;
    width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 50%;
    display: inline-block;
    text-align: center;
    -webkit-animation: none;
    animation: none;
}
.input_item i.fa-spin:before {
    display: inline-block;
    -webkit-animation: fa-spin 1s infinite linear;
    animation: fa-spin 1s infinite linear;
}

.list_mood {
    color: #000;
}

.my_notice { color: #fff; background: #03add8; }
.system_text { background: #efefef; color: #000; border: 1px solid #9e9e9e59; }

/* --- 11. Responsive & UI Components --- */
.tab_menu { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.tab_selected { background: linear-gradient(#FF8F00,#FF5722); color: #fff; }

.modal_mback { background: rgba(0, 0, 0, 0.04); }
.modal_mborder { border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.modal_selected { background: linear-gradient(#FF8F00,#FF5722); color: #fff; }
.modal_back { background-color: rgba(0, 0, 0, 0.4); }

.log2 { background: #fffee291; }
.topic_log { background: #dfebfb; color: #0d261a; }

.bprogress { background: #74b20e; color: #fff; }
.bnotify { background: red; color: #fff; }
.foot_notify, .head_notify { border: 1px solid #fff; }

.sub_date { color: #888; }
.sub_chat, .sub_priv { color: #000; }
.sub_text { color: #000; }

.plikes { background-color: rgba(100, 100, 100, 0.3); color: #fff; }
.bspin { color: #7da1d5; }

/* --- 12. External UI Libraries Fixes --- */
.selectboxit-list, .selectboxit-btn { background-color: #f6f6f6; color: #666; border: 1px solid #e6e6e6 !important; }
.selectboxit-list .selectboxit-focus .selectboxit-option-anchor { background-color: #ededed; color: #666; }
.selectboxit-default-arrow { border-top: 4px solid #666; }
.selectboxit-btn.selectboxit-enabled:hover { background: #f6f6f6; color: #666; }
.selectboxit-options { background: #fff; border: 1px solid #ccc; }
.selectboxit-list .selectboxit-option-anchor { color: #666; }

.boom_slider .ui-widget-content { background: #ededed; }
.boom_slider .ui-state-default, .boom_slider .ui-state-active { background: #999 !important; }
.boom_slider .ui-slider-range { background: #ccc; }


/* ==================== ألوان إضافية من ثيم Lite إصدار 8.0 ==================== */
.cname { color: #2566e6; }
.sys_log { background: #fffee291; border: 1px solid #ccc; }
.default_color { color: #222; }
.warn { color: orange; }
.bshadow, .float_menu, .btnshadow, .pboxed { box-shadow: 0 1px 3px rgb(0 0 0 / .2); }
.rselected { background: linear-gradient(#FF8F00,#FF5722); color: #fff; }
.pselected { color: #03add8; }
.cselected, .liked { background: rgb(0 0 0 / .05); }
.pag_btn { background: rgb(0 0 0 / .05); color: #666; }
.pagselected, .pag_btn:hover { background: rgb(0 0 0 / .1); }
.gtag { background: #fff; border: 1px solid rgb(0 0 0 / .08); }
.back_page { background: #6892ce; color: #fff; }
.bhead_2 { background: #5987c9; color: #fff; }
.panel_bar { background: linear-gradient(to bottom,#ffffff 0%,#6892ce 50%,#5987c9 52%,#5987c9 100%); color: #fff; border: 1px solid #a0b3c3; border-top: none; }
.float_top, .float_ctop { background: linear-gradient(to bottom,#ffffff 0%,#6892ce 50%,#5987c9 52%,#5987c9 100%); color: #fff; border: 1px solid #fff; border-bottom: 1px solid #d1dee8 !important; }
.emo_head, .stream_header { background: linear-gradient(to bottom,#ffffff 0%,#6892ce 50%,#5987c9 52%,#5987c9 100%); color: #fff; }
.qcontrol { background: linear-gradient(to bottom,#dae5eb 0%,#fdfefe 100%); border: 1px solid #bfc9d2; }
.bselected { background: linear-gradient(#285494 0%,#6a97d8 50%,#476898 52%,#285494 100%); }
.user_count { color: #ff5722; border-bottom: 1px solid #d1dee8; }

.border_bottom, .label_line, .listing_element, .listing_half_element, .list_element, .listing_reg, .left_list, .user_item, .user_item_custom, .box_title { border-bottom: 1px solid #ededed; }
#chat_right_data { border: 1px solid #a0b3c3; }
#chat_main_menu, #status_menu, #room_options_menu, #chat_left_menu { border: 1px solid #bfc9d2 !important; box-shadow: 0 3px 10px rgb(10 37 64 / 10%) !important; }
.fmenu_text { color: #000; }
.proicon { color: #5987c9; }
.mroom_text { color: #fff !important; text-shadow: 0 0 2px rgb(0 0 0 / .8); }
.menuname, .menuranktxt, .mroom_name { text-shadow: 0 0 2px rgb(0 0 0 / .8); }
.background_stream { background-color: #f1f3f4; }
.noview { background: #e5e5e575; color: #ff5722; text-shadow: 0 0 2px rgb(255 255 255 / 90%); border-radius: 10px; }
.room_count { color: #ff5722; }
#container_rooms .room_element.room_elem { border: 1px solid #fff !important; background: linear-gradient(to bottom,#dee6ed 19%,#c8d5e0 22%,#fff 100%) !important; color: #202020 !important; box-shadow: 0 0 1px 1px #ddd !important; }
#container_rooms .room_element.room_elem:hover { background: linear-gradient(to bottom,#e9f0f5 19%,#d4e0eb 22%,#fff 100%) !important; }
#container_rooms .room_icon { border: 1px solid rgba(162,180,199,.75) !important; background: linear-gradient(#f2f5f8,#f4f4f4) !important; box-shadow: 0 2px 2px 0 #d4d2d2 !important; }
#container_rooms .room_name { color: #202020 !important; }
#container_rooms .room_description { color: #4d7497 !important; }
#container_rooms .room_count { color: #ff5722 !important; }


/* ==================== ألوان سجل الدردشة والفوتر مثل إصدار 8.0 ==================== */
#show_chat .ch_logs { border: 1px solid #ccc; }
/* نمط الفقاعة ونمط لونين: صف بلون الشات وصف ملون. النمط العادي: كل الصفوف بلون الشات */
#show_chat li.ch_tlogs,
#show_chat li.ch_blogs:nth-child(odd),
#show_chat li.ch_dlogs:nth-child(odd) { background: transparent; }
#show_chat li.ch_blogs:nth-child(even),
#show_chat li.ch_dlogs:nth-child(even) { background: #fffee291; }
.svg_sultan { fill: #fff; }

/* ==================== لون شريط التمرير لهذا الثيم (مثل إصدار 8.0) ==================== */
*::-webkit-scrollbar { background: linear-gradient(to right,#ffffff 0%,#eeeeee 100%); }
*::-webkit-scrollbar-thumb { background-color: #5987c9; }

/* أيقونة الإغلاق بهيد السمايلات بيضاء فوق لون الثيم */
.emo_head i.fa, .emo_head .emo_menu i { color: #fff !important; }

/* ==================== خلفية منشورات الأخبار/الحائط (بطاقة موحّدة: الاسم + النص + الصورة + الأيقونات) - تدرج نازل من فوق ==================== */
.post_element {
    border: 1px solid #a9c7e8;
    border-radius: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    background: linear-gradient(to bottom,#cfe0f5 0%,#cfe0f5 15%,#eef3fb 35%,#ffffff 55%);
}
