/* Discord Chat Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #36393f;
    color: #dcddde;
    line-height: 1.5;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #2f3136;
    border-radius: 8px;
    border-bottom: 3px solid #7289da;
}

.header h1 {
    color: #ffffff;
    margin-bottom: 10px;
}

.session-info {
    color: #b9bbbe;
    font-size: 0.9em;
}

.chat-container {
    background-color: #2f3136;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.message {
    display: flex;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.message:hover {
    background-color: rgba(79, 84, 92, 0.16);
}

.avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
    overflow: hidden;
    border: 2px solid #7289da;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #7289da;
    color: white;
    font-size: 1.5em;
}

.message-content {
    flex-grow: 1;
}

.message-header {
    display: flex;
    align-items: baseline;
    margin-bottom: 5px;
}

.username {
    font-weight: bold;
    color: #ffffff;
    margin-right: 10px;
    font-size: 1em;
}

.timestamp {
    color: #72767d;
    font-size: 0.85em;
}

.message-text {
    color: #dcddde;
    font-size: 0.95em;
/*    white-space: pre-wrap; */
    word-wrap: break-word; 
}

.message-text p {
    margin-bottom: 5px;
}

.message-text p:last-child {
    margin-bottom: 0;
}

.separator {
    height: 1px;
    background-color: #40444b;
    margin: 25px 0;
    opacity: 0.5;
}

.session-marker {
    background-color: rgba(114, 137, 218, 0.1);
    border-left: 3px solid #7289da;
    padding: 10px 15px;
    margin: 15px 0;
    border-radius: 4px;
}

.session-marker .message-text {
    color: #7289da;
    font-weight: bold;
}

.attachment {
    margin-top: 10px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.attachment img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 4px;
    display: block;
}

.attachment a {
    color: #00b0f4;
    text-decoration: none;
}

.attachment a:hover {
    text-decoration: underline;
}

.footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    color: #72767d;
    font-size: 0.9em;
    border-top: 1px solid #40444b;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .message {
        padding: 8px;
    }
    
    .avatar {
        width: 32px;
        height: 32px;
        margin-right: 10px;
    }
    
    .username {
        font-size: 0.95em;
    }
    
    .timestamp {
        font-size: 0.8em;
    }
    
    .attachment img {
        max-height: 300px;
    }
}