body { margin: 0; overflow: hidden; background-color: #111; color: white; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
header { position: absolute; top: 0; left: 0; width: 100%; padding: 15px 30px; box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,0.8); z-index: 100; border-bottom: 1px solid #333; }
.logo { font-size: 24px; font-weight: bold; letter-spacing: 2px; }
.btn-signin { background: #4CAF50; color: white; border: none; padding: 10px 20px; font-weight: bold; cursor: pointer; border-radius: 4px; transition: 0.2s;}
.btn-signin:hover { background: #45a049; }
.btn-primary { padding: 10px 20px; background: #2196F3; color: white; border: none; cursor: pointer; font-weight: bold; transition: 0.2s;}
.btn-primary:hover { background: #1976D2; }

.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); display: flex; align-items: center; justify-content: center; z-index: 90; }
.modal { background: #1e1e1e; padding: 30px; border-radius: 8px; width: 300px; border: 1px solid #444; }
.modal h2 { margin-top: 0; text-align: center; font-weight: 400; letter-spacing: 1px; color: #ccc;}
.modal input { width: 100%; margin: 10px 0; padding: 12px; box-sizing: border-box; background: #111; border: 1px solid #555; color: white; }
.modal button { width: 100%; padding: 12px; background: #2196F3; color: white; border: none; font-weight: bold; margin-top: 10px; cursor: pointer; transition: 0.2s;}
.modal button:hover { background: #1976D2; }
.error-msg { color: #ff5555; font-size: 14px; text-align: center; margin-top: 10px; height: 20px; }

.dashboard { width: 80%; max-width: 900px; background: #1e1e1e; padding: 30px; border-radius: 8px; border: 1px solid #444; display: none; flex-direction: column; gap: 20px; }
.dashboard h2 { margin: 0; color: #2196F3; }
.dashboard h3 { margin: 0; color: #aaa; border-bottom: 1px solid #333; padding-bottom: 5px;}
#inp-new-server { padding: 10px; width: 300px; background: #111; color: white; border: 1px solid #555; }

.server-list { border: 1px solid #333; background: #111; padding: 15px; height: 200px; overflow-y: auto; }
.server-item { display: flex; justify-content: space-between; padding: 10px; border-bottom: 1px solid #222; align-items: center; }
.server-item:hover { background: #1a1a1a; }
.btn-join { background: #4CAF50; color: white; border: none; padding: 5px 15px; cursor: pointer; font-weight: bold;}
.btn-del { background: #f44336; color: white; border: none; padding: 5px 15px; cursor: pointer; font-weight: bold;}

.admin-logs { border: 1px solid #333; background: #0a0a0a; padding: 10px; height: 150px; overflow-y: auto; font-family: monospace; color: #0f0; font-size: 12px; }

.hidden { display: none !important; }

#crosshair { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: white; font-size: 24px; z-index: 100; pointer-events: none; }
#game-hint { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.5); z-index: 100; pointer-events: none; }

/* 🚨 YENİ DASHBOARD DÜZENİ (SIDEBAR + MAIN) */
#dashboard-wrapper {
    display: flex; width: 90%; max-width: 1200px; height: 80vh; gap: 20px;
}
.sidebar {
    width: 250px; background: #1e1e1e; border: 1px solid #444; border-radius: 8px; padding: 20px;
    display: flex; flex-direction: column;
}
.sidebar h3 { margin-top: 0; color: #fff; border-bottom: 1px solid #333; padding-bottom: 10px; font-size: 16px;}
.user-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.user-badge { background: #111; padding: 10px; border-left: 3px solid #555; font-size: 14px; }
.user-badge.admin { border-left-color: #2196F3; color: #2196F3; font-weight: bold;}

.main-content {
    flex: 1; position: relative;
}
/* Dashboard'ları %100 genişliğe yayıyoruz */
.dashboard { width: 100%; height: 100%; box-sizing: border-box; max-width: none; }

.status { font-weight: bold; font-size: 12px; padding: 3px 6px; border-radius: 4px;}
.status.online { background: #4CAF50; color: white; }
.status.offline { background: #f44336; color: white; }

.btn-warn { background: #ff9800; color: white; border: none; padding: 5px 10px; cursor: pointer; font-weight: bold;}

/* 🟢 KULLANICI LİSTESİ YEŞİL TOP */
.user-badge { display: flex; align-items: center; gap: 8px; }
.dot-online { color: #4CAF50; font-size: 18px; line-height: 1; }
.dot-offline { color: #555; font-size: 18px; line-height: 1; }

/* 📱 MOBİL EKRAN ARAYÜZÜ */
#mobile-ui {
    position: absolute; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 150; pointer-events: none;
}
#joystick-zone {
    position: absolute; bottom: 30px; left: 30px;
    width: 140px; height: 140px; background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1); border-radius: 50%;
    pointer-events: auto; z-index: 10;
}
#joystick-knob {
    position: absolute; top: 50%; left: 50%; width: 50px; height: 50px;
    background: rgba(255, 176, 0, 0.5); border-radius: 50%;
    transform: translate(-50%, -50%); transition: transform 0.05s;
}
#touch-look-zone {
    position: absolute; top: 0; right: 0; width: 50vw; height: 100vh;
    pointer-events: auto; z-index: 5;
}
.mobile-btn {
    position: absolute; width: 60px; height: 60px; border-radius: 50%;
    background: rgba(255, 176, 0, 0.3); color: #fff; border: 2px solid #ffb000;
    pointer-events: auto; font-family: inherit; font-weight: bold;
    z-index: 10; user-select: none;
}
#btn-mobile-sprint { bottom: 100px; right: 30px; }
#btn-mobile-jump { bottom: 30px; right: 30px; }
