/* --- ANA YERLEŞİM (LAYOUT) --- */
#main-screen { width: 100%; height: 100vh; display: flex; flex-direction: column !important; position: relative; z-index: 1; }
.chat-container { display: flex; flex: 1; width: 100%; height: 100%; background: transparent; min-height: 0; padding: 20px; gap: 20px; }

/* Sol menü (cam panel) */
.sidebar { 
    width: 300px; padding: 24px; display: flex; flex-direction: column; 
    border-radius: var(--radius-lg); 
    background: var(--bg-glass);
    backdrop-filter: var(--blur-intensity);
    -webkit-backdrop-filter: var(--blur-intensity);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-glass);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.sidebar:hover {
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5), var(--shadow-glow);
}

.brand { margin-bottom: 30px; display: flex; align-items: center; justify-content: space-between; }
.site-logo { max-width: 140px; height: 50px; object-fit: contain; filter: drop-shadow(0 2px 10px rgba(14, 165, 233, 0.3)); }
.section-title { font-size: 12px; color: var(--brand-accent); text-transform: uppercase; letter-spacing: 1.5px; margin: 25px 8px 12px 8px; font-weight: 800; }

#room-list, #user-list { list-style: none; padding: 0; margin: 0; }
#user-list { flex: 1; overflow-y: auto; padding-right: 8px; }

/* Sağ taraf (sohbet alanı) */
.chat-area { 
    flex: 1; display: flex; flex-direction: column; position: relative; 
    border-radius: var(--radius-lg);
    background: var(--bg-glass);
    backdrop-filter: var(--blur-intensity);
    -webkit-backdrop-filter: var(--blur-intensity);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-glass);
    overflow: hidden; 
    transition: box-shadow 0.3s ease;
}
.chat-area:hover {
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5), var(--shadow-glow);
}
#messages-area { flex: 1; padding: 28px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; scroll-behavior: smooth; }

/* Giriş alanı (input + buton) */
.input-area { display: flex; padding: 20px 28px; background: rgba(6, 11, 25, 0.6); gap: 16px; align-items: stretch; border-top: 1px solid var(--border-glass); backdrop-filter: blur(25px); }
.input-area input { flex: 1; padding: 18px 24px; background-color: rgba(15, 23, 42, 0.6); border: 1px solid rgba(59, 130, 246, 0.2); border-radius: var(--radius-md); color: var(--text-primary); font-size: 15px; outline: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: inset 0 2px 6px rgba(0,0,0,0.4); font-family: inherit; }
.input-area input:focus { border-color: var(--brand-accent); background-color: rgba(15, 23, 42, 0.9); box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15), inset 0 2px 6px rgba(0,0,0,0.4); }
.input-area button { padding: 0 32px; background: linear-gradient(135deg, var(--brand-primary), #38bdf8); color: white; border: none; border-radius: var(--radius-md); cursor: pointer; font-weight: 700; font-size: 15px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4); letter-spacing: 0.5px; }
.input-area button:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37, 99, 235, 0.6); filter: brightness(1.15); }