@media only screen and (max-width: 500px) {

	body {
	color: black;
    overflow: auto;
    background: rgb(240,247,255);
    font-size: 12px;
	}
	#toolbar {
    background: rgb(205, 219, 232)!important;;
	}
	#hangi_pencere {
		top:30px!important;
	}
	#nicklist{
    background: rgb(240,247,255)!important;
    border-left: 1px solid rgb(200,209,219);
	}

	#nicklist ul {
    background: none!important;
	}

	div#ana_ekran {
	background: rgb(240,247,255);
    font-size: 12px;
    border:none;
	}

	.ust_butonlar_mobil{
		color:black;
	}

	#hangi_pencere {
		    background: rgb(205, 219, 232)!important;
		    color:black;
	}

	#yazikutu {
			background: rgb(205, 219, 232)!important;
	}

	.ust_butonlar_mobil {
		margin-top:0px!important;
	}

	div#k_badge_c {
    color: blue;
	}

	div#o_badge_c {
	    color: #825d19;
	}

	button#sag_buton {
	    color: black;
	}

	#tabs {
	    border-left: 1px solid rgb(200,209,219);
	    background: rgb(205, 219, 232);
	}

	.tab {
		background: #375265;
		box-shadow:none;
		border:none;
		border: 1px solid rgb(200,209,219);
	    padding: 0px;
	    cursor: default;
	    -moz-border-radius: 4px;
	    -webkit-border-radius: 4px;
	    border-radius: 4px;
	    margin-right: -2px;
	    white-space: nowrap;
	    text-decoration: none;
	    color: #0000ff;
	    font-size: 14px;
    	font-family: Verdana, sans-serif;
	}

	.tab:before {
		display: none;
	}
	.tab.yenimesaj2 {
    color: #45ffde;
	}
	div#new_aktif {
    display: block;
	}

	/* 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-in-out;
	}
	
	.menu-popup-overlay.show {
		opacity: 1;
	}
	
	/* Popup container */
	.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;
	}
	
	/* Ö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;
	}
	
	/* Özel pencereler container */
	#ozel_tabs_qweb {
		position: absolute;
		z-index: 999;
		width: 120px;
		top: 30px;
		bottom: 0px;
		display: none;
		right: 0px;
		background: #E3EFFA;
		overflow: auto;
	}
	
	/* Özel pencereler üst kısmı */
	#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;
	}
	
	/* Özel pencereler sayı badge */
	#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;
	}
	
	/* TOAST BİLDİRİMLERİ KALDIRILDI */
	
	/* KAYAN YAZI SİSTEMİ KALDIRILDI */
	
	/* 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;
	}
}