/* Discord Chat Styles - Clean & Pleasant */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9f9f9;
    color: #23262a;
    line-height: 1.5;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px;
    background-color: #ffffff;
    border-radius: 12px;
    border-left: 4px solid #7289da;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header h1 {
    color: #2f3136;
    margin-bottom: 10px;
    font-weight: 600;
}

.session-info {
    color: #747f8d;
    font-size: 0.95em;
}

.chat-container {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #eceeef;
}

.message {
    display: flex;
    margin-bottom: 20px;
    padding: 16px;
    border-radius: 8px;
    transition: background-color 0.2s;
    border: 1px solid transparent;
}

.message:hover {
    background-color: #f7f8fa;
    border-color: #e3e5e8;
}

.avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin-right: 16px;
    overflow: hidden;
    border: 3px solid #7289da;
    background: #ffffff;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7289da 0%, #5b6eae 100%);
    color: white;
    font-size: 1.5em;
    font-weight: bold;
}

.message-content {
    flex-grow: 1;
}

.message-header {
    display: flex;
    align-items: baseline;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.username {
    font-weight: 600;
    color: #2f3136;
    font-size: 1.05em;
}

.timestamp {
    color: #747f8d;
    font-size: 0.85em;
}

.message-text {
    color: #4f5660;
    font-size: 0.95em;
    word-wrap: break-word;
    line-height: 1.5;
}

.message-text p {
    margin-bottom: 6px;
}

.message-text p:last-child {
    margin-bottom: 0;
}

.separator {
    height: 1px;
    background-color: #eceeef;
    margin: 25px 0;
}

.session-marker {
    background-color: #f7f8fa;
    border-left: 4px solid #7289da;
    padding: 14px 20px;
    margin: 20px 0;
    border-radius: 8px;
    border: 1px solid #e3e5e8;
}

.session-marker .message-text {
    color: #5865f2;
    font-weight: 600;
    font-size: 0.95em;
}

.attachment {
    margin-top: 12px;
    padding: 14px;
    background-color: #f7f8fa;
    border-radius: 8px;
    border: 1px solid #e3e5e8;
}

.attachment img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 6px;
    display: block;
}

.attachment a {
    color: #0068e0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.attachment a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    color: #747f8d;
    font-size: 0.9em;
    border-top: 1px solid #eceeef;
}

/* Discord-like elements */
.mention {
    background-color: rgba(88, 101, 242, 0.1);
    color: #5865f2;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
}

.mention:hover {
    background-color: #5865f2;
    color: #ffffff;
    text-decoration: none;
}

.code-block {
    background-color: #f2f3f5;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #e3e5e8;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.9em;
    margin: 8px 0;
    overflow-x: auto;
}

.inline-code {
    background-color: #f2f3f5;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.9em;
    border: 1px solid #e3e5e8;
}

.quote {
    padding-left: 12px;
    border-left: 4px solid #c7ccd1;
    margin: 8px 0;
    color: #5f5f60;
    font-style: italic;
}

.bot-tag {
    background-color: #5865f2;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.75em;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
}

@media (max-width: 768px) {
    body {
        padding: 15px;
        background-color: #ffffff;
    }
    
    .message {
        padding: 12px;
    }
    
    .avatar {
        width: 36px;
        height: 36px;
        margin-right: 12px;
    }
    
    .username {
        font-size: 1em;
    }
    
    .attachment img {
        max-height: 300px;
    }
    
    .chat-container {
        padding: 15px;
    }
}