/* Filiz Yeşili FM - Modern Glassmorphism Style v48.0 
    Tüm görsel yapı korunmuş, yeni üyelik sistemine uyarlanmıştır.
*/

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    width: 100vw; 
    height: 100vh; 
    background: transparent !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    overflow: hidden; 
    color: #fff;
}

/* --- MODALLAR VE GİRİŞ EKRANI --- */
.modal-overlay {
    position: fixed; 
    inset: 0; 
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px); 
    display: none; 
    justify-content: center;
    align-items: center; 
    z-index: 999999;
}

.modal-box {
    background: rgba(25, 25, 25, 0.98); 
    border: 1px solid #00f2ff;
    padding: 35px; 
    border-radius: 20px; 
    width: 340px; 
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.2);
}

/* Yeni Giriş Inputları */
.login-input {
    width: 100%; 
    padding: 12px; 
    margin-bottom: 12px; 
    background: #000; 
    border: 1px solid #333; 
    color: #fff; 
    border-radius: 8px;
    outline: none;
    transition: 0.3s;
}

.login-input:focus {
    border-color: #00f2ff;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.1);
}

/* --- WIDGET SİSTEMİ (CAM GÖRÜNÜMÜ) --- */
.widget {
    position: absolute !important; 
    background: rgba(0, 0, 0, 0.01) !important; /* Arka plan yok */
    backdrop-filter: none !important; 
    border-radius: 15px; 
    border: 1px solid rgba(0, 242, 255, 0.4); /* Kenarlık belirgin */
    display: flex; flex-direction: column; z-index: 100;
}

#tools-widget { 
    overflow: visible !important; 
    z-index: 2000; 
    min-width: 350px; 
}

/* --- DROPDOWN PANELLER (RENK VE EMOJI) --- */
#color-dropdown, #emoji-dropdown {
    position: absolute; 
    top: 55px; 
    left: 50%; 
    transform: translateX(-50%);
    background: rgba(10, 10, 10, 0.98); 
    border: 1px solid #00f2ff;
    padding: 12px; 
    border-radius: 12px; 
    display: none; 
    flex-direction: column;
    gap: 8px; 
    z-index: 99999; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.9); 
}

.color-grid, .emoji-grid { display: grid; gap: 6px; }
.color-grid { grid-template-columns: repeat(8, 1fr); }
.emoji-grid { grid-template-columns: repeat(6, 1fr); font-size: 20px; }

.grid-dot, .emoji-item { 
    cursor: pointer; 
    transition: 0.2s; 
    border-radius: 5px; 
    text-align: center;
}
.grid-dot { width: 25px; height: 25px; border: 1px solid rgba(255,255,255,0.1); }
.grid-dot:hover, .emoji-item:hover { transform: scale(1.2); }

/* --- MESAJLAŞMA VE LİSTE --- */
#chat-window { 
    flex: 1; 
    overflow-y: auto; 
    padding: 15px; 
    display: flex; 
    flex-direction: column; 
    scrollbar-width: none; 
}

#user-list { 
    padding: 15px; 
    overflow-y: auto; 
    scrollbar-width: none;
}

.online-user { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    margin-bottom: 8px; 
    font-size: 14px; 
}

.online-user.unverified { 
    text-decoration: line-through !important; 
    opacity: 0.4; 
    color: #ff4b2b !important; 
}

/* --- ARAÇ ÇUBUĞU (TOOLS) --- */
.mini-tools { 
    display: flex; 
    gap: 10px; 
    padding: 10px; 
    justify-content: center; 
    align-items: center; 
    width: 100%; 
    height: 100%; 
    position: relative; 
}

#current-color-btn { 
    width: 28px; 
    height: 28px; 
    border-radius: 6px; 
    border: 2px solid #00f2ff; 
    cursor: pointer; 
    transition: 0.3s;
}

.mini-tools button {
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid #00f2ff;
    color: #00f2ff; 
    width: 34px; 
    height: 34px; 
    border-radius: 6px; 
    cursor: pointer; 
    font-weight: bold;
    transition: 0.2s;
}

.mini-tools button:hover {
    background: rgba(0, 242, 255, 0.2);
}

.mini-tools button {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', sans-serif; /* Harflerin düzgün görünmesi için */
}
.active-tool { background: #00f2ff !important; color: #000 !important; }
#fs-indicator { font-size: 12px; color: #00f2ff; min-width: 35px; text-align: center; font-weight: bold; }

/* --- INPUT VE TOAST --- */
#msg { 
    width: 100%; 
    background: transparent; 
    border: none; 
    color: #fff; 
    padding: 14px; 
    outline: none; 
    font-size: 14px;
}

