/* Modern qwebirc Styles */
/* Scrollbar’ın genel genişliği */
::-webkit-scrollbar {
    width: 4px;   /* dikey scrollbar */
    height: 4px;  /* yatay scrollbar */
}

/* Scrollbar’ın arka planı */
::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 3px;
}

/* Scrollbar’ın tutma yeri */
::-webkit-scrollbar-thumb {
    background: #79bfff;
    border-radius: 3px;
}

/* Hover olunca rengi değişsin */
::-webkit-scrollbar-thumb:hover {
    background: #4a9fe0;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    color: #333;
    /*background: #f0f0f0; */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    font-weight: 400;
}

/* Layout */
#app {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.screen {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hidden {
    display: none !important;
}

/* Connect Screen */
.connect-container {
    max-width: 420px;
    margin: auto;
    padding: 48px 32px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h1 {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #4a90e2 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo p {
    color: #6c757d;
    font-size: 16px;
    font-weight: 500;
}

.connect-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: #555;
}

.form-group input[type="text"], .form-group input[type="password"] {
    padding: 14px 18px;
    border: 2px solid #e3e6ea;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.form-group input[type="text"]:focus, .form-group input[type="password"]:focus {
    outline: none;
    border-color: #4a90e2;
    background: white;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    transform: translateY(-1px);
}

.checkbox-group label {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
}

.form-actions {
    margin-top: 10px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #357abd 0%, #2c5aa0 100%);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #e0e0e0;
    color: #555;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.status {
    padding: 12px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
}

.status.error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.status.success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

.status.info {
    background: #eef;
    color: #33c;
    border: 1px solid #ccf;
}

/* Chat Interface */
.chat-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: white;
}

/* Clean White Navbar - Hepsi sola yaslanmış */
.chat-header {
    display: flex;
    justify-content: flex-start; /* Hepsi sola */
    align-items: center;
    padding: 8px 16px;
    background: #e3effa;
    color: #333;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e9ecef;
    min-height: 48px;
    gap: 16px; /* Tüm elemanlar arası boşluk */
}

.server-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

#server-name {
    font-size: 16px;
    font-weight: 500;
    color: #495057;
}

/* Clean Connection Indicator - Beyaz navbar için */
.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    position: relative;
}

.status-indicator.connected {
    background: #28a745;
}

.status-indicator.connecting {
    background: #ff9800;
    animation: pulse 1s infinite;
}

.status-indicator.disconnected {
    background: #dc3545;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}


/* Navbar User Info - Avatar + Nick + Hoş geldiniz */
.navbar-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e3effa;
    padding: 4px 12px;
    border-radius: 20px;
}

.navbar-radio {
    color: white !important;
    border: none !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    transition: background 0.3s ease;
}

.navbar-radio:hover {
    background: #79bfff !important;
}

.navbar-radio .radio-text {
    margin-left: 4px;
}

.user-avatar-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-avatar-small:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.user-avatar-small .avatar {
    width: 24px;
    height: 24px;
    font-size: 11px;
}

.user-avatar-small .avatar.small {
    width: 24px;
    height: 24px;
    font-size: 11px;
}

.user-avatar-small .avatar img {
    width: 24px;
    height: 24px;
    object-fit: cover;
}

.welcome-text {
    font-size: 12px;
    color: #6c757d;
    font-weight: 400;
}

#current-nick {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

/* Clean Main Menu Button - Beyaz navbar için */
.main-menu-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 16px;
    font-weight: 400;
    box-shadow: none;
}

.main-menu-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #212529;
}

.main-menu-btn:active {
    background: #dee2e6;
}

.chat-main {
    flex: 1;
    display: flex;
    overflow: hidden;
    background: #ffffff;
}

/* Sidebar Toggle Button - Küçük ve kibar */
.sidebar-toggle {
    position: fixed;
    right: 355px; /* 200px (channel) + 150px (user) + 5px */
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 40px;
    background: rgba(0, 123, 255, 0.7);
    color: white;
    border: none;
    border-radius: 6px 0 0 6px;
    cursor: pointer;
    z-index: 200;
    transition: all 0.2s ease;
    display: none; /* Başlangıçta gizli */
    align-items: center;
    justify-content: center;
    font-size: 10px;
    opacity: 0.6;
}

.sidebar-toggle:hover {
    background: rgba(0, 86, 179, 0.9);
    width: 24px;
    opacity: 1;
}

.sidebar-toggle i {
    transition: transform 0.3s ease;
}

.sidebar-toggle.collapsed i {
    transform: rotate(180deg);
}

/* User Sidebar - Sağda (önce) */
.user-sidebar {
    width: 150px;
    background: #f0f7ff;
    border-left: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
    order: 2;
    padding: 4px;
    overflow: auto;
    /*overflow: hidden; */ /* Sağa kaydırma olmasın */
    transition: transform 0.3s ease;
}

/* Channel Sidebar - Sağda (sonra) */
.channel-sidebar {
    width: 200px; /* 150px -> 200px */
    background: #e3effb;
    border-left: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
    order: 3;
    padding: 8px; /* 4px -> 8px */
    overflow-y: auto;
    transition: transform 0.3s ease;
}

/* Sidebar'lar gizlendiğinde */
.user-sidebar.hidden,
.channel-sidebar.hidden {
    transform: translateX(100%);
}

/* Sidebar'lar gizlendiğinde scroll lock pozisyonu */
.sidebar-toggle.collapsed ~ * .scroll-lock,
.user-sidebar.hidden ~ * .scroll-lock {
    right: 30px; /* Sidebar'lar gizlenince chat area'nın sağında */
}

/* Toggle butonu sidebar gizlendiğinde */
.sidebar-toggle.collapsed {
    right: 2px; /* Sidebar'lar gizlenince kenara */
    background: rgba(0, 123, 255, 0.5);
    opacity: 0.4;
}

.sidebar-toggle.collapsed:hover {
    background: rgba(0, 123, 255, 0.8);
    opacity: 0.9;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px; /* 4px -> 6px */
    padding: 6px 10px; /* 4px 8px -> 6px 10px */
    background: #f0f7ff;
    color: #495057;
    font-size: 12px; /* 11px -> 12px */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #dee2e6;
}

.user-count {
    background: #007bff;
    color: white;
    padding: 1px 4px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 600;
}

