:root {
    --primary: #ce422b;
    --primary-hover: #a82c18;
    --bg-gradient: linear-gradient(135deg, #ce422b 0%, #1e2020 40%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text: #f6eae0;
    --text-muted: #f6eae0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
}

body {
    background: var(--bg-gradient);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text);
    overflow: hidden;
    background-repeat: none;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    width: 400px;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: #ce422b;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    margin-bottom: 1.5rem;
    font-weight: 400;
}

input {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    outline: none;
    transition: all 0.3s;
}

input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

button {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

p {
    margin-top: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

a {
    color: var(--primary);
    text-decoration: none;
}

/* Chat Styles */
/* Chat Styles */
#chat-container {
    width: 100%;
    max-width: 800px;     /* büyük ekranda 800px'i geçmez */
    height: 100vh;
    max-height: 700px;    /* büyük ekranda 700px'i geçmez */
    margin: 0 auto;       /* ortalar */
    display: flex;
    flex-direction: column;
    padding: 10px;
    box-sizing: border-box;
}

/* Tablet */
@media (max-width: 768px) {
    #chat-container {
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        padding: 8px;
    }
}

/* Küçük mobil */
@media (max-width: 480px) {
    #chat-container {
        padding: 5px;
    }
}	

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

header h2 { margin: 0; font-size: 1.2rem; }

#logout-btn {
    width: auto;
    padding: 6px 12px;
    background: rgba(239, 68, 68, 0.2);
    font-size: 0.8rem;
}

#logout-btn:hover { background: rgba(239, 68, 68, 0.4); }

#messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding-right: 10px;
}

#messages::-webkit-scrollbar {
    width: 6px;
}

#messages::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

.message {
    margin-bottom: 0.8rem;
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 80%;
    width: fit-content;
    word-wrap: break-word;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.message.user {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.message.mine {
    background: var(--primary);
    align-self: flex-end;
    margin-left: auto;
}

.message.system {
    background: transparent;
    color: var(--text-muted);
    text-align: center;
    max-width: 100%;
    font-size: 0.8rem;
    font-style: italic;
}

.username {
    font-weight: 600;
    font-size: 0.75rem;
    margin-bottom: 4px;
    color: var(--primary);
}

.message.mine .username { color: white; }

.input-area {
    display: flex;
    gap: 10px;
}

.input-area input { margin-bottom: 0; }
.input-area button { width: 100px; }
