/**========================================================================
* ?                                ABOUT
* @author         :  TamilChatHub
* @email          :  admin@tamilchathub.com
* @product        :  TamilChatHub (theme)
* @version        :  1.0
* @description    :  Modern glassmorphism theme with purple-blue gradients
*========================================================================**/

/* General Colors and Base Styling */
a { color: #ffd700; text-decoration: none; transition: color 0.3s ease; }
a:hover { color: #ffffff; }

body, #intro_top {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    background-attachment: fixed;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="chatPattern" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.08"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.06"/><circle cx="50" cy="10" r="1" fill="%23ffffff" opacity="0.07"/><circle cx="10" cy="60" r="1" fill="%23ffffff" opacity="0.05"/><circle cx="90" cy="40" r="1" fill="%23ffffff" opacity="0.06"/></pattern></defs><rect width="100" height="100" fill="url(%23chatPattern)"/></svg>');
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
}

button {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

input, textarea, .post_input_container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, 'FontAwesome';
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #fff;
    backdrop-filter: blur(15px);
    border-radius: 10px;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 215, 0, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
    outline: none;
}

.setdef { color: #fff; }

/* Cookie Box */
.cookie_wrap {
    background: rgba(102, 126, 234, 0.9);
    backdrop-filter: blur(20px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Background Effects */
.bback {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.bbackb {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

/* Hover Effects */
.bhover:hover {
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.bbackhover {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.bbackhover:hover {
    background: rgba(255, 255, 255, 0.2);
}

.bbackhoverb {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.bbackhoverb:hover {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Listing Effects */
.blisting {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.blisting:hover {
    background: rgba(255, 255, 255, 0.12);
}

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

/* Private Panel */
.back_ptop {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
    backdrop-filter: blur(20px);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Menu Styling */
.bpmenu:hover {
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.bsub {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.bsub:hover {
    background: rgba(255, 255, 255, 0.3);
}

.bmenu, .submenu {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.bmenu:hover, .submenu:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Box Shadows */
.bshadow, .page_element, .float_menu, .btnshadow, .pboxed {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Selection States */
.bselected {
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.rselected {
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.pselected {
    color: #ffd700;
    font-weight: 600;
}

.cselected, .liked {
    background: rgba(255, 255, 255, 0.15);
}

/* Pagination */
.pag_btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.pagselected, .pag_btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.4);
}

/* Tags */
.gtag {
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 20px;
}

/* Borders */
.bborder { border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.tborder { border-top: 1px solid rgba(255, 255, 255, 0.15); }
.lborder { border-left: 1px solid rgba(255, 255, 255, 0.15); }

/* Left Panel */
.ppanel, .left_panel {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.4) 0%, rgba(118, 75, 162, 0.4) 100%);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.2);
}
/* Right Panel */
.rborder, .right_panel {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.4) 0%, rgba(118, 75, 162, 0.4) 100%);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.2);
}

.rborder { border-right: 1px solid rgba(255, 255, 255, 0.15); }
.fborder { border: 1px solid rgba(255, 255, 255, 0.15); }

/* Float Elements */
.float_top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    color: #fff;
}

.float_ctop {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    color: #fff;
}

/* Float Menu Container */
.float_menu {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.float_menu ul {
    background: transparent;
}

.float_menu li {
    color: #fff;
}

.float_menu a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    transition: all 0.3s ease;
}

.float_menu a:hover {
    color: #ffd700;
    background: rgba(255, 255, 255, 0.2);
}

/* Headers and Footers */
.bhead {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    backdrop-filter: blur(20px);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.modal_top {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    backdrop-filter: blur(20px);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.pro_top {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.bfoot, .foot {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%);
    backdrop-filter: blur(15px);
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Major Background Elements */
.backglob {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Context Menu and Dropdown Menus */
.context_menu,
.dropdown_menu,
.popup_menu {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    color: #fff;
    padding: 8px 0;
}

.context_menu ul,
.dropdown_menu ul,
.popup_menu ul {
    background: transparent;
    margin: 0;
    padding: 0;
}

.context_menu li,
.dropdown_menu li,
.popup_menu li {
    color: rgba(255, 255, 255, 0.95);
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.context_menu li:last-child,
.dropdown_menu li:last-child,
.popup_menu li:last-child {
    border-bottom: none;
}

.context_menu li:hover,
.dropdown_menu li:hover,
.popup_menu li:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffd700;
}

.context_menu a,
.dropdown_menu a,
.popup_menu a {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
}

/* Chat Interface Specific */
.chat_bubble {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.chat_bubble.own {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.3) 0%, rgba(238, 90, 82, 0.3) 100%);
    border-color: rgba(255, 107, 107, 0.4);
}

/* User List and Panels */
.user_list_item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.user_list_item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

/* Buttons and Controls */
.theme_btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
}

.theme_btn:hover {
    background: linear-gradient(135deg, #ff5252 0%, #e53935 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.ok_btn {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.ok_btn:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.default_btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.default_btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Modals */
.modal_back {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal_in {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* Input Fields in Chat */
.chat_input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: white;
    padding: 12px 20px;
    backdrop-filter: blur(15px);
}

.chat_input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Notifications */
.notification {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 10px;
}

.error_notification {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.4);
}

.success_notification {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.4);
}

/* Profile Cards */
.profile_card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Room Cards */
.room_card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.room_card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Loading States */
.loading {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 10px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-in {
    animation: slideIn 0.4s ease-out;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .modal_in {
        border-radius: 15px;
        margin: 10px;
    }
    
    .chat_bubble {
        border-radius: 15px;
    }
    
    .theme_btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    button {
        min-height: 44px; /* Touch-friendly */
    }
    
    input, textarea {
        padding: 12px 16px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    input, textarea, button {
        border-width: 2px;
    }
    
    .bselected, .rselected {
        background: rgba(255, 215, 0, 0.4);
        border-color: rgba(255, 215, 0, 0.6);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Typography & Text Enhancement */
.text_micro, .text_tiny, .text_small, .text_mini { color: rgba(255, 255, 255, 0.85); }
.text_normal, .text_medium, .text_large { color: #fff; }
.text_big, .text_huge { color: #fff; font-weight: 600; }
.text_giant, .text_ultra { color: #ffd700; font-weight: 700; text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); }

.bold { font-weight: 600 !important; }
.heavybold { font-weight: 800 !important; }
.ital { font-style: italic !important; }

/* Text Alignment */
.aleft { text-align: left !important; }
.aright { text-align: right !important; }
.acenter { text-align: center !important; }

/* Text Utilities */
.bellips { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tbreak { word-break: break-all; overflow-wrap: break-word; }
.no_break { white-space: nowrap; }

/* Page Structure & Navigation */
.page_menu_item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #fff;
}

.page_menu_item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page_menu_icon {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.page_menu_item:hover .page_menu_icon {
    opacity: 1;
    filter: brightness(0) invert(1) sepia(1) saturate(10000%) hue-rotate(45deg);
}

/* Enhanced Theme Colors */
.theme_color { color: #ffd700 !important; }
.default_color { color: rgba(255, 255, 255, 0.9) !important; }
.theme_accent { color: #ffd700 !important; text-shadow: 0 2px 4px rgba(255, 215, 0, 0.3); }

/* Cost & Currency Elements */
.cost_tag {
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(10px);
    color: #ffd700;
    font-weight: 600;
}

.cost_tag_icon {
    filter: brightness(0) invert(1) sepia(1) saturate(10000%) hue-rotate(45deg);
}

/* Loading States */
.loading {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Enhanced Error States */
.error_state, .invalid_input {
    background: rgba(244, 67, 54, 0.1) !important;
    border-color: rgba(244, 67, 54, 0.4) !important;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1) !important;
}

.success_state, .valid_input {
    background: rgba(76, 175, 80, 0.1) !important;
    border-color: rgba(76, 175, 80, 0.4) !important;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1) !important;
}

/* Performance Optimizations */
.gpu_accelerated {
    transform: translateZ(0);
    will-change: transform;
}

/* Browser Compatibility */
@supports not (backdrop-filter: blur(10px)) {
    .modal_in, .float_menu, .context_menu, .popup_menu {
        background: rgba(102, 126, 234, 0.95) !important;
    }
}

/* Specific Element Fixes - User Identified Issues */
#main_emoticon {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%) !important;
    backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 15px !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4) !important;
    color: #fff !important;
}

#main_input_extra {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%) !important;
    backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 15px !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4) !important;
    color: #fff !important;
}

#chat_left_data {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%) !important;
    backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 15px !important;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.4) !important;
    color: #fff !important;
}

#chat_right_data {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%) !important;
    backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 15px !important;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.4) !important;
    color: #fff !important;
}

/* ========== CHAT STYLING - FRESH START ========== */

/* 1. Chat Container Base */
#show_chat {
    background: transparent;
    color: #fff;
}

/* 2. Individual Chat Messages */
.ch_logs {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 8px 12px;
    margin: 5px 0;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.ch_logs:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 3. Message Text Content */
.my_text {
    background: transparent;
    color: #fff;
    padding: 4px 0;
}

/* 4. Chat Username */
.username {
    color: #fff;
    font-weight: 600;
}

/* 5. System Messages */
.system_text {
    background: rgba(76, 175, 80, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 8px;
    padding: 6px 10px;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    margin: 3px 0;
}

/* 6. Chat Input Field */
/*#main_input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: white;
    padding: 12px 20px;
    backdrop-filter: blur(15px);
}*/

#main_input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* 7. Chat Avatars */
.chat_avatar img,
.cavatar {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.chat_avatar img:hover,
.cavatar:hover {
    border-color: rgba(255, 215, 0, 0.6);
    transform: scale(1.05);
}

/* 8. User List Items */
.user_item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #fff;
    margin: 2px 0;
}

.user_item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(2px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* 9. Private Messages */
.private_logs {
    background: rgba(255, 193, 7, 0.2);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    padding: 8px 12px;
    margin: 5px 0;
    color: #fff;
}

/* 10. Message Actions */
.chat_action {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 4px 8px;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    font-size: 12px;
}

/* 11. Timestamps */
.cdate {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
}

/* ========== PANEL SYSTEM IMPROVEMENTS ========== */

/* Panel Containers */
.panel_container,
.panel_content,
.panel_wrapper {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.4) 0%, rgba(118, 75, 162, 0.4) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: #fff;
    padding: 15px;
    margin: 10px 0;
}

.avitem{
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.6) 0%, rgba(118, 75, 162, 0.6) 100%);
    backdrop-filter: blur(15px);
    color: #fff;
    font-weight: 600;
    text-align: center;
}
.submenu_item{
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.6) 0%, rgba(118, 75, 162, 0.6) 100%);
    backdrop-filter: blur(15px);
    border-radius: 10px;
    overflow: hidden;
    padding: 10px 15px;
    color: #fff;
    font-weight: 600;
    text-align: center;
}

/* Panel Headers */
.panel_header,
.panel_title {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.6) 0%, rgba(118, 75, 162, 0.6) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    padding: 10px 15px;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 600;
    text-align: center;
}

/* Panel Lists */
.panel_list,
.panel_items {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 10px;
}

.panel_list_item,
.panel_item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    margin: 5px 0;
    transition: all 0.3s ease;
    color: #fff;
}

.panel_list_item:hover,
.panel_item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(3px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Leaderboard Panels */
.leader_panel,
.leaderboard_container {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.4) 0%, rgba(118, 75, 162, 0.4) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin: 10px 0;
}

.leader_item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    margin: 3px 0;
    transition: all 0.3s ease;
    color: #fff;
}

.leader_item:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: scale(1.02);
}

/* Friend Wall Panel */
.friend_wall_panel,
.wall_container {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.35) 0%, rgba(118, 75, 162, 0.35) 100%);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 15px;
}

.wall_post {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 12px;
    margin: 8px 0;
    color: #fff;
}

/* News Panel */
.news_panel,
.news_container {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.4) 0%, rgba(118, 75, 162, 0.4) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 15px;
}

.news_item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px;
    margin: 5px 0;
    color: #fff;
    transition: all 0.3s ease;
}

.news_item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Staff Panel */
.staff_panel,
.staff_container {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.45) 0%, rgba(118, 75, 162, 0.45) 100%);
    backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    padding: 15px;
}

.staff_item {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    padding: 10px;
    margin: 5px 0;
    color: #fff;
}

/* Call List Panel */
.call_panel,
.call_container {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.4) 0%, rgba(118, 75, 162, 0.4) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 15px;
}

