/* general colors */
a { color:#00badb; }
body { background:#ededed; color:#333333; }
button { background:transparent; color:#ffffff; }
input, textarea, .post_input_container { background:#f6f6f6; border:1px solid #e6e6e6 !important; border-radius:20px; }
.setdef { color:#333333; }

/* item with background no effect */
.bback { background:rgba(0,0,0,0.05); }

/* item with background no effect with border */
.bbackb { background:rgba(0,0,0,0.05); border:1px solid rgba(0,0,0,0.08); }

/* item with no background and hover effect */
.bhover:hover, .bhoverr:hover { background:rgba(0,0,0,0.05); }

/* item with background and hover effect */
.bbackhover { background:rgba(0,0,0,0.05); }
.bbackhover:hover { background:rgba(0,0,0,0.025); }

/* item width background and hover effect with a border */
.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); }

/* item with no background with line separator and hover effect */
.blisting { border-bottom:1px solid rgba(0,0,0,0.08); }
.blisting:hover { background:rgba(0,0,0,0.05); }

/* item with no background with line separator */
.blist { border-bottom:1px solid rgba(0,0,0,0.08); }

/* page menu & page sub menu */
.bpmenu:hover { background:rgba(255,255,255,0.1); }
.bsub { background:rgba(0,0,0,0.1); }
.bsub:hover { background:rgba(0,0,0,0.2); }

/* sub menus for card, logs, wall, news */
.bmenu, .submenu { border-bottom:1px solid rgba(0,0,0,0.05); }
.bmenu:hover, .submenu:hover { background:rgba(0,0,0,0.05); }

/* box shadow */
.bshadow, .page_element, .float_menu, .btnshadow, .pboxed { box-shadow:0 1px 3px rgba(0,0,0,0.2); }

/* main item selected for panel and box */
.bselected { background:rgba(0,0,0,0.08); }

/* reg menu selected item */
.rselected { background:rgba(0,0,0,0.08); }

/* page selected */
.pselected { color:#00badb; }

/* current item selected */
.cselected, .liked { background:rgba(0,0,0,0.05); }

/* paginate item selected */
.pag_btn { background:rgba(0,0,0,0.05); color:#666666; }
.pagselected, .pag_btn:hover { background:rgba(0,0,0,0.10); }

/* count and gold tag */
.gtag { background:#ffffff; border:1px solid rgba(0,0,0,0.08); }

/* border color for separator and items border */
.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); }

/* float top color */
.float_top { border-bottom:1px solid rgba(0,0,0,0.08); }
.float_ctop { border-bottom:1px solid rgba(0,0,0,0.08); }

/* ========================================================= */
/* الشريط العلوي (الهيدر) - بدون صورة */
/* ========================================================= */
.bhead, .back_ptop, .float_top { 
    background-color: #0b132b !important; 
    background-image: none !important;
    color: #ffffff !important; 
}

.bsidebar { background:#0b132b; color:#ffffff; }
.modal_top { background:#0b132b; color:#ffffff; }
.pro_top { background:#0b132b; color:#ffffff; }
.bfoot { background:#0b132b; color:#ffffff; }
.foot { background:#0b132b; color:#ffffff; }

/* ========================================================= */
/* خلفية شاشة الشات الرئيسية - الصورة بالخلفية فقط */
/* ========================================================= */
.backglob { background:#ffffff; }
.back_chat, #chat_logs, #chat_body { 
    background-color: #ffffff !important;
    background-image: url('ward.png') !important;
    background-repeat: no-repeat !important;
    background-position: left 10px top 10px !important;
    background-size: 220px auto !important; 
    background-attachment: local !important;
    position: relative !important;
    z-index: 1 !important; /* طبقة الخلفية تحت عناصر النص */
}

.back_priv { background:#ffffff; }
.back_panel { background:#ffffff; }
.back_menu { background:#ffffff; }
.back_pmenu { background:#0b132b; color:#ffffff; }
.back_box { background:#ffffff; }
.back_input { background:#ffffff; border-top:1px solid rgba(0,0,0,0.08); }
.back_modal { background:#ffffff; }
.page_element { background:#ffffff; }
.back_quote { background:#ffffff; }

/* main theme color (Cyan Accent) */
.theme_color { color:#00badb; }
.default_color { color:#222222; }
.error { color:red; }
.success { color:#74b20e; }
.warn { color:orange; }

/* button colors */
.theme_btn, .back_theme { background:#00badb; color:#ffffff; }
.default_btn, .back_default { background:#0b132b; color:#ffffff; }
.defaultd_btn { background:#333333; color:#ffffff; }
.ok_btn { background:#74b20e; color:#ffffff; }
.warn_btn { background:orange; color:#ffffff; }
.delete_btn { background:#cc0000; color:#ffffff; }
.send_btn { color:#00badb; }

/* default username color */
.user { color:#333333; }

/* chat system messsage text color */
.chat_system { color:#999999; }

/* opacity for offline users in list */
.offline { opacity:0.5; }

/* wall reply background */
.reply_item { background:#f6f6f6; }

/* main post item option wall and news */
.main_post_item { color:rgba(0,0,0,0.5); }

/* input option background colors */
.input_item { color:#999999; }

/* private log bubble colors */
.target_private, .hunt_quote { color:#ffffff; background:#333333; }
.hunter_private, .targ_quote { color:#666666; background:#f8f8f8; }

/* quote in chat background */
.cquote { background:#e9e9e9; }

/* tab menu */
.tab_menu { background:#ffffff; box-shadow:0 1px 3px rgba(0,0,0,0.2); }
.tab_menu_item { }
.tab_selected { background:rgba(0,0,0,0.08); }

/* modal menu */
.modal_mback { background:rgba(0,0,0,0.04); }
.modal_mborder { border-bottom:1px solid rgba(0,0,0,0.08); }
.modal_selected { background:rgba(0,0,0,0.08); }

/* back transparency background for modal box */
.modal_back { background-color:rgba(0,0,0,0.4); }

/* ========================================================= */
/* تصحيح محاذاة الحاوية الرئيسية لمنع أي إزاحة جانبيّة */
/* ========================================================= */
#chat_logs, .chat_logs, ul.ch_logs, #chat_body {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* ========================================================= */
/* تصميم رسائل الدردشة (رفع النص ليكون فوق صورة الخلفية) */
/* ========================================================= */
.mbubble { background:#f9f9f9; color:#333333; }
.my_log { background:#333333; color:#ffffff; }
.my_log .user { color:#ffffff; }
.sys_log { }

ul li.ch_dlogs:nth-child(odd of .ch_logs) { background:rgba(0,0,0,0.02); }

.mbubble, .my_log, .ch_logs, .ch_dlogs, ul.ch_logs li {
    width: calc(100% - 14px) !important;
    margin-top: 6px !important;
    margin-bottom: 6px !important;
    margin-right: 2px !important;
    margin-left: 12px !important;
    position: relative !important;
    z-index: 5 !important; /* ضمان إظهار الرسائل والنصوص فوق الخلفية */
    left: -1% !important;
    float: none !important;
    clear: both !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    border-right-width: 4px !important;
    border-right-style: solid !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    box-sizing: border-box !important;
}

ul li.ch_logs:nth-child(4n+1), .ch_dlogs:nth-child(4n+1), .mbubble:nth-child(4n+1) { border-right-color: #d4af37 !important; }
ul li.ch_logs:nth-child(4n+2), .ch_dlogs:nth-child(4n+2), .mbubble:nth-child(4n+2) { border-right-color: #00badb !important; }
ul li.ch_logs:nth-child(4n+3), .ch_dlogs:nth-child(4n+3), .mbubble:nth-child(4n+3) { border-right-color: #e91e63 !important; }
ul li.ch_logs:nth-child(4n+4), .ch_dlogs:nth-child(4n+4), .mbubble:nth-child(4n+4) { border-right-color: #10b981 !important; }

/* ========================================================= */
/* تصميم كارت الموضوع (رفع كارت الموضوع ليكون فوق الخلفية) */
/* ========================================================= */
.topic_log { 
    width: calc(100% - 14px) !important;
    margin-top: 8px !important;
    margin-bottom: 8px !important;
    margin-right: 2px !important;
    margin-left: 12px !important;
    left: -1% !important;
    float: none !important;
    clear: both !important;
    background: linear-gradient(135deg, #ffffff 0%, #f0fbff 50%, #ffffff 100%) !important; 
    border: 1.5px solid #00badb !important; 
    border-radius: 18px !important; 
    position: relative !important;
    z-index: 5 !important; /* ضمان إظهار كارت الموضوع فوق الخلفية */
    box-shadow: 0 6px 18px rgba(0, 186, 219, 0.15) !important;
    padding: 14px 16px !important;
    box-sizing: border-box !important;
    display: block !important;
    overflow: hidden !important;
}

/* upload progress */
.bprogress { background:#74b20e; color:#ffffff; }

/* notification colors */
.bnotify { background:red; color:#ffffff; }
.foot_notify, .head_notify { border:1px solid #ffffff; }

/* date colors */
.sub_date { color:#888888; }
.sub_chat, .sub_priv { color:#cccccc; }

/* secondary text color */
.sub_text, .list_mood { color:#888888; }

/* profile likes */
.plikes { background-color:rgba(100,100,100,0.3); color:#ffffff; }

/* spinner color */
.bspin { color:rgba(0,0,0,0.3); }

/* special chat item */
.my_notice { color:#ffffff; background:#00badb; }
.system_text { background:#ededed; color:#666666; }

/* outside pages background */
.back_page { background:#0b132b; color:#ffffff; }

/* video background color */
.post_video { background:rgba(0,0,0,1); }

/* slider */
.boom_slider .ui-widget-content { background:#ededed; }
.boom_slider .ui-state-default { background:#00badb !important; }
.boom_slider .ui-state-active { background:#00badb !important; }
.boom_slider .ui-slider-range { background:#00badb; }

/* select input color */
.selectboxit-list, .selectboxit-btn { background-color:#f6f6f6; color:#666666; border:1px solid #e6e6e6 !important; }
.selectboxit-list .selectboxit-focus .selectboxit-option-anchor { background-color:#ededed; color:#00badb; }
.selectboxit-default-arrow { border-top:4px solid #00badb; }
.selectboxit-btn.selectboxit-enabled:hover, .selectboxit-btn.selectboxit-enabled:focus, .selectboxit-btn.selectboxit-enabled:active { background:#f6f6f6; color:#00badb; }
.selectboxit-options { background:#ffffff; border:1px solid #ccc; }
.selectboxit-list .selectboxit-option-anchor { color:#666666; }

/* ========================================================= */
/* جعل .back_theme باللون الكحلي الداكن */
/* ========================================================= */
.back_theme { 
    background-color: #0b132b !important; 
    color: #ffffff !important;
}