#toast { 
    position: fixed; 
    top: 25px; 
    right: 25px; 
    background: #00f2ff; 
    color: #000; 
    padding: 12px 28px; 
    border-radius: 12px; 
    font-weight: bold; 
    display: none; 
    z-index: 2000000; 
    box-shadow: 0 5px 20px rgba(0, 242, 255, 0.4);
}

/* --- SAĞ TIK MENÜSÜ --- */
/* Style kısmındaki context-menu alanını güncelle */
#context-menu { 
    position: fixed; 
    display: none; 
    background: rgba(10,10,10,0.98); 
    border: 1px solid #00f2ff; 
    color: #fff; 
    padding: 5px 0; 
    z-index: 1000000 !important; /* Değeri çok yüksek tutuyoruz */
    min-width: 180px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8); 
    border-radius: 8px; 
}

#context-menu div { 
    padding: 12px 20px; 
    cursor: pointer; 
    color: #00f2ff; 
    font-weight: bold; 
    font-size: 13px;
    transition: 0.2s;
}

#context-menu div:hover { 
    background: #00f2ff; 
    color: #000; 
}

/* --- DÜZENLEME MODU GÖRÜNÜMÜ --- */
.edit-mode-active .widget { 
    border: 2px dashed #00f2ff !important; 
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.3); 
}

.mode-move .widget { cursor: move !important; }
.mode-resize .widget { overflow: auto !important; resize: both !important; }
/* --- YENİ ONAY SİSTEMİ STİLLERİ --- */
.online-user-row { display: flex; align-items: center; gap: 8px; padding: 5px 10px; }
.verify-box {
    width: 20px; height: 20px; border: 1px solid rgba(0, 242, 255, 0.4);
    border-radius: 4px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 10px; font-weight: bold; background: rgba(0,0,0,0.3); flex-shrink: 0;
}
.tick-f { background: #00f2ff !important; color: #000 !important; border-color: #00f2ff; } /* Kalıcı F */
.tick-v { color: #00fc00; border-color: #00fc00; } /* Geçici Tik */
/* Onayı (F veya ✓) olmayan herkesin ismini bu hale getirir */
/* Onaysız (Guest veya Şifresiz) Kullanıcı Stili */
.unverified-text { 
    text-decoration: line-through !important; /* Üzerini çiz */
    opacity: 0.6 !important;                 /* Hafif şeffaf (kaybolmayacak kadar) */
    color: #ff4b2b !important;               /* Kırmızımtırak ton */
}

/* Online Listesi Satır Düzeni */
.online-user-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.user-name-label {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Çok uzun isimleri keser */
}
/* Widget Temel Yapısı - Kaymayı Engelleyen Kesin Çözüm */
.widget {
    position: absolute !important;
    display: flex;
    flex-direction: column;
    /* Animasyonları tamamen kapatıyoruz, böylece sürüklenerek gitmezler */
    transition: none !important; 
    /* Başlangıçta görünmesinler, JS yerlerini ayarlayınca açacağız */
    opacity: 0; 
}

/* Sayıcı (Dinleyici) Kutusu - Widget İçinde */
.user-count-box {
    background: rgba(255, 255, 255, 0.05); /* Şeffaf arka plan */
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    color: #00f2ff; /* Neon Mavi */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 242, 255, 0.2);
    backdrop-filter: blur(5px);
    font-weight: bold;
    width: 100%; 
    height: 100%;
}



.menu-danger { color: #ff4b2b !important; }
.menu-success { color: #00fc00 !important; }
.menu-item { border-bottom: 1px solid rgba(255,255,255,0.1); }

/* Nicke tıklandığında açılan işlem paneli */
.quick-action-panel {
    display: none;
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid #00f2ff;
    border-radius: 5px;
    padding: 5px;
    margin-top: 5px;
    gap: 5px;
    justify-content: center;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}
.action-btn {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    font-weight: bold;
}
.btn-kick { background: #ffcc00; color: #000; } /* Sarı: At */
.btn-ban { background: #ff4b2b; color: #fff; }  /* Kırmızı: Ban */

@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

.system-msg {
    /* Mevcut kodların... */
    transition: opacity 0.5s ease; /* Kaybolurken yumuşak gitsin */
}

/* Düzenleme modunda widget'ların üzerine binen koruyucu tabaka */
.widget-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 242, 255, 0.05); /* Çok hafif bir mavi ton */
    z-index: 9999;
    cursor: move;
}

/* Onay almamış kullanıcılar için mesaj kutusuna özel stil */
.chat-locked {
    filter: blur(5px);
    pointer-events: none;
    user-select: none;
}
.chat-widget, .online-widget, .input-widget, .tools-widget {
    position: absolute !important; /* Koordinatların çalışması için şart */
}