/* ---------------------------------------------------------
   SXG NEON CHAT – FINAL CYBERPUNK EDITION
   Inkl. Glowing Focus & Button Hover Effects
--------------------------------------------------------- */

/* GLOBAL RESET */
* { 
    box-sizing: border-box; 
    transition: all 0.3s ease-in-out; /* Sorgt für weiche Übergänge bei allen Effekten */
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: #050505;
    font-family: 'Arial Rounded MT Bold', sans-serif;
    font-weight: bold;
	color: #869deb;
    overflow: hidden;
}

/* ---------------------------------------------------------
   HEADER AREA (CHAT)
--------------------------------------------------------- */
.sxg-header {
    height: 100px;
    display: flex;
    align-items: center;
    padding: 0 25px;
    background: #000;
    border-bottom: 1px solid #222;
    flex-shrink: 0;
}

.sxg-cover-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #00f2ff, #7000ff);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#sxg-cover {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.sxg-header-info {
    margin-left: 20px;
}

.sxg-title {
    margin: 0;
    font-size: 24px;
    color: #1400ff;
    text-shadow: 0 0 10px #00f2ff;
    letter-spacing: 1px;
    text-transform: none;
}

.sxg-subtitle {
    margin: 0;
    font-size: 12px;
    color: #e2e1e3;
    font-weight: bold;
    text-transform: none;
}

/* ---------------------------------------------------------
   MAIN LAYOUT (FLEXBOX)
--------------------------------------------------------- */
.sxg-main {
    display: flex;
    width: 100%;
    height: calc(100vh - 100px);
}

.sxg-chat-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #1400ff;
    background: radial-gradient(circle at center, #0f0f0f 0%, #050505 100%);
    min-width: 0;
}

.sxg-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* ---------------------------------------------------------
   INPUT BAR & BUTTONS (MIT GLOW-EFFEKTEN)
--------------------------------------------------------- */
.sxg-input-bar {
    padding: 15px 25px;
    background: #000;
    border-top: 1px solid #222;
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* Chat Input */
.sxg-input {
    flex: 1;
    padding: 12px 15px;
    background: #000;
    border: 1px solid #1400ff;
    border-radius: 6px;
    color: #fff;
    outline: none;
}

/* DER GLÜHENDE BLAUE RAHMEN (FOCUS) */
.sxg-input:focus, 
.sxg-form-group input:focus {
    border-color: #00f2ff !important;
    box-shadow: 0 0 5px #00f2ff, 0 0 15px rgba(0, 242, 255, 0.6) !important;
    background: #000;
}

/* Senden Button */
.sxg-btn {
    padding: 10px 25px;
    background: #7f81ff;
    border: none;
    border-radius: 6px;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
}

/* BUTTON HOVER EFFEKT */
.sxg-btn:hover, 
.sxg-btn-secondary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #0034ff;
    opacity: 1;
}

/* ---------------------------------------------------------
   SIDEBAR (CHAT)
--------------------------------------------------------- */
.sxg-sidebar {
    width: 320px;
    background: #050505;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.sxg-user-panel {
    width: 100%;
    background: #111;
    border: 1px solid #333;
    border-radius: 13px;
    padding: 25px 20px;
    text-align: center;
    margin-bottom: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.label-online {
    display: block;
    font-size: 11px;
    color: #0034ff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: -20px;
}

.sxg-user-name {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    display: block;
    margin-bottom: 20px;
}

.sxg-logout-link {
    display: inline-block;
    background: #ff0033;
    color: #fff !important;
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
}

.sxg-logout-link:hover {
    box-shadow: 0 0 15px #ff0033;
    transform: translateY(-2px);
}

#sxg-user-list {
    margin-top: 30px;
    display: inline-block;
    text-align: left;
    color: #ccc;
    font-size: 14px;
    line-height: 1;
}

/* BUBBLES & TIME */
.sxg-bubble {
    max-width: 75%;
    padding: 12px 18px;
    border-radius: 18px;
    margin-bottom: 15px;
    background: rgba(30, 30, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.sxg-bubble.me {
    align-self: flex-end;
    background: rgba(0, 242, 255, 0.05);
    border-color: #00f2ff;
}

.sxg-time {
    color: #ffffff !important;
    font-size: 11px;
    margin-left: 12px;
    opacity: 0.9;
}

/* ---------------------------------------------------------
   AUTH AREA (LOGIN & REGISTER)
--------------------------------------------------------- */
body.auth {
    display: flex;
    justify-content: center;
    align-items: center; 
    height: 100vh;
    background: #050505;
    overflow: auto;
}

.sxg-auth-wrapper, .login-box {
    width: 300px;
    background: #111;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #23399d;
    box-shadow: 0 0 20px rgba(0, 242, 255);
    margin: auto;
	font-weight: bold;
    text-align: center;
}

.sxg-auth-title {
    color: #6d84ef;
    margin-bottom: 25px;
    text-shadow: 0 0 10px rgba(109,132,239,0.3);
    font-size: 22px;
    text-transform: uppercase;
}

.sxg-form-group {
    margin-bottom: 16px;
    text-align: left;
}

.sxg-form-group label {
    display: block;
    font-size: 14px;
    color: #fff;
    margin-bottom: 5px;
}

/* Hellere Eingabefelder für Login/Register (wie gewünscht) */
.sxg-form-group input {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #007bff;
    background: #eef2ff;
    color: #000;
    outline: none;
}

/* Violetter Register-Button Style */
.sxg-btn-secondary {
    width: 100%;
    padding: 12px;
    border-radius: 15px;
    border: none;
    background: #8e94f3;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    text-transform: none;
}

.sxg-error {
    background: rgba(255, 0, 0, 0.1);
    border-left: 3px solid red;
    padding: 10px;
    margin-bottom: 15px;
    color: #ff6b6b;
    font-size: 13px;
    text-align: left;
}
