@media only screen and (max-width: 500px) {
    body {
        color: black;
        overflow: auto;
        background: rgb(240,247,255);
        font-size: 12px;
    }
    
    #toolbar {
        background: #E3EFFA!important;
        height: 30px!important;
    }
    
    #hangi_pencere {
        top:30px!important;
        display:none;
    }
    
    #nicklist{
        background: #F0F7FF!important;
        border-left: 1px solid #E3EFFA;
        bottom: 34px;
        width: 115px !important;
        min-width: 115px !important;
        max-width: 115px !important;
    }

    #nicklist ul {
        background: none!important;
    }

    div#ana_ekran {
        background: #F0F7FF;
        font-size: 12px;
        border:none;
        bottom:34px;
        top:32px;
    }

    .ust_butonlar_mobil{
        color:black;
        display: none;
    }

    #yazikutu {
        background: #E3EFFA!important;
    }

    div#k_badge_c {
        color: blue;
    }

    div#o_badge_c {
        color: #825d19;
    }

    button#sag_buton {
        color: black;
        float:left;
        background: #229ee6;
        background-image: linear-gradient(to bottom, #229ee6, #c3d1d9);
        border-radius: 7px;
        font-family: Arial;
        color: #ffffff;
        font-size: 14px;
        text-decoration: none;
        height: 30px;
    }

    button#sag_buton i{
        display:none;
    }

    .tab.yenimesaj2 {
        color: #45ffde;
    }

    #nicklist ul.kanal2 {
        margin-top:0px;
        height:100%;
    }
    
    #ana_ekran,div#nicklist{
        top:32px;
        bottom:30px;
    }
    
    #ek_buton {
        display:none;
        float:left;
        margin-top: 4px;
        width: 25px;
        padding: 0px;
    }
    
    #ek_buton2 {
        display:block;
        float:right;
        margin-top: 5px;
        width: 25px;
        padding: 0px;
        margin-right: 3px;
        background:none;
        border: none;
        text-align: center;
    }
    
    input#yaziarea{
        width: calc(100% - 95px);
    }
    
    #yazikutuserit {
        display:none;
    }
    
    div#tabs {
        display:block!important;
        top:32px;
        width: 100%;
        height: auto;
        overflow: auto;
        bottom: auto;
        background: rgb(240,247,255);
        padding-bottom: 1px;
        border-bottom: 1px solid #E3EFFA;
    }
    
    span.tab_font {
        font-size: 16;
        font-family: Verdana, sans-serif;
        font-weight: normal;
    }
    
    .tab {
        background:none;
        width: auto;
        padding: 1px;
        height: 20px;
        color:black;
        margin:0;
    }
    
    .tab.yenimesaj {
        color: #0000ff;
    }
    
    .kapat.fa {
        position: static;
        right: 10px;
        background: none;
        color: #0000ff;
        padding: 2px;
        border-radius: 4px;
    }
    
    .tab.kanal_tab.fa.secilien {
        border: 1px solid rgb(200,209,219);
        padding: 1px;
        cursor: default;
        border-radius: 4px;
        margin-right: -2px;
        white-space: nowrap;
        text-decoration: none;
        color: rgb(0, 0, 0);
        background: white;
    }
    
    .messages {
        position: absolute;
        width: 100%;
    }
    
    #main_emoticon,#gulsene{
        display:none;
    }
    
    #gulucukler {
        bottom:1px;
    }

    button#submit_button{
        height: 23px;
        line-height: 20px;
        border-radius: 0px;
        font-family: Arial;
        color: #ffffff;
        background: #2690ed;
        text-decoration: none;
        letter-spacing: 1px;
        font-size: 14px;
        padding-left: 3px;
    }
    
    #nicklist_ust i {
        display:none;
    }
    
    span#au_text {
        float: left;
        line-height: 30px;
    }
    
    i#radyo_icon {
        font-size: 22px;
        color: black;
        width: 20px;
        margin-left: 5px;
        margin-top: 3px;
        float: left;
    }
    
    .radyo_mobil {
        float: left;
    }
    
    #tabs .ozel_tab{
        display:none;
    }
    
    button#ozel_engelleme {
        height:20px;
    }
    
    div#ozel_gorusmeler_ust {
        color: black;
        float: left;
        position: absolute;
        line-height: 30px;
        padding-right: 4px;
        padding-left: 4px;
        right: 0px;
        background: #229ee6;
        background-image: linear-gradient(to bottom, #229ee6, #c3d1d9);
        border-radius: 7px;
        font-family: Arial;
        color: #ffffff;
        font-size: 14px;
        text-decoration: none;
        height: 30px;
    }

    div#ozel_tabs_qweb {
        position: absolute;
        z-index: 999;
        width: 120px;
        top: 30px;
        bottom: 0px;
        display: none;
        right: 0px;
        background: #E3EFFA;
        overflow:auto;
    }

    /* ÖZEL PENCERELERDEKİ NICK RENKLERİ */
    #ozel_tabs_qweb .tab {
        color: #333 !important;
        font-weight: 500 !important;
        text-shadow: none !important;
    }
    
    #ozel_tabs_qweb .tab:hover {
        color: #229ee6 !important;
    }
    
    #ozel_tabs_qweb .tab.secilien {
        color: #229ee6 !important;
        background: white !important;
    }

    #ozel_tabs_qweb .tab.ozel_tab.fa {
        width: 100%;
        padding-top: 5px;
    }

    #ozel_tabs_qweb .fa.kapat {
        position: absolute;
        right: 5px;
        background: none;
        color: #0000ff;
        padding: 2px;
        border-radius: 4px;
    }
    
    .tab.ozel_tab.fa.secilien {
        background: white;
    }
    
    div#ozel_gorusmeler_ust_sayi {
        float: right;
        padding: 2px;
        padding-left: 5px;
        margin-top: 1px;
        line-height: 13px;
        background: red;
        height: 12px;
        width: 12px;
        border-radius: 20px;
        display:none;
    }

    div#tumunu_kapat {
        background: #cbd6e0;
        font-size: 13px;
        text-align: center;
        color: black;
        border-radius: 3px;
    }
    
    i#aktif_ka {
        padding-left: 5px;
        line-height: 26px;
        font-size: 16px;
        color: red;
    }

    /* KULLANICI LİSTESİ DÜZENLEMELERİ */
    
    /* Kullanıcı listesi genel düzenleme */
    .user_in_list {
        display: flex !important;
        align-items: center !important;
        min-height: 26px !important;
        padding: 2px 20px 2px 4px !important;
        width: 100% !important;
        max-width: 100% !important;
        background: none !important;
        border-bottom: 1px dashed #b7b7b7 !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        font-size: 12px !important;
        justify-content: flex-start !important;
        text-align: left !important;
        height: auto !important;
        position: relative !important;
    }
    
    /* Avatar ikonları */
    .user-avatar-icon, .profile-photo-small {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
        min-height: 18px !important;
        margin-right: 4px !important;
        border-radius: 4px !important;
        background: #26334d !important;
        color: #fff !important;
        font-size: 12px !important;
        flex-shrink: 0 !important;
    }
    
    .user-avatar-icon i {
        font-size: 12px !important;
        color: #fff !important;
    }
    
    /* Nick text */
    .nick-text {
        font-size: 12px !important;
        color: #222 !important;
        font-family: 'Roboto', sans-serif !important;
        font-weight: 500 !important;
        vertical-align: middle !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: normal !important;
        word-break: normal !important;
        margin-left: 0 !important;
        flex: 1 !important;
    }

    /* YETKİ İKONLARI - MOBİL İÇİN GERİ GETİR */
    ul li.mode.q { 
        background-image: url(../images/iconlar/tac1.png) !important;
        background-repeat: no-repeat !important;
        background-size: 14px 14px !important;
        background-position: right 3px center !important;
        padding-right: 20px !important;
        padding-left: 8px !important;
    }
    
    ul li.mode.a { 
        background-image: url(../images/iconlar/tac2.png) !important;
        background-repeat: no-repeat !important;
        background-size: 14px 14px !important;
        background-position: right 3px center !important;
        padding-right: 20px !important;
        padding-left: 8px !important;
    }
    
    ul li.mode.o { 
        background-image: url(../images/iconlar/tac3.png) !important;
        background-repeat: no-repeat !important;
        background-size: 14px 14px !important;
        background-position: right 3px center !important;
        padding-right: 20px !important;
        padding-left: 8px !important;
    }
    
    ul li.mode.h { 
        background-image: url(../images/iconlar/tac4.png) !important;
        background-repeat: no-repeat !important;
        background-size: 14px 14px !important;
        background-position: right 3px center !important;
        padding-right: 20px !important;
        padding-left: 8px !important;
    }
    
    ul li.mode.v { 
        background-image: url(../images/iconlar/seviye5.png) !important;
        background-repeat: no-repeat !important;
        background-size: 14px 14px !important;
        background-position: right 3px center !important;
        padding-right: 20px !important;
        padding-left: 8px !important;
    }
    
    ul li.mode.n { 
        background-image: url(../images/iconlar/seviye0.png) !important;
        background-repeat: no-repeat !important;
        background-size: 14px 14px !important;
        background-position: right 3px center !important;
        padding-right: 20px !important;
        padding-left: 8px !important;
    }

    /* YENİ POPUP MENÜ SİSTEMİ */
    
    /* Popup overlay */
    .menu-popup-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9999;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    /* TOAST BİLDİRİMLERİ KALDIRILDI */
    
    /* KAYAN YAZI SİSTEMİ KALDIRILDI */
    
    .menu-popup-container {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.7);
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        border-radius: 15px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        padding: 0;
        min-width: 250px;
        max-width: 80%;
        z-index: 10000;
        opacity: 0;
        transition: all 0.3s ease-in-out;
        border: 1px solid #e3effa;
    }
    
    .menu-popup-container.show {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    
    /* Popup header */
    .menu-popup-header {
        background: linear-gradient(135deg, #229ee6 0%, #1e88e5 100%);
        color: white;
        padding: 12px 15px;
        border-radius: 15px 15px 0 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    .menu-popup-title {
        font-size: 16px;
        font-weight: 600;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .menu-popup-title i {
        font-size: 14px;
    }
    
    .menu-popup-close {
        background: none;
        border: none;
        color: white;
        font-size: 18px;
        cursor: pointer;
        padding: 5px;
        border-radius: 50%;
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s;
        z-index: 10001;
        position: relative;
    }
    
    .menu-popup-close:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    
    /* Timer indicator */
    .menu-popup-timer {
        position: absolute;
        top: 8px;
        right: 45px;
        background: rgba(255, 255, 255, 0.2);
        color: white;
        padding: 3px 6px;
        border-radius: 10px;
        font-size: 10px;
        font-weight: 500;
        min-width: 25px;
        text-align: center;
    }
    
    /* Popup content */
    .menu-popup-content {
        padding: 15px;
        max-height: 50vh;
        overflow-y: auto;
    }
    
    /* Menu items */
    .menu-popup-item {
        display: flex;
        align-items: center;
        padding: 10px 12px;
        margin: 3px 0;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s ease;
        background: #ffffff;
        border: 1px solid #e3effa;
        color: #333;
        font-size: 13px;
        font-weight: 500;
        text-decoration: none;
    }
    
    .menu-popup-item:hover {
        background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
        transform: translateX(3px);
        box-shadow: 0 3px 6px rgba(34, 158, 230, 0.2);
    }
    
    .menu-popup-item i {
        margin-right: 10px;
        font-size: 14px;
        width: 18px;
        text-align: center;
        color: #229ee6;
    }
    
    /* Special menu items with different colors */
    .menu-popup-item.danger {
        background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
        border-color: #ef5350;
        color: #c62828;
    }
    
    .menu-popup-item.danger:hover {
        background: linear-gradient(135deg, #ffcdd2 0%, #ef9a9a 100%);
    }
    
    .menu-popup-item.danger i {
        color: #ef5350;
    }
    
    .menu-popup-item.success {
        background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
        border-color: #66bb6a;
        color: #2e7d32;
    }
    
    .menu-popup-item.success:hover {
        background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
    }
    
    .menu-popup-item.success i {
        color: #66bb6a;
    }
    
    .menu-popup-item.warning {
        background: linear-gradient(135deg, #fff3e0 0%, #ffcc80 100%);
        border-color: #ff9800;
        color: #e65100;
    }
    
    .menu-popup-item.warning:hover {
        background: linear-gradient(135deg, #ffcc80 0%, #ffb74d 100%);
    }
    
    .menu-popup-item.warning i {
        color: #ff9800;
    }
    
    /* Scrollbar styling */
    .menu-popup-content::-webkit-scrollbar {
        width: 6px;
    }
    
    .menu-popup-content::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }
    
    .menu-popup-content::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 3px;
    }
    
    .menu-popup-content::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }
    
    /* Animation keyframes */
    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translate(-50%, -50%) scale(0.7);
        }
        to {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }
    }
    
    @keyframes slideOut {
        from {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }
        to {
            opacity: 0;
            transform: translate(-50%, -50%) scale(0.7);
        }
    }
    
    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
    
    @keyframes fadeOut {
        from {
            opacity: 1;
        }
        to {
            opacity: 0;
        }
    }
    
    /* Hide original dropdown menu */
    #acilacak_menu2 {
        display: none !important;
    }
    
    /* RADYO İKONU DÜZENLEMELERİ */
    .radyo_icon {
        transition: all 0.3s ease !important;
        cursor: pointer !important;
        display: inline-block !important;
        vertical-align: middle !important;
    }
    
    .radyo_icon:hover {
        transform: scale(1.1) !important;
    }
    
    #ana {
        display: flex !important;
        align-items: center !important;
        gap: 5px !important;
        padding: 5px !important;
        border-radius: 5px !important;
        background: rgba(255,255,255,0.1) !important;
        margin-right: 10px !important;
    }
    
    #ana > div {
        display: flex !important;
        align-items: center !important;
    }
    
    /* PROFİL YÜKLEME MODAL */
    .profile-upload-modal {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0, 0, 0, 0.5) !important;
        z-index: 10000 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        opacity: 0 !important;
        transition: opacity 0.3s ease !important;
    }
    
    .profile-upload-modal.show {
        opacity: 1 !important;
    }
    
    .profile-upload-container {
        background: white !important;
        border-radius: 15px !important;
        padding: 0 !important;
        max-width: 400px !important;
        width: 90% !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
        transform: scale(0.7) !important;
        transition: transform 0.3s ease !important;
    }
    
    .profile-upload-modal.show .profile-upload-container {
        transform: scale(1) !important;
    }
    
    .profile-upload-header {
        background: linear-gradient(135deg, #229ee6 0%, #1e88e5 100%) !important;
        color: white !important;
        padding: 15px 20px !important;
        border-radius: 15px 15px 0 0 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .profile-upload-header h3 {
        margin: 0 !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }
    
    .profile-upload-close {
        background: none !important;
        border: none !important;
        color: white !important;
        font-size: 18px !important;
        cursor: pointer !important;
        padding: 5px !important;
        border-radius: 50% !important;
        width: 30px !important;
        height: 30px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: background 0.2s !important;
    }
    
    .profile-upload-close:hover {
        background: rgba(255, 255, 255, 0.2) !important;
    }
    
    .profile-upload-content {
        padding: 20px !important;
    }
    
    .upload-section {
        margin-bottom: 20px !important;
    }
    
    .upload-label {
        display: block !important;
        padding: 15px !important;
        border: 2px dashed #ddd !important;
        border-radius: 10px !important;
        text-align: center !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        color: #666 !important;
        font-size: 14px !important;
    }
    
    .upload-label:hover {
        border-color: #229ee6 !important;
        background: #f8f9fa !important;
        color: #229ee6 !important;
    }
    
    .upload-label i {
        font-size: 24px !important;
        margin-bottom: 8px !important;
        display: block !important;
    }
    
    .image-preview {
        margin-top: 15px !important;
        text-align: center !important;
    }
    
    .image-preview img {
        max-width: 200px !important;
        max-height: 200px !important;
        border-radius: 10px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    }
    
    .color-section {
        margin-bottom: 20px !important;
    }
    
    .color-section label {
        display: block !important;
        margin-bottom: 8px !important;
        font-weight: 500 !important;
        color: #333 !important;
    }
    
    .color-select {
        width: 100% !important;
        padding: 10px !important;
        border: 1px solid #ddd !important;
        border-radius: 8px !important;
        font-size: 14px !important;
        background: white !important;
    }
    
    .upload-buttons {
        display: flex !important;
        gap: 10px !important;
    }
    
    .upload-btn, .cancel-btn {
        flex: 1 !important;
        padding: 12px !important;
        border: none !important;
        border-radius: 8px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
    }
    
    .upload-btn {
        background: linear-gradient(135deg, #4caf50, #66bb6a) !important;
        color: white !important;
    }
    
    .upload-btn:hover {
        background: linear-gradient(135deg, #43a047, #4caf50) !important;
        transform: translateY(-2px) !important;
    }
    
    .cancel-btn {
        background: linear-gradient(135deg, #f44336, #ef5350) !important;
        color: white !important;
    }
    
    .cancel-btn:hover {
        background: linear-gradient(135deg, #d32f2f, #f44336) !important;
        transform: translateY(-2px) !important;
    }
    
    /* NICK INPUT STİLLERİ */
    .nick-section {
        margin-bottom: 20px !important;
    }
    
    .nick-section label {
        display: block !important;
        margin-bottom: 8px !important;
        font-weight: 500 !important;
        color: #333 !important;
    }
    
    .nick-input {
        width: 100% !important;
        padding: 10px !important;
        border: 1px solid #ddd !important;
        border-radius: 8px !important;
        font-size: 14px !important;
        background: #f8f9fa !important;
        color: #666 !important;
        cursor: not-allowed !important;
    }
    
    .nick-note {
        display: block !important;
        margin-top: 5px !important;
        font-size: 12px !important;
        color: #666 !important;
        font-style: italic !important;
    }
    
    /* COLOR INPUT STİLLERİ */
    .color-input {
        width: 100% !important;
        height: 50px !important;
        padding: 5px !important;
        border: 2px solid #ddd !important;
        border-radius: 8px !important;
        cursor: pointer !important;
        background: none !important;
    }
    
    .color-input:hover {
        border-color: #229ee6 !important;
    }
    
    .color-note {
        display: block !important;
        margin-top: 5px !important;
        font-size: 12px !important;
        color: #666 !important;
        font-style: italic !important;
    }
}