.channel-tabs {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

/* Query tab'ları farklı stil */
.channel-tab[data-is-channel="false"] {
    font-style: italic;
    color: #6c757d;
}

.channel-tab[data-is-channel="false"]:hover {
    background: #f8f9fa;
}

.channel-tab[data-is-channel="false"].active {
    background: #6c757d;
}

.channel-tab {
    padding: 6px 12px; /* 3px 8px -> 6px 12px */
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 13px; /* 11px -> 13px */
    font-weight: 500;
    color: #495057;
    transition: all 0.2s ease;
    position: relative;
    margin-bottom: 2px; /* 1px -> 2px */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border-radius: 4px; /* 2px -> 4px */
}

.channel-tab:hover {
    background: #e9ecef;
    color: #212529;
}

.channel-tab.active {
    background: #007bff;
    color: white;
    font-weight: 600;
}

.channel-tab.has-activity {
    font-weight: 600;
    color: #E91E63;
}
/*
.channel-tab.has-activity::before {
    content: '●';
    margin-right: 4px;
    color: #0f0a9a;
    font-size: 8px;
}
*/
.channel-close {
    opacity: 0.5;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 5px;
    transition: opacity 0.2s;
}

.channel-close:hover {
    opacity: 1;
}

.channel-tab.active .channel-close {
    /*
    color: white;
    */
color: #0f0a9a;
}
/*
.users {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
*/
.users{
    width: 150px;
    flex: 1;
    padding: 4px;
    background: #f0f7ff;
    flex-direction: column;
    overflow: auto;
}
.user-sidebar::-webkit-scrollbar {
    width: 0px;
    height: 0px;
}
.user-sidebar {
  scrollbar-width: none; 
}
.user-search {
    padding: 4px;
    background: #f0f7ff;
    border-bottom: 1px solid #dee2e6;
}

.nick-search-input {
    width: 100%;
    padding: 4px 8px;
    border: 1px dashed #dee2e6;
    border-radius: 3px;
    font-size: 11px;
    background: #f8f9fa;
}

.nick-search-input:focus {
    outline: none;
    border-color: #007bff;
    background: #ffffff;
}

.users {
    flex: 1;
    padding: 4px;
    background: #f0f7ff;
}

.user {
    padding: 2px 8px;
    font-size: 11px;
    color: #495057;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.2s ease;
    margin-bottom: 1px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.user:hover {
    background: #e9ecef;
    color: #212529;
}

.no-users {
    padding: 10px 8px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
    font-size: 10px;
}

.user.op {
    color: #dc3545;
    font-weight: 600;
}

.user.voice {
    color: #fd7e14;
    font-weight: 600;
}

/* IRC Prefix Colors */
.user.owner {
    color: #8e44ad;
    font-weight: 700;
}

.user.admin {
    color: #e67e22;
    font-weight: 700;
}

.user.halfop {
    color: #f1c40f;
    font-weight: 600;
}

/* User Item Layout */
.user-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-avatar {
    flex-shrink: 0;
}

/* Nick listesindeki user-info - ayrı class */
.user-item-info {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Nick prefix styling - now applied directly to user-nick */
/* VIP nickler için prefix renkleri devre dışı - VIP stili öncelikli */
.user.owner .user-nick:not(.vip-nick) { color: #8e44ad; font-weight: bold; }
.user.admin .user-nick:not(.vip-nick) { color: #e67e22; font-weight: bold; }
.user.op .user-nick:not(.vip-nick) { color: #dc3545; font-weight: bold; }
.user.halfop .user-nick:not(.vip-nick) { color: #f1c40f; font-weight: bold; }
.user.voice .user-nick:not(.vip-nick) { color: #fd7e14; font-weight: bold; }

/* VIP Nick Stili - Tamamen dinamik olarak JavaScript'ten uygulanacak */

/* Prefix sıralaması (qwebirc uyumlu) */
.user.owner { order: 1; }
.user.admin { order: 2; }
.user.op { order: 3; }
.user.halfop { order: 4; }
.user.voice { order: 5; }
.user:not(.owner):not(.admin):not(.op):not(.halfop):not(.voice) { order: 6; }

.user-nick {
    font-size: 11px;
}

/* Avatar Styles */
.avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Message Avatar */
/*
.message-line {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}
*/
.message-line {
    align-items: flex-start;
    gap: 6px;
}
.message-avatar .avatar {
    width: 18px;
    height: 18px;
    font-size: 12px;
}

.message-time {
    flex-shrink: 0;
    margin-right: 2px;
    margin-left: 2px;
}

.message-nick {
    font-weight: 600;
    margin-right: 2px;
    margin-left: 2px;
}

.message-text {
    flex: 1;
    word-wrap: break-word;
    overflow: hidden;
}

.action-text {
    font-style: italic;
    color: #6f42c1;
}

.btn-icon {
    background: #007bff;
    color: white;
    border: none;
    width: 18px;
    height: 18px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: #0056b3;
}

/* Chat Content - Sol taraf (tam genişlik) */
.chat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f0f7ff;
    order: 1;
    position: relative; /* Logo için relative positioning */
}

.chat-logo {
    position: absolute;
    top: 45px; /* Topic bar'ın altında */
    right: 10px;
    z-index: 100;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.chat-logo:hover {
    opacity: 0.8;
}

.logo-image {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
}

.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    background: #f0f7ff;
    position: relative;
}


.messages { 
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0px;
}

.message {
    margin: 0;
    /* padding: 1px 4px; */
    padding: 0px;
    word-wrap: break-word;
    font-size: 12px;
    line-height: 1.3;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    border-bottom: 1px solid #f8f9fa;
}

.message:hover {
    background: #f8f9fa;
}

.message.system {
    color: #6c757d;
    font-style: italic;
}

.message.error {
    color: #dc3545;
    font-weight: 500;
}

.message.action {
    color: #6f42c1;
    font-style: italic;
}

.message.privmsg {
    color: #212529;
}

/* Seslenme mesajları için özel stil */
.message.mention {
    background-color: #fff3cd;
    border-left: 3px solid #ffc107;
    padding-left: 5px;
}

/* CTCP mesajları için özel stil */
.message.ctcp {
    color: #6f42c1;
    font-style: italic;
}

/* Fun Commands Bar - Özel mesajlarda */
.fun-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: linear-gradient(135deg, #ffeef8, #fff0f8);
    border-bottom: 1px solid #f8d7da;
    border-top: 1px solid #f8d7da;
}

.fun-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fun-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
}

.fun-avatar .avatar {
    width: 56px;
    height: 56px;
    font-size: 20px;
}

.fun-nick {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.fun-actions {
    display: flex;
    gap: 8px;
    position: relative;
}

.fun-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.fun-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.fun-btn[data-action="block"] {
    background: #dc3545;
    color: white;
}

.fun-btn[data-action="block"]:hover {
    background: #c82333;
}

.fun-btn[data-action="close-private"] {
    background: #6c757d;
    color: white;
}

.fun-btn[data-action="close-private"]:hover {
    background: #545b62;
}

.fun-btn.fun-main {
    background: linear-gradient(135deg, #ff6b9d, #ff8fab);
    color: white;
    font-weight: 600;
}

.fun-btn.fun-main:hover {
    background: linear-gradient(135deg, #ff5a8a, #ff7ea0);
}

/* Fun Commands Dropdown */
.fun-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    z-index: 300;
    min-width: 160px;
    margin-top: 4px;
}

.fun-menu-item {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease;
    font-size: 13px;
}

.fun-menu-item:hover {
    background: #f8f9fa;
}

.fun-menu-item:first-child {
    border-radius: 8px 8px 0 0;
}

.fun-menu-item:last-child {
    border-radius: 0 0 8px 8px;
}

.fun-menu-item[data-action="send-heart"] {
    color: #e91e63;
}

.fun-menu-item[data-action="send-flower"] {
    color: #4caf50;
}

.fun-menu-item[data-action="poke"] {
    color: #ff9800;
}

/* Dürtme titreşim animasyonu */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

/* Radyo Butonu */
.radio-btn {
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    min-width: 140px;
    text-align: right;
    margin-left: auto;
    background: #79bfff;
    background-image: -webkit-gradient(linear, left top, left bottom, from(#79bfff), to(#8aa8b9));
    background-image: linear-gradient(to bottom, #79bfff, #8aa8b9);
    color: white !important;
    box-shadow: 0 0 15px rgba(0, 86, 179, 0.4);
    border: none !important;
}

/* Mobile Private Messages - PC'de tamamen gizle */
.mobile-private-btn,
.mobile-private-sidebar {
    display: none !important;
}

.radio-btn .radio-text {
    display: inline-block;
    white-space: nowrap;
    margin-left: auto;
    order: 2;
}

.radio-btn i {
    order: 1;
    margin-right: auto;
}

/* Her zaman görünen ekolayzır */
.radio-btn::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 12px;
    background: linear-gradient(to right, 
        transparent 0%, 
        transparent 20%, 
        #fff 20%, 
        #fff 25%, 
        transparent 25%, 
        transparent 45%, 
        #fff 45%, 
        #fff 50%, 
        transparent 50%, 
        transparent 70%, 
        #fff 70%, 
        #fff 75%, 
        transparent 75%, 
        transparent 95%, 
        #fff 95%, 
        #fff 100%
    );
    background-size: 100% 100%;
}

.radio-btn.playing .radio-text {
    font-weight: bold;
    color: #fff;
}

/* Çalarken ekolayzır animasyonu */
.radio-btn.playing::before {
    animation: equalizer 0.8s ease-in-out infinite alternate;
}

.radio-btn.playing i {
    animation: radioSpin 3s linear infinite;
    color: #fff;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

@keyframes equalizer {
    0% { 
        background: linear-gradient(to right, 
            transparent 0%, 
            transparent 20%, 
            #fff 20%, 
            #fff 25%, 
            transparent 25%, 
            transparent 45%, 
            #fff 45%, 
            #fff 50%, 
            transparent 50%, 
            transparent 70%, 
            #fff 70%, 
            #fff 75%, 
            transparent 75%, 
            transparent 95%, 
            #fff 95%, 
            #fff 100%
        );
        transform: translateY(-50%) scaleY(0.3);
    }
    25% {
        transform: translateY(-50%) scaleY(0.8);
    }
    50% { 
        background: linear-gradient(to right, 
            #fff 0%, 
            #fff 15%, 
            transparent 15%, 
            transparent 30%, 
            #fff 30%, 
            #fff 45%, 
            transparent 45%, 
            transparent 60%, 
            #fff 60%, 
            #fff 75%, 
            transparent 75%, 
            transparent 90%, 
            #fff 90%, 
            #fff 100%
        );
        transform: translateY(-50%) scaleY(1.2);
    }
    75% {
        transform: translateY(-50%) scaleY(0.6);
    }
    100% { 
        background: linear-gradient(to right, 
            transparent 0%, 
            transparent 10%, 
            #fff 10%, 
            #fff 20%, 
            transparent 20%, 
            transparent 35%, 
            #fff 35%, 
            #fff 55%, 
            transparent 55%, 
            transparent 80%, 
            #fff 80%, 
            #fff 90%, 
            transparent 90%, 
            transparent 100%
        );
        transform: translateY(-50%) scaleY(0.9);
    }
}

@keyframes radioPulse {
    0% { 
        opacity: 1; 
        transform: scale(1);
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1.05);
        text-shadow: 0 0 15px rgba(255, 255, 255, 1);
    }
    100% { 
        opacity: 1; 
        transform: scale(1);
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }
}

@keyframes radioSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Floating animasyon - kalp ve çiçek */
.floating-animation {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-animation img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes floatUp {
    0% {
        bottom: -50px;
        left: var(--start-x, 50%);
        opacity: 0;
        transform: scale(0.5) rotate(0deg);
    }
    20% {
        opacity: 1;
        transform: scale(1) rotate(10deg);
    }
    80% {
        opacity: 1;
        transform: scale(1.2) rotate(-10deg);
    }
    100% {
        bottom: 100vh;
        left: var(--end-x, 50%);
        opacity: 0;
        transform: scale(0.8) rotate(20deg);
    }
}

.message-time {
    color: #6c757d;
    font-size: 10px;
    font-weight: normal;
}

.message-header {
    display: inline;
}

.message-nick {
    font-weight: 600;
    cursor: pointer;
    color: #007bff;
}

.message-time {
    color: #6c757d;
    font-size: 10px;
    margin-right: 2px;
    margin-top: 2px;
}

.message-content {
    display: inline;
}

/* Emoji Styles */
.emoji {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin: 0 1px;
    display: inline-block;
}

/* Sticker stil - biraz daha büyük */
.emoji.sticker {
    width: 32px;
    height: 32px;
}

/* Unicode emoji styling (telefondan gelen) */
.unicode-emoji {
    font-size: 16px;
    vertical-align: middle;
    margin: 0 1px;
    display: inline-block;
    line-height: 1;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Android Emoji", sans-serif;
    -webkit-font-feature-settings: "liga" off;
    font-feature-settings: "liga" off;
}

.topic-bar {
    padding: 8px 12px;
    background: #f0f7ff;
    border-bottom: 1px solid #dee2e6;
    font-size: 12px;
    color: #495057;
    font-weight: 500;
    word-wrap: break-word;
}

.input-container {
    padding: 0;
    background: #f0f7ff;
    border-top: 1px solid #dee2e6;
}

/* Message Toolbar */
.message-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: #f0f7ff;
    border-bottom: 1px solid #dee2e6;
}

.toolbar-btn {
    padding: 4px 8px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    color: #495057;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.toolbar-btn:hover {
    background: #79bfff;
    border-color: #adb5bd;
}

.toolbar-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.toolbar-divider {
    width: 1px;
    height: 20px;
    background: #dee2e6;
    margin: 0 4px;
}

/* Message Form */
.message-form {
    display: flex;
}

.input-group {
    display: flex;
    width: 100%;
    border: none;
    overflow: hidden;
    border-bottom: 1px solid #dee2e6;
}

.input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

#message-input {
    flex: 1;
    padding: 10px 40px 10px 12px;
    border: none;
    font-size: 13px;
    background: #ffffff;
    outline: none;
}

.emoji-btn-input {
    width: 30px;
    height: 30px;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #f39c12;
    cursor: pointer;
    font-size: 16px;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 10;
}

.emoji-btn-input:hover {
    background: #ffeaa7;
    color: #e67e22;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

.nick-complete-btn {
    padding: 8px 10px;
    background: #79bfff;
    background-image: linear-gradient(to bottom, #79bfff, #8aa8b9);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
}

.nick-complete-btn:hover {
    background: #79bfff;
}

.btn-send {
    padding: 8px 16px;
    background: #79bfff;
    color: white;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.btn-send:hover {
    background: #79bfff;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.4);
    transform: translateY(-1px);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    min-width: 400px;
    max-width: 90vw;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 0;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .channel-sidebar,
    .user-sidebar {
        position: fixed;
        right: -300px;
        top: 60px;
        bottom: 0;
        z-index: 100;
        transition: right 0.3s;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .channel-sidebar.open,
    .user-sidebar.open {
        right: 0;
    }
    
    .chat-header {
        position: relative;
        z-index: 101;
    }
    
    .connect-container {
        margin: 20px;
        max-width: none;
    }
    
    .modal-content {
        min-width: 0;
        margin: 20px;
    }
}

/* Toast Notification Styles */
.toast-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 15000;
    pointer-events: none;
    padding: 0;
}

.toast {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 0;
    margin: 0;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    pointer-events: auto;
    transform: translateY(100%);
    opacity: 0;
    animation: toastSlideDown 0.4s ease forwards;
}

.toast.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.3);
}

.toast.info {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
    box-shadow: 0 4px 20px rgba(23, 162, 184, 0.3);
}

.toast.warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.3);
    color: #212529;
}

.toast.error {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.3);
}

.toast-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: currentColor;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.toast-close:hover {
    opacity: 1;
}

@keyframes toastSlideDown {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

.toast.removing {
    animation: toastSlideOut 0.3s ease forwards;
}

/* Mobilde toast */
@media (max-width: 768px) {
    .toast-container {
        bottom: 0;
        left: 0;
        right: 0;
        padding: 0;
    }
    
    .toast {
        width: 100%;
        font-size: 13px;
        padding: 10px 12px;
        border-radius: 0;
    }
}

/* Font Size Control */
.font-size-control {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    background: #79bfff;
    background-image: linear-gradient(to bottom, #79bfff, #8aa8b9);
    border-radius: 6px;
    border: none;
    font-size: 12px;
    margin-left: auto; /* Sağa hizala */
}

.font-size-label {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #495057 !important;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.font-size-select {
    padding: 2px 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #79bfff;
    font-size: 11px;
    color: #fff;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
    border: none;
}

.font-size-select:hover {
    border-color: #007bff;
}

.font-size-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

/* Karanlık tema kaldırıldı - sadece aydınlık tema */

/* Voice Modal Styles */
.voice-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.voice-modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow: hidden;
}

.voice-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.voice-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.voice-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.voice-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.voice-modal-body {
    padding: 20px;
}

.voice-modal-body p {
    margin: 0 0 20px 0;
    color: #495057;
    text-align: center;
}

.voice-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.voice-option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.voice-option-btn:hover {
    border-color: #007bff;
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.voice-option-btn i {
    font-size: 32px;
    color: #007bff;
    margin-bottom: 12px;
}

.voice-option-btn span {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
}

.voice-option-btn small {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
}

/* Voice Recording Modal */
.voice-recording-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.voice-recording-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 350px;
    text-align: center;
}

.voice-recording-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border-radius: 12px 12px 0 0;
}

.voice-recording-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.voice-recording-body {
    padding: 30px 20px;
}

.recording-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.recording-icon {
    font-size: 48px;
    color: #dc3545;
    margin-bottom: 10px;
}

.recording-icon.pulsing {
    animation: recordingPulse 1.5s ease-in-out infinite;
}

@keyframes recordingPulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.6; 
        transform: scale(1.1);
    }
}

.recording-status span {
    font-size: 16px;
    color: #495057;
    font-weight: 500;
}

.recording-timer {
    font-size: 32px;
    font-weight: 700;
    color: #dc3545;
    font-family: 'Courier New', monospace;
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.recording-controls {
    display: flex;
    justify-content: center;
}

.record-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.record-btn.stop {
    background: #dc3545;
    color: white;
}

.record-btn.stop:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Image Modal Styles */
.media-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    cursor: pointer;
}

.media-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 1001;
}

.media-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.media-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Message Media Styles */
.message-media {
    margin-top: 8px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

/* Media Approval Styles */
.media-approval {
    position: relative;
}

.media-approval-overlay {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.media-approval-icon {
    font-size: 48px;
    color: #856404;
    margin-bottom: 15px;
    opacity: 0.7;
}

.media-approval-content h4 {
    margin: 0 0 10px 0;
    color: #856404;
    font-size: 16px;
    font-weight: 600;
}

.media-approval-content p {
    margin: 8px 0;
    color: #856404;
    font-size: 14px;
    line-height: 1.4;
}

.media-approval-actions {
    margin-top: 15px;
}

.media-approval-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.media-approval-btn.show {
    background: #28a745;
    color: white;
}

.media-approval-btn.show:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.media-content {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.message-media img {
    max-width: 300px;
    max-height: 200px;
    width: auto;
    height: auto;
    cursor: pointer;
    transition: opacity 0.2s ease;
    display: block;
}

.message-media img:hover {
    opacity: 0.9;
}

.message-media audio {
    width: 100%;
    max-width: 300px;
}

.message-media-info {
    padding: 8px 12px;
    background: #e9ecef;
    font-size: 12px;
    color: #6c757d;
    border-top: 1px solid #dee2e6;
}

/* ===============================================
   MOBİL RESPONSIVE - BASİT VE ETKİLİ (768px altı)
   =============================================== */

@media (max-width: 768px) {
    /* 1. Body ve HTML - aşağı sıfır */
    html, body {
        margin: 0;
        margin-bottom: 0;
        padding: 0;
        padding-bottom: 0;
        overflow-x: hidden;
        height: 100vh; /* Tam viewport yüksekliği */
    }
    
    /* Container'lar da aşağı sıfır */
    .main-container,
    .container-fluid,
    .chat-main {
        margin: 0;
        margin-bottom: 0;
        padding: 0;
        padding-bottom: 0;
        height: 100vh;
    }

    /* 2. Navbar */
    .chat-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 48px;
        z-index: 1000;
    }

    /* 2. Channels container - içeriğe göre tam otomatik */
    .channel-sidebar {
        position: fixed !important;
        top: 48px !important;
        left: 0 !important;
        right: 0 !important;
        height: fit-content !important; /* İçeriğe göre */
        min-height: auto !important; /* Minimum yok */
        max-height: none !important; /* Maksimum yok */
        background: #e3effa !important;
        border-bottom: 1px solid #dee2e6 !important;
        z-index: 999 !important;
        padding: 4px !important; /* Sadece kenar boşluğu */
        margin: 0 !important;
        overflow: visible !important; /* Scroll yok */
        border-left: none !important;
        border-right: none !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Kanallar başlığını ve katıl butonunu gizle */
    .channel-sidebar .sidebar-header,
    .channel-sidebar .section-header,
    .channel-sidebar h3,
    .channel-sidebar .sidebar-title,
    .channel-sidebar .join-channel-btn,
    .channel-sidebar #join-channel-btn,
    .channel-sidebar .btn-icon,
    .channel-sidebar button[onclick*="join"],
    .channel-sidebar button[title*="Katıl"],
    .channel-sidebar .add-channel,
    .channel-sidebar .channel-add {
        display: none !important;
    }

    /* 3. Channels tam sıkı - sadece içerik kadar */
    .channels,
    .channel-tabs,
    #channels {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 2px !important;
        padding: 0 !important; /* Padding sıfır */
        margin: 0 !important;
        height: fit-content !important; /* Tam içerik boyutu */
        min-height: auto !important; /* Minimum yok */
        width: 100% !important;
        box-sizing: border-box !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        align-content: flex-start !important; /* İçerik üstte */
        overflow: visible !important;
    }

    /* 3. Channel elementleri sıkı */
    .channel,
    .channel-tab {
        flex: 0 0 calc(25% - 4px) !important;
        height: 22px !important; /* Biraz daha kısa */
        padding: 2px 4px !important; /* Daha az padding */
        margin: 1px !important;
        background: #e3effb !important;
        border: 1px solid #dee2e6 !important;
        border-radius: 3px !important;
        font-size: 13px !important;
        text-align: center !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-overflow: ellipsis !important;
        overflow: hidden !important;
        white-space: nowrap !important;
    }

    .channel a,
    .channel span,
    .channel button {
        display: inline !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        color: inherit !important;
        text-decoration: none !important;
        font-size: inherit !important;
        font-weight: inherit !important;
    }

    .channel.active,
    .channel-tab.active,
    .channel-sidebar .channel.active,
    .channel-sidebar .channel-tab.active,
    #channels .channel-tab.active,
    [data-channel].active {
        /*
        background: #007bff !important;
        color: #ffffff !important;
        font-weight: 600 !important;
        border-color: #0056b3 !important;
        */
        background: #b9bfc5 !important;
        color: #333331 !important;
        font-weight: 600 !important;
        border-color: #ccd5dc !important;
    }

    .channel:hover,
    .channel-tab:hover,
    .channel-sidebar .channel:hover,
    .channel-sidebar .channel-tab:hover,
    #channels .channel-tab:hover,
    [data-channel]:hover {
        background: #f8f9fa !important;
        color: #007bff !important;
        border-color: #007bff !important;
    }

    .channel.active:hover,
    .channel-tab.active:hover,
    .channel-sidebar .channel.active:hover,
    .channel-sidebar .channel-tab.active:hover,
    #channels .channel-tab.active:hover,
    [data-channel].active:hover {
        background: #fff !important;
        color: #0056b3 !important;
    }

    /* 4. Nicklist - input altında kalacak */
    .user-sidebar {
        position: fixed;
        top: 148px; /* Navbar (48px) + Channels (80px) + Topic (20px) */
        right: 0;
        bottom: 60px;
        width: 130px;
        background: #f8f9fa;
        border-left: 1px solid #dee2e6;
        z-index: 997; /* Input'tan düşük */
        overflow-y: auto;
        padding: 4px;
        margin: 0;
    }
    
    /* Sadece "Kullanıcılar" başlığını gizle */
    .user-sidebar .section-header {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    } 

    /* Chat main alanı - full width */
    .chat-main {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 5. Chat content - JavaScript ile dinamik margin-top */
    .chat-content {
        margin-top: 148px !important; /* JavaScript ile güncellenecek */
        margin-right: 130px !important; /* Nicklist genişliği */
        margin-bottom: 60px !important;
        margin-left: 0 !important;
        padding: 0 !important;
        padding-right: 0 !important; /* Sağ padding sıfır */
        width: calc(100% - 150px) !important;
        border-right: none !important;
        box-sizing: border-box !important;
    }

    /* 6. Messages container - garantili görünürlük */
    .messages-container {
        margin: 0 !important;
        margin-top: 0 !important;
        padding: 0px !important;
        border: none !important;
        border-top: none !important;
        border-right: none !important;
        width: 100% !important;
        box-sizing: border-box !important;
        position: relative !important;
        top: 0 !important;
        min-height: 200px !important; /* Minimum yükseklik garantisi */
        display: block !important;
        visibility: visible !important;
        background: #f0f7ff !important;
    }

    
    /* Topic bar - JavaScript ile dinamik pozisyon */
    .topic-bar {
        position: fixed !important;
        top: 148px !important; /* JavaScript ile güncellenecek */
        left: 0 !important;
        right: 0 !important; /* Sağ sıfır - nicklist üstüne */
        width: 100% !important;
        display: block !important;
        margin: 0 !important;
        padding: 4px 8px !important;
        background: #f0f7ff !important;
        border-bottom: 1px solid #dee2e6 !important;
        border-top: none !important;
        font-size: 12px !important;
        color: #495057 !important;
        height: auto !important; /* Dinamik yükseklik */
        min-height: 20px !important;
        line-height: 16px !important;
        overflow: visible !important; /* Wrap için */
        word-wrap: break-word !important;
        word-break: break-all !important;
        white-space: normal !important; /* Alt satıra geç */
        z-index: 999 !important; /* Nicklist üstünde */
        box-sizing: border-box !important;
    }

    /* 3. Input container - tam genişlik, nicklist üstüne */
    .input-container {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        width: 100%;
        background: white;
        border-top: 1px solid #ddd;
        border-bottom: none;
        border-left: none;
        border-right: none;
        z-index: 1002;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
    }

    /* 4. Message toolbar - tam genişlik, nicklist üstünde */
    .message-toolbar {
        height: 30px;
        padding: 0;
        padding-bottom: 0;
        margin: 0;
        margin-bottom: 0;
        background: #f6f6ff;
        border-bottom: 1px solid #ddd;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        position: relative;
        left: 0;
        right: 0;
        border-left: none;
        border-right: none;
        z-index: 1003;
    }

    /* 5. Message form - tam genişlik */
    .message-form {
        height: 30px;
        padding: 0;
        padding-bottom: 0;
        margin: 0;
        margin-bottom: 0;
        display: flex;
        align-items: center;
        border-bottom: none;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        position: relative;
        left: 0;
        right: 0;
        border-left: none;
        border-right: none;
        z-index: 1003;
    }

    /* 6. Input group - tam genişlik */
    .input-group {
        margin: 0;
        margin-bottom: 0;
        padding: 0;
        padding-bottom: 0;
        display: flex;
        align-items: center;
        width: 100%;
        max-width: 100%;
        border-bottom: none;
        box-sizing: border-box;
        position: relative;
        left: 0;
        right: 0;
        border-left: none;
        border-right: none;
    }

    /* 7. Message input basit */
    #message-input {
        flex: 1;
        height: 30px;
        padding: 2px 8px;
        border: 1px solid #cdd9f9;
        border-radius: 4px;
        margin: 0;
        padding-right: 45px !important;
    }

    #message-input::-webkit-input-placeholder { color: #a9b8e0; }
    #message-input:-ms-input-placeholder { color: #a9b8e0; }
    #message-input::placeholder { color: #a9b8e0; }

    /* 8. Send button basit */
    .send-button,
    button[type="submit"] {
        height: 22px;
        padding: 20px 15px;
        margin-left: 4px;
        background-image: linear-gradient(to bottom, #79bfff, #8aa8b9);
        color: white;
        border: none;
        border-radius: 4px;
    }

    /* Mobilde gizlenecek butonlar - HER YERDE GÜÇLÜ GİZLE */
    .alternative-version-btn,
    .mirc-download-btn,
    .btn-secondary,
    #different-btn,
    #mirc-btn,
    button[onclick*="mirc"],
    button[onclick*="alternative"],
    button[onclick*="mIRC"],
    button[onclick*="Farklı"],
    button[title*="mIRC"],
    button[title*="Farklı"],
    button[title*="mirc"],
    button[title*="alternative"],
    a[href*="mirc"],
    a[href*="alternative"],
    a[href*="mIRC"],
    a[href*="Farklı"],
    [class*="mirc"],
    [class*="alternative"],
    [id*="mirc"],
    [id*="alternative"] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Message toolbar'daki tüm mIRC/Farklı sürüm butonları ve divider */
    .message-toolbar .alternative-version-btn,
    .message-toolbar .mirc-download-btn,
    .message-toolbar #different-btn,
    .message-toolbar #mirc-btn,
    .message-toolbar .toolbar-divider,
    .message-toolbar button[onclick*="mirc"],
    .message-toolbar button[onclick*="alternative"],
    .message-toolbar button[onclick*="mIRC"],
    .message-toolbar button[onclick*="Farklı"],
    .message-toolbar button[title*="mIRC"],
    .message-toolbar button[title*="Farklı"],
    .message-toolbar a[href*="mirc"],
    .message-toolbar a[href*="alternative"],
    .message-toolbar [class*="mirc"],
    .message-toolbar [class*="alternative"] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    /* Connect screen'deki butonları da gizle */
    .connect-container .alternative-version-btn,
    .connect-container .mirc-download-btn,
    .connect-container .btn-secondary,
    .connect-container button[onclick*="mirc"],
    .connect-container button[onclick*="alternative"],
    .connect-container [class*="mirc"],
    .connect-container [class*="alternative"] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    /* Sadece mIRC ve Farklı sürüm butonlarını gizle - yazı boyutu kalsın */
    /* Buton gizleme kurallarını kaldırdık, sadece spesifik butonlar gizli */

    /* Toolbar sol butonları grup */
    .toolbar-buttons-left {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        flex: 1 !important;
    }

    /* Toolbar butonlarını küçült */
    .toolbar-btn {
        padding: 3px 6px !important;
        font-size: 11px !important;
        flex-shrink: 0 !important;
        color: #ffffff;
        background: #79bfff;
        background-image: linear-gradient(to bottom, #2673b9, #8aa8b9);
    }

    /* 11. Users list - normal düzen */
    .users {
        padding: 2px !important;
        margin: 0 !important;
    }

    .user {
        padding: 3px 6px !important;
        margin: 1px 0 !important;
        font-size: 11px !important;
        background: none !important;
        border-bottom: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important; /* Normal soldan başla */
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
        
    }

    .user:hover {
        background: rgba(0, 123, 255, 0.1) !important;
    }

    /* User avatars normal */
    .user-avatar,
    .user .avatar {
        width: 16px !important;
        height: 16px !important;
        border-radius: 50% !important;
        margin-right: 4px !important; /* Normal sağ margin */
        vertical-align: middle !important;
    }

    .user-search {
        padding: 4px !important;
    }

    .nick-search-input {
        padding: 4px 6px !important;
        font-size: 10px !important;
    }

    /* Font size control mobilde sağa hizalı tek sıra */
    .font-size-control {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        margin-left: auto !important; /* Sağa hizala */
        margin-right: 8px !important;
        flex-shrink: 0 !important;
    }

    .font-size-label {
        display: flex !important;
        align-items: center !important;
        gap: 3px !important;
        font-size: 10px !important;
        color: #495057 !important;
        white-space: nowrap !important;
        width: 120px;
    }

    .font-size-label i {
        font-size: 10px !important;
    }

    .font-size-select {
        position: absolute;
        padding: 2px 4px !important;
        font-size: 10px !important;
        border: none;
        border-radius: 3px !important;
        background: #79bfff !important;
        background-image: linear-gradient(to bottom, #2673b9, #8aa8b9);
        min-width: 50px !important;
        right: 3px;
        margin-top: -1px;
    }

    /* Radio button mobilde küçük */
    .radio-btn {
        padding: 4px 8px !important;
        font-size: 11px !important;
    }

    .radio-text {
        display: block !important;
    }

    /* Tema seçici mobilde küçük */
    .team-theme-selector {
        margin: 0 5px !important;
    }

    .team-theme-btn {
        padding: 4px 8px !important;
        min-width: 100px !important;
        font-size: 11px !important;
    }

    .team-name {
        font-size: 10px !important;
    }

    /* Avatar'lar mobilde küçük */
    .message-avatar .avatar {
        width: 16px !important;
        height: 16px !important;
        font-size: 10px !important;
    }

    .user-avatar-small {
        width: 20px !important;
        height: 20px !important;
        font-size: 12px !important;
    }

    /* Navbar mobilde */
    .chat-header {
        padding: 6px 12px !important;
        min-height: 48px !important;
        gap: 8px !important;
    }

    /* Navbar mobilde temiz görünüm */
    .chat-header {
        padding: 8px 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .navbar-brand {
        font-size: 16px !important;
        font-weight: bold !important;
    }

    .welcome-text {
        display: none !important;
    }

    /* Mobilde navbar temizliği - sadece radyo butonu kalacak */
    .navbar-user-info,
    .user-avatar-small,
    #current-nick,
    #server-name,
    .status-indicator,
    .connection-indicator,
    .team-theme-selector {
        display: none !important;
    }

    /* Radyo butonu mobilde optimize */
    .radio-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-left: auto !important;
        padding: 8px 12px !important;
        font-size: 14px !important;
        border-radius: 6px !important;
        background: #79bfff;
        background-image: -webkit-gradient(linear, left top, left bottom, from(#79bfff), to(#8aa8b9));
        background-image: linear-gradient(to bottom, #79bfff, #8aa8b9);
        color: white !important;
        border: none !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
    }

    .radio-btn:hover {
        background: #79bfff !important;
        transform: scale(1.05) !important;
    }

        .radio-btn i {
            margin-right: 4px !important;
        }
        
        /* Mobile Private Messages Button - Sadece mobile'da görünür */
        .mobile-private-btn {
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            margin-left: 8px !important;
            padding: 8px 12px !important;
            font-size: 12px !important;
            font-weight: 600 !important;
            border-radius: 6px !important;
            background: #79bfff;
            background-image: -webkit-gradient(linear, left top, left bottom, from(#79bfff), to(#8aa8b9));
            background-image: linear-gradient(to bottom, #79bfff, #8aa8b9);
            color: white !important;
            border: none !important;
            cursor: pointer !important;
            transition: all 0.2s ease !important;
        }
        
        .mobile-private-btn:hover {
            background: #79bfff !important;
            transform: scale(1.05) !important;
        }
        
        /* Mobile Private Messages Sidebar */
        .mobile-private-sidebar {
            display: block !important;
            position: fixed !important;
            top: 0 !important;
            right: -100% !important;
            width: 280px !important;
            height: 100vh !important;
            background: white !important;
            border-left: 1px solid #ddd !important;
            box-shadow: -4px 0 12px rgba(0,0,0,0.15) !important;
            z-index: 2000 !important;
            transition: right 0.3s ease !important;
            overflow-y: auto !important;
        }
        
        .mobile-private-sidebar.show {
            right: 0 !important;
        }
        
        .mobile-private-header {
            padding: 16px 20px !important;
            background: #f8f9fa !important;
            border-bottom: 1px solid #dee2e6 !important;
            display: flex !important;
            justify-content: space-between !important;
            align-items: center !important;
            position: sticky !important;
            top: 0 !important;
            z-index: 10 !important;
        }
        
        .mobile-private-header h3 {
            margin: 0 !important;
            color: #495057 !important;
            font-size: 16px !important;
            display: flex !important;
            align-items: center !important;
            gap: 8px !important;
        }
        
        .mobile-private-close {
            background: none !important;
            border: none !important;
            font-size: 18px !important;
            color: #6c757d !important;
            cursor: pointer !important;
            padding: 4px !important;
            border-radius: 4px !important;
            transition: all 0.2s ease !important;
        }
        
        .mobile-private-close:hover {
            background: #e9ecef !important;
            color: #495057 !important;
        }
        
        .mobile-private-actions {
            padding: 12px 16px !important;
            border-bottom: 1px solid #dee2e6 !important;
            background: #f8f9fa !important;
        }
        
        .mobile-close-all-btn {
            width: 100% !important;
            padding: 8px 16px !important;
            background: #dc3545 !important;
            color: white !important;
            border: none !important;
            border-radius: 6px !important;
            font-size: 13px !important;
            font-weight: 500 !important;
            cursor: pointer !important;
            transition: all 0.2s ease !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 6px !important;
        }
        
        .mobile-close-all-btn:hover {
            background: #c82333 !important;
        }
        
        .mobile-private-list {
            padding: 8px 0 !important;
        }
        
        .mobile-no-private {
            padding: 20px !important;
            text-align: center !important;
            color: #6c757d !important;
            font-style: italic !important;
            font-size: 14px !important;
        }
        
        .mobile-private-item {
            padding: 12px 16px !important;
            cursor: pointer !important;
            border-bottom: 1px solid #f1f3f4 !important;
            display: flex !important;
            align-items: center !important;
            gap: 12px !important;
            transition: background 0.2s ease !important;
        }
        
        .mobile-private-item:hover {
            background: #f8f9fa !important;
        }
        
        .mobile-private-item:last-child {
            border-bottom: none !important;
        }
        
        .mobile-private-avatar {
            flex-shrink: 0 !important;
            width: 32px !important;
            height: 32px !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
        }
        
        .mobile-private-nick {
            font-weight: 500 !important;
            color: #007bff !important;
            font-size: 15px !important;
            flex: 1 !important;
        }
        
        .mobile-private-close-btn {
            background: none !important;
            border: none !important;
            color: #6c757d !important;
            font-size: 16px !important;
            cursor: pointer !important;
            padding: 4px !important;
            border-radius: 4px !important;
            transition: all 0.2s ease !important;
            flex-shrink: 0 !important;
        }
        
        .mobile-private-close-btn:hover {
            background: #e9ecef !important;
            color: #dc3545 !important;
        }
        
        .mobile-private-unread {
            background: #e3f2fd !important;
            border-left: 4px solid #2196f3 !important;
        }
        
        .mobile-private-unread .mobile-private-nick {
            color: #1976d2 !important;
            font-weight: 600 !important;
        }
        
        /* Mobile'da özel mesaj tab'larını gizle (sadece # kanalları göster) */
        .channel-tab:not([data-channel*="#"]):not([data-channel="Status"]) {
            display: none !important;
        }

    /* Sidebar toggle mobilde gizle */
    .sidebar-toggle {
        right: 130px;
    }
    /* 
     .sidebar-toggle {
        display: none !important;
    }
    */

    /* Chat logo mobilde gizle */
    .chat-logo,
    #chat-logo,
    .main-logo {
        display: none !important;
    }

    /* Scrollbar styling - ornek.css benzeri */
    .messages-container::-webkit-scrollbar,
    .user-sidebar::-webkit-scrollbar,
    .users::-webkit-scrollbar,
    .channels::-webkit-scrollbar {
        width: 3px !important;
    }

    .messages-container::-webkit-scrollbar-track,
    .user-sidebar::-webkit-scrollbar-track,
    .users::-webkit-scrollbar-track,
    .channels::-webkit-scrollbar-track {
        box-shadow: inset 0 0 1px grey !important;
        border-radius: 3px !important;
    }

    .messages-container::-webkit-scrollbar-thumb,
    .user-sidebar::-webkit-scrollbar-thumb,
    .users::-webkit-scrollbar-thumb,
    .channels::-webkit-scrollbar-thumb {
        background: #79bfff !important;
        border-radius: 3px !important;
    }

    .messages-container::-webkit-scrollbar-thumb:hover,
    .user-sidebar::-webkit-scrollbar-thumb:hover,
    .users::-webkit-scrollbar-thumb:hover,
    .channels::-webkit-scrollbar-thumb:hover {
        background: #5a9dd8 !important;
    }

    /* Box shadow - ornek.css benzeri */
    .user-sidebar {
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15) !important;
    }

    .channel-sidebar {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }

    .input-container {
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1) !important;
    }

    /* Transition effects - ornek.css benzeri */
    .channel,
    .channel-tab {
        transition: all 0.3s ease !important;
    }

    .channel:hover,
    .channel-tab:hover {
        transform: translateY(-1px) !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    }

    /* Özel mesajda nicklist alanını tamamen yok et */
    .user-sidebar.hidden {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        position: absolute !important;
        left: -9999px !important; /* Tamamen ekran dışına at */
    }
    
    /* Özel mesajda chat content tam sağa yapış */
    .user-sidebar.hidden ~ .chat-content,
    .user-sidebar.hidden ~ * .chat-content {
        margin-right: 0 !important;
        padding-right: 0 !important;
        border-right: none !important;
        width: 100% !important;
        max-width: 100vw !important; /* Viewport genişliği */
        right: 0 !important;
        left: 0 !important;
        position: relative !important;
    }
    
    /* Özel mesajda messages container tam sağa yapış */
    .user-sidebar.hidden ~ .chat-content .messages-container,
    .user-sidebar.hidden ~ * .messages-container {
        margin-right: 0 !important;
        padding-right: 0 !important;
        border-right: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Özel mesajda input tam sağa yapış */
    .user-sidebar.hidden ~ .input-container,
    .user-sidebar.hidden ~ * .input-container {
        right: 0 !important;
        margin-right: 0 !important;
        padding-right: 0 !important;
        border-right: none !important;
        width: 100% !important;
        max-width: 100vw !important; /* Viewport genişliği */
        left: 0 !important;
        position: fixed !important;
    }

    /* Sadece kanallar için basit override */
    .channels,
    .channel-tabs,
    #channels {
        flex-direction: row !important;
        display: flex !important;
        flex-wrap: wrap !important;
    }

    /* AGRESİF SIFIR BOŞLUK - ÖZEL MESAJDA HER ŞEY SAĞA YAPIŞ */
    body {
        margin-right: 0 !important;
        padding-right: 0 !important;
    }
    
    .main-container,
    .container-fluid,
    .chat-main,
    .chat-container {
        margin-right: 0 !important;
        padding-right: 0 !important;
        border-right: none !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    
    /* Tüm chat elementleri sağa tam yapış */
    .chat-content,
    .messages-container,
    .message,
    .input-container,
    .message-toolbar,
    .message-form,
    .input-group,
    #message-input {
        /* bak nicklist arakasında kalıyor chat alanı margin-right: 0 !important; */
        /* İnput bozulursa Buraya Bak !important kaldırdım padding-right den */
        padding-right: 0px;
        border-right: none !important;
        box-sizing: border-box !important;
    }
    /*
    .chat-content:not([data-channel="Status"]) {
        margin-right: 0px !important;
    }
    */
    /* Toolbar içindeki elementler de sağa sıfır */
    .message-toolbar *,
    .message-toolbar .font-size-control,
    .message-toolbar .toolbar-btn,
    .message-toolbar .btn,
    .message-toolbar button,
    .message-toolbar select,
    .message-toolbar input {
        margin-right: 0 !important;
        /* padding-right: 0 !important; Yazı fontu botunları */
        border-right: none !important;
        box-sizing: border-box !important;
    }
    
    /* Message-toolbar'ın kendisi de sağa tam sıfır */
    .message-toolbar {
        margin-right: 0 !important;
        padding-right: 0 !important;
        border-right: none !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    /* Font size control sağa hizalı ama sıfır boşluk */
    .font-size-control {
        margin-left: auto !important;
        margin-right: 0 !important;
        padding-right: 0 !important;
    }
    
    /* ÖZEL MESAJDA TOPIC AGRESİF GİZLE 
    .user-sidebar.hidden ~ .chat-content .topic-bar,
    .user-sidebar.hidden ~ * .topic-bar,
    .user-sidebar.hidden .topic-bar,
    body:has(.user-sidebar.hidden) .topic-bar,
    .private-message .topic-bar,
    .query .topic-bar,
    .pm .topic-bar,
    [data-type="query"] .topic-bar,
    .status .topic-bar,
    [data-channel="Status"] .topic-bar {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        position: absolute !important;
        left: -9999px !important;
        opacity: 0 !important;
        z-index: -1 !important;
    }
        */

    
    /* Özel mesajda global sıfır */
    .user-sidebar.hidden ~ * {
        margin-right: 0 !important;
        padding-right: 0 !important;
        border-right: none !important;
        max-width: 100% !important;
    }
    
    /* GLOBAL TOPIC GİZLEME - ÖZEL MESAJ VE STATUS */
    body.private-message .topic-bar,
    body.query .topic-bar,
    body.pm .topic-bar,
    body.status .topic-bar,
    body[data-current="Status"] .topic-bar,
    body[data-current*="@"] .topic-bar {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        opacity: 0 !important;
        position: absolute !important;
        left: -9999px !important;
        z-index: -1 !important;
        overflow: hidden !important;
    }
    
    /* SADECE ÖZEL MESAJDA VE STATUS'TA TOPIC GİZLE */
    body[data-current="Status"] .topic-bar,
    body[data-current*="@"] .topic-bar,
    .status-window .topic-bar,
    .private-message .topic-bar,
    .query-window .topic-bar {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        opacity: 0 !important;
        position: absolute !important;
        left: -9999px !important;
    }
    
    /* VIEWPORT ALTINA TAM YAPIŞ - SÜPER AGRESİF */
    html {
        height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
    
    body {
        height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;
        position: relative !important;
    }
    
    /* Tüm elementlerin altını sıfırla */
      
    /* Input alanı kesinlikle viewport altına yapış */
    .input-container {
        bottom: 0 !important;
        position: fixed !important;
        transform: translateY(0) !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        border-bottom: none !important;
        outline: none !important;
        box-shadow: none !important;
    }
    
    .message-form,
    .message-toolbar,
    .input-group,
    #message-input,
    .send-button {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        border-bottom: none !important;
    }
}

/* Settings Modal */
.settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.settings-content {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid #4a5568;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #4a5568;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 12px 12px 0 0;
}

.settings-header h3 {
    margin: 0;
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.settings-header h3 i {
    margin-right: 8px;
}

.settings-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.settings-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.settings-body {
    padding: 20px;
    color: #ecf0f1;
}

.settings-section {
    margin-bottom: 25px;
}

.settings-section h4 {
    margin: 0 0 15px 0;
    color: #3498db;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.settings-section h4 i {
    margin-right: 8px;
}

.settings-option {
    margin-bottom: 15px;
    padding: 15px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.settings-checkbox {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.settings-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    background-color: #34495e;
    border: 2px solid #3498db;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
    margin-top: 1px;
}

.settings-checkbox input[type="checkbox"]:checked + .checkmark {
    background-color: #3498db;
    border-color: #3498db;
}

.settings-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.settings-option small {
    display: block;
    margin-top: 5px;
    margin-left: 32px;
    color: #bdc3c7;
    font-size: 12px;
    line-height: 1.3;
}

.settings-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #4a5568;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 0 0 12px 12px;
}

.settings-footer .btn-primary,
.settings-footer .btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 80px;
}

.settings-footer .btn-primary {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(39, 174, 96, 0.3);
}

.settings-footer .btn-primary:hover {
    background: linear-gradient(135deg, #219a52 0%, #27ae60 100%);
    box-shadow: 0 4px 8px rgba(39, 174, 96, 0.4);
    transform: translateY(-1px);
}

.settings-footer .btn-secondary {
    background: linear-gradient(135deg, #95a5a6 0%, #bdc3c7 100%);
    color: #2c3e50;
    box-shadow: 0 2px 4px rgba(149, 165, 166, 0.3);
}

.settings-footer .btn-secondary:hover {
    background: linear-gradient(135deg, #7f8c8d 0%, #95a5a6 100%);
    box-shadow: 0 4px 8px rgba(149, 165, 166, 0.4);
    transform: translateY(-1px);
}

.left_class {
    float: left;
}
Ban Popup */
.ban-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
}

.ban-popup-content {
    background: #1a1a1a;
    border: 2px solid #ff4444;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.ban-popup-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.ban-popup h3 {
    color: #ff4444;
    margin: 0 0 15px 0;
    font-size: 20px;
}

.ban-popup p {
    color: #ccc;
    margin: 8px 0;
    font-size: 14px;
}

.ban-countdown {
    background: #ffcfcf;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    border: 1px solid #444;
}

.ban-countdown span {
    color: #ff4444;
    font-size: 24px;
    font-weight: bold;
}

.ban-popup-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.ban-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.ban-btn-cancel {
    background: #666;
    color: white;
}

.ban-btn-cancel:hover {
    background: #777;
}

.ban-btn-reconnect {
    background: #4CAF50;
    color: white;
}

.ban-btn-reconnect:hover {
    background: #45a049;
}

.message.system.exit {
    color: hotpink !important;
    font-size: 11px !important;
}
.message.system.joindata {
    color: rgb(58, 190, 102) !important;
    font-size: 11px !important;
}
.message.system.partdata {
    color: rgb(110, 86, 51) !important;
    font-size: 11px !important;
}
.message.system.noticedata {
    color: rgb(173, 120, 76) !important;
    font-size: 11px !important;
    font-weight: bold;
}

   
   

    @media (max-width: 768px) {
        body:has(.user-sidebar.hidden) .chat-content
     {
        margin-right: 0px !important;
    }
        body:has(.sidebar-toggle.collapsed) .chat-content
        {
           margin-right: 0px !important;
       }
    }
    .user-avatar img {
        width: 26px !important;
        height: 26px !important;
        border-radius: 50%;
    }
    @media (max-width: 768px) {
        .user-avatar img {
            width: 16px !important;
            height: 16px !important;
            border-radius: 50%;
        }
    }
    .message-avatar img {
        width: 18px !important;
        height: 18px !important;
        border-radius: 50%;
    }

    .mobile-private-avatar img {
        width: 32px !important;
        height: 32px !important;
        border-radius: 50%;
    }
    .fun-avatar img {
        width: 56px !important;
        height: 56px !important;
        border-radius: 50%;
    }
    .user-avatar-small img {
        width: 24px !important;
        height: 24px !important;
        border-radius: 50%;
    }
    .baglan {
        width: 100% !important;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        color: white !important;
        font-weight: bold;
    }
    .farkli-baglan {
        width: 100% !important;
        display: block;
        text-align: center;
        padding: 10px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-radius: 4px;
        text-decoration: none;
        margin-top: 10px;
    }