/* --- MASTERCHAT ÖZEL STİL TABANI (Tailwind Bağımsız) --- */
.master-body { background-color: #020617; color: #f1f5f9; min-height: 100vh; font-family: ui-sans-serif, system-ui, sans-serif; display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto; margin: 0; }
.master-nav { background-color: rgba(15, 23, 42, 0.4); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(15, 23, 42, 0.8); position: sticky; top: 0; z-index: 50; padding: 12px 16px; }
.master-container { max-width: 1024px; margin: 0 auto; }
.master-nav-flex { display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 12px; }
@media(min-width: 640px) { .master-nav-flex { flex-direction: row; } }
.master-logo { font-size: 24px; font-weight: 900; background: linear-gradient(to right, #ec4899, #a855f7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: 0.05em; text-decoration: none; }
.master-logo span { color: #ffffff; font-weight: 300; }

.master-admins-scroll { display: flex; align-items: center; gap: 12px; overflow-x: auto; max-width: 100%; padding-bottom: 4px; }
.master-admin-badge { display: flex; align-items: center; gap: 8px; flex-shrink: 0; background-color: rgba(2, 6, 23, 0.5); padding: 4px 10px; border-radius: 12px; border: 1px solid rgba(30, 41, 59, 0.6); }

/* Resimlerin büyük görünmesini kesin olarak engelleyen sabit boyutlar */
.master-avatar-sm { width: 32px !important; height: 32px !important; min-width: 32px !important; min-height: 32px !important; border-radius: 50% !important; object-fit: cover !important; border: 1px solid #1e293b; display: block; }
.master-avatar-xs { width: 24px !important; height: 24px !important; min-width: 24px !important; min-height: 24px !important; border-radius: 50% !important; object-fit: cover !important; display: block; }

.master-admin-info { display: flex; flex-direction: column; text-align: left; }
.master-admin-name { font-size: 11px; display: flex; align-items: center; gap: 2px; line-height: 1.2; font-weight: bold; }
.master-admin-title { font-size: 9px; color: #94a3b8; font-weight: 500; letter-spacing: 0.025em; margin-top: 2px; }

.master-main { max-width: 896px; margin: 0 auto; padding: 24px 16px; display: flex; flex-direction: column; gap: 24px; width: 100%; flex: 1; box-sizing: border-box; }

.master-pwa-banner { background: linear-gradient(to right, rgba(30, 58, 138, 0.5), rgba(88, 28, 135, 0.5)); border: 1px solid rgba(59, 130, 246, 0.3); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 16px; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3); backdrop-filter: blur(4px); }
@media(min-width: 640px) { .master-pwa-banner { flex-direction: row; } }
.master-pwa-left { display: flex; align-items: center; gap: 12px; text-align: center; flex-direction: column; }
@media(min-width: 640px) { .master-pwa-left { text-align: left; flex-direction: row; } }
.master-pwa-icon { background: rgba(59, 130, 246, 0.2); padding: 12px; border-radius: 12px; border: 1px solid rgba(59, 130, 246, 0.4); color: #60a5fa; font-size: 24px; }
.master-pwa-banner h3 { font-size: 14px; font-weight: bold; color: #ffffff; margin: 0; }
.master-pwa-banner p { font-size: 12px; color: #94a3b8; margin: 2px 0 0 0; }

.master-card { background-color: rgba(15, 23, 42, 0.6); border: 1px solid rgba(30, 41, 59, 0.8); border-radius: 16px; padding: 16px; position: relative; overflow: hidden; }
.master-card h2, .master-card-title { font-size: 12px; font-weight: bold; text-transform: uppercase; letter-spacing: 0.05em; color: #94a3b8; display: flex; align-items: center; gap: 8px; margin: 0 0 12px 0; }
.master-map-area { position: relative; width: 100%; height: 144px; border-radius: 12px; overflow: hidden; background: rgba(2, 6, 23, 0.4); }
.master-map-avatar { position: absolute; cursor: pointer; }

.master-tabs { display: flex; justify-content: center; gap: 24px; margin-bottom: 20px; border-bottom: 1px solid #0f172a; padding-bottom: 8px; }
.master-tab-btn { background: none; border: none; font-size: 14px; font-weight: bold; color: #64748b; padding-bottom: 8px; cursor: pointer; transition: all 0.2s; }
.master-tab-btn.active-tab { border-bottom: 2px solid #ec4899; color: #ffffff; }

.master-form { display: flex; flex-direction: column; gap: 16px; }
.master-input { width: 100%; background-color: #020617; border: 1px solid #1e293b; border-radius: 12px; padding: 10px 16px; font-size: 14px; color: #f1f5f9; outline: none; box-sizing: border-box; }
.master-input:focus { border-color: #a855f7; }

.master-btn-gradient { width: 100%; background: linear-gradient(to right, #db2777, #9333ea); color: #ffffff; font-weight: bold; padding: 10px; border-radius: 12px; font-size: 14px; border: none; cursor: pointer; transition: transform 0.1s; }
.master-btn-gradient:active { transform: scale(0.95); }

.master-btn-primary { width: 100%; background: linear-gradient(to right, #2563eb, #9333ea); color: #ffffff; font-size: 12px; font-weight: bold; padding: 10px 20px; border-radius: 12px; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
@media(min-width: 640px) { .master-btn-primary { width: auto; } }

.master-grid-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media(min-width: 768px) { .master-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.master-list { display: flex; flex-direction: column; gap: 8px; }
.master-list-item { display: flex; align-items: center; justify-content: space-between; font-size: 12px; background-color: rgba(2, 6, 23, 0.2); padding: 8px 12px; border-radius: 12px; border: 1px solid rgba(15, 23, 42, 0.4); }
.master-list-left { display: flex; align-items: center; gap: 8px; }
.master-list-index { width: 20px; text-align: center; font-family: monospace; font-weight: bold; color: #64748b; font-size: 10px; }
.master-username { font-weight: 500; color: #f1f5f9; }

.master-badge-time { font-size: 10px; color: #34d399; font-weight: bold; background: rgba(52, 211, 153, 0.05); padding: 2px 8px; border-radius: 6px; border: 1px solid rgba(52, 211, 153, 0.1); }
.master-time-text { font-size: 10px; color: #64748b; font-family: monospace; }

.master-alert { padding: 10px; border-radius: 12px; margin-bottom: 12px; font-size: 12px; text-align: center; }
.master-alert-error { background: rgba(239, 68, 68, 0.1); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.2); }
.master-alert-success { background: rgba(16, 185, 129, 0.1); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.2); }

.master-footer { border-top: 1px solid rgba(15, 23, 42, 0.8); padding: 16px 0; text-align: center; font-size: 10px; color: #475569; font-weight: 500; letter-spacing: 0.05em; }
.hidden { display: none !important; }

/* Renk Tanımları */
.text-amber { color: #fbbf24; }
.text-red { color: #f87171; }
.text-purple { color: #c084fc; }
.text-indigo { color: #818cf8; }
.text-pink { color: #ec4899; }

/* --- KAYAN YAZI (MARQUEE) ANİMASYONU --- */
.master-marquee-bar {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    background: rgba(15, 23, 42, 0.4);
    border-top: 1px solid rgba(30, 41, 59, 0.6);
    border-bottom: 1px solid rgba(30, 41, 59, 0.6);
    padding: 8px 0;
}

.master-marquee-bar .marquee-text {
    display: inline-block;
    padding-left: 100%;
    animation: marqueeScroll 25s linear infinite;
}

@keyframes marqueeScroll {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-100%, 0);
    }
}
/* Sürüklenebilir Pencereler İçin Ortak Stiller */
.draggable-window {
    position: absolute;
    cursor: default;
    user-select: none;
    touch-action: none;
    transition: width 0.2s ease, height 0.2s ease;
}

/* Pencere Başlık Kısmı (Tutup sürüklemek için) */
.window-drag-header {
    cursor: grab;
}
.window-drag-header:active {
    cursor: grabbing;
}

/* Küçültülmüş (Minimize) Mod */
.draggable-window.minimized .window-content-body {
    display: none !important;
}
.draggable-window.minimized {
    width: 220px !important;
    height: auto !important;
}