.rp-chat-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.rp-chat-container {
    font-family: Arial, sans-serif;
    background: #0f3460;
    color: #fff;
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    margin: 0 auto;
}

#rp-login-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    gap: 20px;
    padding: 20px;
}

#rp-login-screen h2 {
    font-size: 24px;
    text-align: center;
}

#rp-login-screen input {
    padding: 12px;
    border-radius: 8px;
    border: none;
    width: 250px;
    font-size: 16px;
    text-align: center;
}

#rp-login-screen button {
    padding: 12px 30px;
    border-radius: 8px;
    border: none;
    background: #533483;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
}

#rp-login-screen button:hover {
    transform: scale(1.05);
}

.rp-chat-app {
    display: none;
    flex-direction: column;
    height: 100vh;
}

.rp-chat-header {
    background: #16213e;
    padding: 15px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.rp-chat-header h1 {
    font-size: 20px;
}

.rp-chat-tabs {
    display: flex;
    background: #16213e;
}

.rp-chat-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.rp-chat-tab.active {
    border-bottom-color: #533483;
    background: #1a1a2e;
}

.rp-chat-tab:hover {
    background: #1a1a2e;
}

.rp-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rp-chat-messages.hidden {
    display: none;
}

.rp-message {
    max-width: 75%;
    padding: 10px 12px;
    border-radius: 12px;
    word-wrap: break-word;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rp-message.me {
    align-self: flex-end;
    background: #533483;
}

.rp-message.other {
    align-self: flex-start;
    background: #16213e;
}

.rp-message.system {
    align-self: center;
    background: transparent;
    color: #888;
    font-style: italic;
    font-size: 12px;
    max-width: 100%;
}

.rp-message-author {
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 4px;
    color: #e94560;
}

.rp-message-time {
    font-size: 10px;
    color: #aaa;
    margin-top: 4px;
    text-align: right;
}

.rp-chat-input-area {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: #16213e;
    position: sticky;
    bottom: 0;
}

.rp-chat-input-area input {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
}

.rp-chat-input-area button {
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    background: #533483;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s;
}

.rp-chat-input-area button:hover {
    transform: scale(1.1) rotate(15deg);
}

.rp-chat-messages::-webkit-scrollbar {
    width: 8px;
}

.rp-chat-messages::-webkit-scrollbar-track {
    background: #16213e;
}

.rp-chat-messages::-webkit-scrollbar-thumb {
    background: #533483;
    border-radius: 4px;
}
