body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #0f172a;
    color: #e5e7eb;
}

.app-wrapper {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 260px;
    background: #020617;
    border-right: 1px solid #1f2937;
    padding: 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.logo {
    margin: 0 0 8px;
    font-size: 20px;
    color: #38bdf8;
}

.login-box, .user-box {
    padding: 12px;
    background: #020617;
    border: 1px solid #1f2937;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-box input {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #1f2937;
    background: #020617;
    color: #e5e7eb;
}

.login-box button,
.user-box button {
    padding: 8px;
    border-radius: 6px;
    border: none;
    background: #22c55e;
    color: #020617;
    cursor: pointer;
    font-weight: 600;
}

.login-box button:hover,
.user-box button:hover {
    background: #16a34a;
}

.hint {
    font-size: 12px;
    color: #9ca3af;
}

.rooms h2 {
    margin: 0 0 8px;
    font-size: 14px;
    color: #9ca3af;
}

.rooms ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rooms li {
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #e5e7eb;
}

.rooms li:hover {
    background: #111827;
}

.rooms li.active {
    background: #0ea5e9;
    color: #020617;
}

.chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #020617;
}

.chat-header {
    padding: 12px 16px;
    border-bottom: 1px solid #1f2937;
}

.messages {
    flex: 1;
    padding: 12px 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message {
    padding: 8px 10px;
    border-radius: 8px;
    background: #020617;
    border: 1px solid #1f2937;
}

.message-top {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.message-text {
    font-size: 14px;
    margin-bottom: 6px;
}

.message-actions button {
    background: transparent;
    border: none;
    color: #f97316;
    cursor: pointer;
    font-size: 13px;
}

.chat-input {
    padding: 12px 16px;
    border-top: 1px solid #1f2937;
    display: flex;
    gap: 8px;
}

.chat-input textarea {
    flex: 1;
    resize: none;
    min-height: 60px;
    max-height: 120px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #1f2937;
    background: #020617;
    color: #e5e7eb;
}

.chat-input button {
    width: 120px;
    border-radius: 8px;
    border: none;
    background: #22c55e;
    color: #020617;
    font-weight: 600;
    cursor: pointer;
}

.chat-input button:disabled {
    background: #4b5563;
    cursor: default;
}

.chat-input button:not(:disabled):hover {
    background: #16a34a;
}

.empty {
    text-align: center;
    color: #6b7280;
    margin-top: 16px;
}

.center-info {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #9ca3af;
}
