/* ===================================================================== */
/* ----------------------- conversations.html -------------------------- */
/* ===================================================================== */
.conversations-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.conversations-header {
    text-align: center;
    margin-bottom: 2rem;
}

.conversations-header h1 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.conversations-header p {
    color: #aaa;
}

.conversations-list {
    background: #252525;
    border-radius: 10px;
    overflow: hidden;
}

.conversation-item {
    border-bottom: 1px solid #333;
}

.conversation-item:last-child {
    border-bottom: none;
}

.conversation-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.3s;
}

.conversation-link:hover {
    background-color: #333;
}

.conversation-avatar {
    margin-right: 1rem;
}

.profile-pic, .default-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.default-avatar {
    background: #0068af;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.conversation-info {
    flex: 1;
}

.conversation-name {
    font-weight: bold;
    color: #fff;
    margin-bottom: 0.25rem;
}

.last-message {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.you-prefix {
    color: #0068af;
}

.message-time {
    color: #888;
    font-size: 0.8rem;
}

.unread-badge {
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.no-conversations {
    text-align: center;
    padding: 3rem;
    color: #aaa;
}

.no-conversations h3 {
    color: #fff;
    margin-bottom: 1rem;
}
/* ===================================================================== */
/* --------------------------- chat.html ------------------------------- */
/* ===================================================================== */
    .chat-container {
    max-width: 800px;
    margin: 2rem auto;
    background: #252525;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #333;
    border-bottom: 1px solid #444;
}

.back-button {
    color: #0068af;
    text-decoration: none;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-pic, .default-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.username {
    color: #fff;
    font-weight: bold;
}

.messages-container-pm {
    height: 400px;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.message {
    max-width: 70%;
    margin: 0.25rem 0;
}

.message.sent {
    align-self: flex-end;
}

.message.received {
    align-self: flex-start;
}

.message-content {
    padding: 0.75rem 1rem;
    border-radius: 18px;
    word-wrap: break-word;
    line-height: 1.4;
}

.message.sent .message-content {
    background: #0068af;
    color: white;
}

.message.received .message-content {
    background: #444;
    color: white;
}

.message-info {
    font-size: 0.75rem;
    color: #888;
    margin-top: 0.25rem;
}

.no-messages {
    text-align: center;
    color: #aaa;
    padding: 2rem;
}

.message-form {
    padding: 1rem;
    background: #333;
    border-top: 1px solid #444;
}

.input-group {
    display: flex;
    gap: 0.5rem;
}

textarea[name="content"], textarea[name="message"] {
    flex: 1;
    background: #444;
    border: 1px solid #555;
    border-radius: 20px;
    padding: 0.75rem 1rem;
    color: white;
    resize: none;
    font-family: inherit;
    min-height: 40px;
}

textarea[name="content"]:focus, textarea[name="message"]:focus {
    outline: none;
    border-color: #0068af;
}

.send-button {
    background: #0068af;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.send-button:hover {
    background: #0088cf;
}

.send-button i {
    font-size: 1.2rem;
}

.htmx-indicator {
    text-align: center;
    color: #aaa;
    margin-top: 0.5rem;
}