.call_item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    margin: 4px 0;
    color: #fff;
    transition: all 0.3s ease;
}

.call_item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Panel Buttons */
.panel_button,
.panel_btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 8px 15px;
    color: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.panel_button:hover,
.panel_btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Panel Search */
.panel_search {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 8px 15px;
    color: #fff;
    margin-bottom: 15px;
}

.panel_search::placeholder {
    color: rgba(255, 255, 255, 0.7);
}


/* Tab Menu */
.tab_menu { 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); 
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.tab_selected { 
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border-bottom: 2px solid #ffd700;
}

/* Modal Menu */
.modal_mback { 
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

.bcell {
    display: table-cell;
    border-radius: 12px;
    /* border: 1px solid rgba(255, 255, 255, 0.2); */
}

/* Modal Dialog Content */
/*.modal_content,
.modal_body,
.modal_dialog {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%) !important;
    backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 15px !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4) !important;
    color: #fff !important;
}*/

.modal_mborder { 
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.modal_selected { 
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

/* Select Input Styling */
.selectboxit-list, .selectboxit-btn { 
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.selectboxit-list .selectboxit-focus .selectboxit-option-anchor { 
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.selectboxit-default-arrow { 
    border-top: 4px solid #ffd700;
}

.selectboxit-btn.selectboxit-enabled:hover, 
.selectboxit-btn.selectboxit-enabled:focus, 
.selectboxit-btn.selectboxit-enabled:active { 
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.selectboxit-options { 
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.selectboxit-list .selectboxit-option-anchor { 
    color: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
}

.selectboxit-list .selectboxit-option-anchor:hover {
    color: #ffd700;
    background: rgba(255, 255, 255, 0.2);
}

.selectboxit-container .selectboxit-options{
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%) !important;
    backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 15px !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4) !important;
    color: #fff !important;
    position: relative;
    z-index: 1;
    
}

/* Additional Menu Types */
.user_menu,
.settings_menu,
.room_menu {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    color: #fff;
    padding: 8px 0;
}

/* Online Users Panel */
.online_users,
.users_online,
.user_list_panel,
.online_panel {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.4) 0%, rgba(118, 75, 162, 0.4) 100%) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 10px !important;
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.2) !important;
    color: #fff !important;
}

.user_menu li,
.settings_menu li,
.room_menu li {
    color: rgba(255, 255, 255, 0.95);
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user_menu li:hover,
.settings_menu li:hover,
.room_menu li:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffd700;
}

/* Right-click Context Menu */
.context_menu_item {
    color: rgba(255, 255, 255, 0.95);
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.context_menu_item:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffd700;
}

.context_menu_item:last-child {
    border-bottom: none;
}

/* Tooltip styling */
.tooltip {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    border-radius: 6px;
    padding: 8px 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    font-size: 12px;
}

/* Emoji Picker */
.emoji-picker,
.emoji_picker,
.emojis_wrap,
.emojis_container {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%) !important;
    backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 15px !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4) !important;
    color: #fff !important;
}

.emoji-picker .emoji,
.emoji_picker .emoji,
.emojis_wrap .emoji {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

.emoji-picker .emoji:hover,
.emoji_picker .emoji:hover,
.emojis_wrap .emoji:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: scale(1.1) !important;
}