/* Logo geometric design */
.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 3px;
    transform: rotate(45deg);
    animation: pulse 2s ease-in-out infinite;
}

.logo h1 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

/* Welcome icon geometric design */
.welcome-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.25);
}

.welcome-icon::before {
    content: '';
    position: absolute;
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 6px;
    transform: rotate(45deg);
    opacity: 0.9;
}

.welcome-message h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.welcome-message p {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Professional message avatars */
.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid var(--border-color);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-avatar.assistant {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    border-color: transparent;
}

.message-avatar.assistant::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 3px;
    transform: rotate(45deg);
}

.message-avatar.user {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 18px;
    font-weight: 600;
}

.message-content {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: var(--shadow-sm);
    line-height: 1.6;
}

.message.user .message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

/* Avatar Upload Section */
.avatar-upload-section {
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.avatar-upload-section label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.avatar-preview {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar-display {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 3px solid var(--border-color);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.avatar-display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-initials {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-secondary);
}

.avatar-actions {
    display: flex;
    gap: 8px;
    flex-direction: column;
}

.upload-avatar-btn,
.remove-avatar-btn {
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-avatar-btn {
    background: var(--accent-gradient);
    color: white;
}

.upload-avatar-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.remove-avatar-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.remove-avatar-btn:hover {
    background: var(--bg-secondary);
    border-color: #ef4444;
    color: #ef4444;
}