/* static/css/chats.css */

/* Chat specific styles that extend desktop.css */

/* Avatar upload for groups/channels */
.avatar-upload-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.group-avatar-upload,
.channel-avatar-upload {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 8px;
    cursor: pointer;
}

.group-avatar-preview,
.channel-avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    overflow: hidden;
}

.group-avatar-preview img,
.channel-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-upload-hint {
    font-size: 12px;
    color: var(--text-muted);
}

/* Pinned chat indicator */
.chat-item.pinned::before {
    content: '📌';
    position: absolute;
    top: 4px;
    right: 8px;
    font-size: 12px;
    color: var(--accent-green);
}

/* Message file attachment */
.file-attachment {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    margin-bottom: 8px;
}

.file-link {
    color: inherit;
    text-decoration: none;
}

.file-link:hover {
    text-decoration: underline;
}

.message-image {
    max-width: 200px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 8px;
}

/* Forward indicator */
.forward-indicator {
    font-size: 11px;
    opacity: 0.7;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Empty state improvements */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Chat customization preview */
.color-preview {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
}

.wallpaper-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.wallpaper-option {
    aspect-ratio: 1;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
}

.wallpaper-option.active {
    border-color: var(--accent-blue);
    border-width: 3px;
}

.wallpaper-option.gradient1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.wallpaper-option.gradient2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.wallpaper-option.gradient3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.wallpaper-option.gradient4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.wallpaper-option.gradient5 {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.wallpaper-option.gradient6 {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
}