/* User Settings Modal Styles */

.ynm-chat-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    animation: fadeIn 0.2s ease-out;
}

.ynm-chat-modal {
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ynm-chat-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.ynm-chat-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.ynm-chat-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.ynm-chat-modal-close:hover {
    color: #333;
}

.ynm-chat-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ynm-chat-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ynm-chat-form-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.ynm-chat-form-group-half {
    flex: 1;
    min-width: 0;
}

.ynm-chat-form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.ynm-chat-form-group input,
.ynm-chat-form-group textarea {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.ynm-chat-form-group input:focus,
.ynm-chat-form-group textarea:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 4px rgba(74, 144, 226, 0.2);
}

.ynm-chat-avatar-preview {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 4px;
}

.ynm-chat-avatar-preview img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 4px;
}

.ynm-chat-avatar-display {
    display: flex;
    justify-content: center;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

.ynm-chat-avatar-display img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ynm-chat-avatar-display .avatar-placeholder {
    width: 80px;
    height: 80px;
    min-width: 80px;
    font-size: 32px;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ynm-chat-modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #eee;
    justify-content: flex-end;
}

.ynm-chat-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.ynm-chat-btn-secondary {
    background: #f5f5f5;
    color: #333;
}

.ynm-chat-btn-secondary:hover {
    background: #eee;
}

.ynm-chat-btn-primary {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

.ynm-chat-btn-primary:hover {
    background: #357abd;
    border-color: #357abd;
}

@media (max-width: 600px) {
    .ynm-chat-modal {
        width: 95%;
        max-height: 90vh;
    }

    .ynm-chat-modal-body {
        padding: 16px;
    }

    .ynm-chat-modal-footer {
        flex-direction: column;
    }

    .ynm-chat-btn {
        width: 100%;
    }
}

/* 快捷操作区域样式 */
.ynm-chat-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 0;
    padding-top: 0;
}

.ynm-chat-quick-action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
}

.ynm-chat-quick-action-btn:hover {
    background: #e8e8e8;
    text-decoration: none;
    border-color: #d0d0d0;
}

.ynm-chat-quick-action-btn:active {
    background: #e0e0e0;
}

.ynm-chat-quick-action-icon {
    font-size: 18px;
    flex-shrink: 0;
}
